summaryrefslogtreecommitdiffstats
path: root/collectors/proc.plugin/proc_softirqs.c
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/proc.plugin/proc_softirqs.c')
-rw-r--r--collectors/proc.plugin/proc_softirqs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/collectors/proc.plugin/proc_softirqs.c b/collectors/proc.plugin/proc_softirqs.c
index bb14c159..7eff28c9 100644
--- a/collectors/proc.plugin/proc_softirqs.c
+++ b/collectors/proc.plugin/proc_softirqs.c
@@ -217,6 +217,10 @@ int do_proc_softirqs(int update_every, usec_t dt) {
, update_every
, RRDSET_TYPE_STACKED
);
+
+ char core[50+1];
+ snprintfz(core, 50, "cpu%d", c);
+ rrdlabels_add(core_st[c]->state->chart_labels, "cpu", core, RRDLABEL_SRC_AUTO);
}
else
rrdset_next(core_st[c]);