Disable results by row in azuredb query (#5467)

This commit is contained in:
Daniel Nelson 2019-02-25 10:54:19 -08:00 committed by GitHub
parent cf18c4a2bf
commit 9e0248898f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -5,11 +5,9 @@ import (
"sync"
"time"
_ "github.com/denisenkom/go-mssqldb" // go-mssqldb initialization
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
// go-mssqldb initialization
_ "github.com/denisenkom/go-mssqldb"
)
// SQLServer struct
@ -90,7 +88,7 @@ func initQueries(s *SQLServer) {
// If this is an AzureDB instance, grab some extra metrics
if s.AzureDB {
queries["AzureDB"] = Query{Script: sqlAzureDB, ResultByRow: true}
queries["AzureDB"] = Query{Script: sqlAzureDB, ResultByRow: false}
}
// Decide if we want to run version 1 or version 2 queries