mysql build fixup and changelog update

This commit is contained in:
Cameron Sparr 2017-01-13 14:34:07 +00:00
parent 9b2f6499e7
commit e0c6262e0b
No known key found for this signature in database
GPG Key ID: 19E67263DCB25D0F
2 changed files with 2 additions and 6 deletions

View File

@ -5,6 +5,7 @@
### Features ### Features
- [#2137](https://github.com/influxdata/telegraf/pull/2137): Added userstats to mysql input plugin. - [#2137](https://github.com/influxdata/telegraf/pull/2137): Added userstats to mysql input plugin.
- [#2179](https://github.com/influxdata/telegraf/pull/2179): Added more InnoDB metric to MySQL plugin.
### Bugfixes ### Bugfixes

View File

@ -1076,12 +1076,7 @@ func (m *Mysql) GatherUserStatisticsStatuses(db *sql.DB, serv string, acc telegr
count uint32 count uint32
) )
var servtag string servtag := getDSNTag(serv)
servtag, err = parseDSN(serv)
if err != nil {
servtag = "localhost"
}
for rows.Next() { for rows.Next() {
err = rows.Scan(&user, &total_connections, &concurrent_connections, err = rows.Scan(&user, &total_connections, &concurrent_connections,
&connected_time, &busy_time, &cpu_time, &bytes_received, &bytes_sent, &binlog_bytes_written, &connected_time, &busy_time, &cpu_time, &bytes_received, &bytes_sent, &binlog_bytes_written,