Removed leaked "database" tag on redis metrics
This commit is contained in:
parent
675457873a
commit
4ce5af5f36
|
@ -46,6 +46,7 @@ time before a new metric is included by the plugin.
|
||||||
- [#1268](https://github.com/influxdata/telegraf/pull/1268): Fix potential influxdb input type assertion panic.
|
- [#1268](https://github.com/influxdata/telegraf/pull/1268): Fix potential influxdb input type assertion panic.
|
||||||
- [#1283](https://github.com/influxdata/telegraf/pull/1283): Still send processes metrics if a process exited during metric collection.
|
- [#1283](https://github.com/influxdata/telegraf/pull/1283): Still send processes metrics if a process exited during metric collection.
|
||||||
- [#1297](https://github.com/influxdata/telegraf/issues/1297): disk plugin panic when usage grab fails.
|
- [#1297](https://github.com/influxdata/telegraf/issues/1297): disk plugin panic when usage grab fails.
|
||||||
|
- [#1315](https://github.com/influxdata/telegraf/pull/1315): removed leaked "database" tag on redis metrics. Thanks @PierreF!
|
||||||
|
|
||||||
## v0.13.1 [2016-05-24]
|
## v0.13.1 [2016-05-24]
|
||||||
|
|
||||||
|
|
|
@ -229,6 +229,9 @@ func gatherInfoOutput(
|
||||||
keyspace_hitrate = float64(keyspace_hits) / float64(keyspace_hits+keyspace_misses)
|
keyspace_hitrate = float64(keyspace_hits) / float64(keyspace_hits+keyspace_misses)
|
||||||
}
|
}
|
||||||
fields["keyspace_hitrate"] = keyspace_hitrate
|
fields["keyspace_hitrate"] = keyspace_hitrate
|
||||||
|
|
||||||
|
// gatherKeyspaceLine may have added "database" to tags.
|
||||||
|
delete(tags, "database")
|
||||||
acc.AddFields("redis", fields, tags)
|
acc.AddFields("redis", fields, tags)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue