Skip to content

Commit

Permalink
rename id to worker_id
Browse files Browse the repository at this point in the history
  • Loading branch information
filipdulic committed Apr 13, 2022
1 parent 5f5a9a9 commit 3cbcdc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/lotus/lotus.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (s *LotusInput) Gather(acc telegraf.Accumulator) error {

for key, value := range minerMetrics.WorkerStats {
workerMeasurements := map[string]interface{}{}
workerMeasurements["id"] = key
workerMeasurements["worker_id"] = key.String()
workerMeasurements["name"] = value.Info.Hostname
workerMeasurements["cpu_use"] = value.CpuUse
workerMeasurements["mem_physical"] = value.Info.Resources.MemPhysical
Expand Down

0 comments on commit 3cbcdc6

Please sign in to comment.