Skip to content

Commit

Permalink
feat: add target label for ipmi (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 authored Apr 16, 2024
1 parent 2cd6d3f commit 62c566e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inputs/ipmi/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ func (m *Instance) Gather(slist *types.SampleList) {
continue
}

labels := map[string]string{}
labels := map[string]string{
"target": m.Target,
}
for _, kv := range desc.ConstLabels() {
labels[*kv.Name] = *kv.Value
}
Expand Down

0 comments on commit 62c566e

Please sign in to comment.