From bca07ba39bc97a7977407b828383f2ef8a8bc4da Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 25 Feb 2019 10:54:19 -0800 Subject: [PATCH] Disable results by row in azuredb query (#5467) --- plugins/inputs/sqlserver/sqlserver.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/inputs/sqlserver/sqlserver.go b/plugins/inputs/sqlserver/sqlserver.go index cb667e43fadc0..dc57c87a4faa3 100644 --- a/plugins/inputs/sqlserver/sqlserver.go +++ b/plugins/inputs/sqlserver/sqlserver.go @@ -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