Skip to content

Commit

Permalink
Rename tags 'host','inst' to 'server','name'
Browse files Browse the repository at this point in the history
  • Loading branch information
ebookbug authored and sparrc committed Mar 23, 2016
1 parent c75c870 commit dbd7b9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/inputs/ipmi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ipmitool -I lan -H 192.168.1.1 -U USERID -P PASSW0RD sdr

- ipmi_sensor:

* Tags: `host`,`inst`
* Tags: `server`,`host`
* Fields:
- status
- value
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/ipmi/ipmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (m *Ipmi) gatherServer(serv string, acc telegraf.Accumulator) error {
for i := 0; i < len(lines); i++ {
vals := strings.Split(lines[i], "|")
if len(vals) == 3 {
tags := map[string]string{"host": conn.Hostname, "inst": trim(vals[0])}
tags := map[string]string{"server": conn.Hostname, "name": trim(vals[0])}
fields := make(map[string]interface{})
if strings.EqualFold("ok", trim(vals[2])) {
fields["status"] = 1
Expand Down

0 comments on commit dbd7b9f

Please sign in to comment.