Fix case sensitivity error in sqlserver input (#3287)

This commit is contained in:
Daniel Nelson 2017-10-02 17:15:34 -07:00 committed by GitHub
parent 771fbc311a
commit 8e3ed96d6f
1 changed files with 19 additions and 18 deletions

View File

@ -2,11 +2,12 @@ package sqlserver
import ( import (
"database/sql" "database/sql"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
"sync" "sync"
"time" "time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
// go-mssqldb initialization // go-mssqldb initialization
_ "github.com/zensqlmonitor/go-mssqldb" _ "github.com/zensqlmonitor/go-mssqldb"
) )
@ -1436,16 +1437,16 @@ SELECT
, type = 'Wait stats' , type = 'Wait stats'
---- values ---- values
, [I/O] = SUM([I/O]) , [I/O] = SUM([I/O])
, [Latch] = SUM([Latch]) , [Latch] = SUM([LATCH])
, [Lock] = SUM([Lock]) , [Lock] = SUM([LOCK])
, [Network] = SUM([Network]) , [Network] = SUM([NETWORK])
, [Service broker] = SUM([Service broker]) , [Service broker] = SUM([SERVICE BROKER])
, [Memory] = SUM([Memory]) , [Memory] = SUM([MEMORY])
, [Buffer] = SUM([Buffer]) , [Buffer] = SUM([BUFFER])
, [CLR] = SUM([CLR]) , [CLR] = SUM([CLR])
, [SQLOS] = SUM([SQLOS]) , [SQLOS] = SUM([SQLOS])
, [XEvent] = SUM([XEvent]) , [XEvent] = SUM([XEVENT])
, [Other] = SUM([Other]) , [Other] = SUM([OTHER])
, [Total] = SUM([I/O]+[LATCH]+[LOCK]+[NETWORK]+[SERVICE BROKER]+[MEMORY]+[BUFFER]+[CLR]+[XEVENT]+[SQLOS]+[OTHER]) , [Total] = SUM([I/O]+[LATCH]+[LOCK]+[NETWORK]+[SERVICE BROKER]+[MEMORY]+[BUFFER]+[CLR]+[XEVENT]+[SQLOS]+[OTHER])
FROM FROM
( (
@ -1479,16 +1480,16 @@ SELECT
, type = 'Wait stats' , type = 'Wait stats'
---- values ---- values
, [I/O] = SUM([I/O]) , [I/O] = SUM([I/O])
, [Latch] = SUM([Latch]) , [Latch] = SUM([LATCH])
, [Lock] = SUM([Lock]) , [Lock] = SUM([LOCK])
, [Network] = SUM([Network]) , [Network] = SUM([NETWORK])
, [Service broker] = SUM([Service broker]) , [Service broker] = SUM([SERVICE BROKER])
, [Memory] = SUM([Memory]) , [Memory] = SUM([MEMORY])
, [Buffer] = SUM([Buffer]) , [Buffer] = SUM([BUFFER])
, [CLR] = SUM([CLR]) , [CLR] = SUM([CLR])
, [SQLOS] = SUM([SQLOS]) , [SQLOS] = SUM([SQLOS])
, [XEvent] = SUM([XEvent]) , [XEvent] = SUM([XEVENT])
, [Other] = SUM([Other]) , [Other] = SUM([OTHER])
, [Total] = SUM([I/O]+[LATCH]+[LOCK]+[NETWORK]+[SERVICE BROKER]+[MEMORY]+[BUFFER]+[CLR]+[XEVENT]+[SQLOS]+[OTHER]) , [Total] = SUM([I/O]+[LATCH]+[LOCK]+[NETWORK]+[SERVICE BROKER]+[MEMORY]+[BUFFER]+[CLR]+[XEVENT]+[SQLOS]+[OTHER])
FROM FROM
( (