From 4ce5af5f36faabf2522f9bc768bb17a81bbd24b8 Mon Sep 17 00:00:00 2001 From: Pierre Fersing Date: Thu, 2 Jun 2016 14:08:33 +0200 Subject: [PATCH] Removed leaked "database" tag on redis metrics --- CHANGELOG.md | 1 + plugins/inputs/redis/redis.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f9caaa07..df8c7f1e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. - [#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. +- [#1315](https://github.com/influxdata/telegraf/pull/1315): removed leaked "database" tag on redis metrics. Thanks @PierreF! ## v0.13.1 [2016-05-24] diff --git a/plugins/inputs/redis/redis.go b/plugins/inputs/redis/redis.go index dee564c73..9107aa16f 100644 --- a/plugins/inputs/redis/redis.go +++ b/plugins/inputs/redis/redis.go @@ -229,6 +229,9 @@ func gatherInfoOutput( keyspace_hitrate = float64(keyspace_hits) / float64(keyspace_hits+keyspace_misses) } fields["keyspace_hitrate"] = keyspace_hitrate + + // gatherKeyspaceLine may have added "database" to tags. + delete(tags, "database") acc.AddFields("redis", fields, tags) return nil }