]> arthur.barton.de Git - netdata.git/commitdiff
prevent overlapping charts when both cgroups I/O and Throttle I/O are present; fixes...
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 24 Oct 2016 19:19:18 +0000 (22:19 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 24 Oct 2016 19:19:18 +0000 (22:19 +0300)
src/sys_fs_cgroup.c

index 0ec67376b9473263542adfb5d20b2db29f262f93..a0f8a9982bbf2f4de7c1954a9e94bf80a7b69679 100644 (file)
@@ -1309,10 +1309,10 @@ void update_cgroup_charts(int update_every) {
         }
 
         if(cg->throttle_io_service_bytes.updated && cg->throttle_io_service_bytes.Read + cg->throttle_io_service_bytes.Write > 0) {
-            st = rrdset_find_bytype(type, "io");
+            st = rrdset_find_bytype(type, "throttle_io");
             if(!st) {
                 snprintfz(title, CHART_TITLE_MAX, "Throttle I/O Bandwidth (all disks) for cgroup %s", cg->chart_title);
-                st = rrdset_create(type, "io", NULL, "disk", "cgroup.io", title, "KB/s", 41200,
+                st = rrdset_create(type, "throttle_io", NULL, "disk", "cgroup.throttle_io", title, "KB/s", 41200,
                                    update_every, RRDSET_TYPE_AREA);
 
                 rrddim_add(st, "read", NULL, 1, 1024, RRDDIM_INCREMENTAL);