Skip to content

Commit

Permalink
jolokia: add 'server_' prefix to tags
Browse files Browse the repository at this point in the history
it avoid overwriting the telegraf-wide host tag
  • Loading branch information
saiello committed Apr 18, 2016
1 parent 5e9980f commit 6d6f36a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/inputs/jolokia/jolokia.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ func (j *Jolokia) Gather(acc telegraf.Accumulator) error {
tags := make(map[string]string)

for _, server := range servers {
tags["server"] = server.Name
tags["port"] = server.Port
tags["host"] = server.Host
tags["server_name"] = server.Name
tags["server_port"] = server.Port
tags["server_host"] = server.Host
fields := make(map[string]interface{})

for _, metric := range metrics {
Expand Down

0 comments on commit 6d6f36a

Please sign in to comment.