Skip to content

Commit

Permalink
Add an interface:"all" tag to the net protocol counters
Browse files Browse the repository at this point in the history
fixes #508
  • Loading branch information
sparrc committed Jan 14, 2016
1 parent 7531e21 commit de826c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Bugfixes
- [#506](https://github.com/influxdb/telegraf/pull/506): Ping input doesn't return response time metric when timeout. Thanks @titilambert!
- [#508](https://github.com/influxdb/telegraf/pull/508): Fix prometheus cardinality issue with the `net` plugin

## v0.10.0 [2014-01-12]

Expand Down
5 changes: 4 additions & 1 deletion plugins/inputs/system/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ func (s *NetIOStats) Gather(acc inputs.Accumulator) error {
fields[name] = value
}
}
acc.AddFields("net", fields, nil)
tags := map[string]string{
"interface": "all",
}
acc.AddFields("net", fields, tags)

return nil
}
Expand Down

0 comments on commit de826c8

Please sign in to comment.