prevent overlapping charts when both cgroups I/O and Throttle I/O are present; fixes #1157
Costa Tsaousis (ktsaou) committed
Oct 24, 2016 at 22:19 UTC
8b897717a2fa0c011c635dd545bdcdb47356e2dd
1 file changed
+2
-2
src/sys_fs_cgroup.c
+2
-2
@@ -1309,10 +1309,10 @@ void update_cgroup_charts(int update_every) {
1309
}
1310
1311
if(cg->throttle_io_service_bytes.updated && cg->throttle_io_service_bytes.Read + cg->throttle_io_service_bytes.Write > 0) {
1312
- st = rrdset_find_bytype(type, "io");
1312
+ st = rrdset_find_bytype(type, "throttle_io");
1313
if(!st) {
1314
snprintfz(title, CHART_TITLE_MAX, "Throttle I/O Bandwidth (all disks) for cgroup %s", cg->chart_title);
1315
- st = rrdset_create(type, "io", NULL, "disk", "cgroup.io", title, "KB/s", 41200,
1315
+ st = rrdset_create(type, "throttle_io", NULL, "disk", "cgroup.throttle_io", title, "KB/s", 41200,
1316
update_every, RRDSET_TYPE_AREA);
1317
1318
rrddim_add(st, "read", NULL, 1, 1024, RRDDIM_INCREMENTAL);