Skip to content

Commit

Permalink
Add Questions status variable for issue: influxdata#1988 (influxdata#…
Browse files Browse the repository at this point in the history
  • Loading branch information
puckpuck authored and Nick White committed Jan 31, 2017
1 parent 445b2da commit 26e4ec4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/inputs/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,13 @@ func (m *Mysql) gatherGlobalStatuses(db *sql.DB, serv string, acc telegraf.Accum
}

fields["queries"] = i
case "Questions":
i, err := strconv.ParseInt(string(val.([]byte)), 10, 64)
if err != nil {
return err
}

fields["questions"] = i
case "Slow_queries":
i, err := strconv.ParseInt(string(val.([]byte)), 10, 64)
if err != nil {
Expand Down

0 comments on commit 26e4ec4

Please sign in to comment.