mysql build fixup and changelog update
This commit is contained in:
parent
a33c86f9c4
commit
6ca52195a9
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue