processes plugin: Add the "delay-" prefix to type instances.
authorFlorian Forster <octo@collectd.org>
Fri, 8 Dec 2017 07:28:35 +0000 (08:28 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 8 Dec 2017 07:28:35 +0000 (08:28 +0100)
This fixes a regression introduced in
17b81d4fa4eabbb7c029ccf424f43e4d89c27e35.

src/processes.c

index de03b34..1fcd7a6 100644 (file)
@@ -911,10 +911,10 @@ static void ps_submit_proc_list(procstat_t *ps) {
     char *type_instance;
     gauge_t rate_ns;
   } delay_metrics[] = {
-      {"cpu", ps->delay_cpu},
-      {"blkio", ps->delay_blkio},
-      {"swapin", ps->delay_swapin},
-      {"freepages", ps->delay_freepages},
+      {"delay-cpu", ps->delay_cpu},
+      {"delay-blkio", ps->delay_blkio},
+      {"delay-swapin", ps->delay_swapin},
+      {"delay-freepages", ps->delay_freepages},
   };
   for (size_t i = 0; i < STATIC_ARRAY_SIZE(delay_metrics); i++) {
     if (isnan(delay_metrics[i].rate_ns)) {