Skip to content

Commit

Permalink
Fix formatting of per-cpu load
Browse files Browse the repository at this point in the history
  • Loading branch information
cfra committed Oct 2, 2020
1 parent 8aca615 commit 3b871f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html/metrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$tmp = explode(".",$key);
$cpu_id = $tmp[count($tmp)-1];

sendGraphite("cpu_util.cpu_{$cpu_id}", sanatize_snmp("INTEGER", $value));
sendGraphite("cpu_util{cpu=\"{$cpu_id}\"}", sanatize_snmp("INTEGER", $value));
}

/**
Expand Down

0 comments on commit 3b871f4

Please sign in to comment.