Remove dots in cgroup ids (#11050)
Vladimir Kobal committed
Apr 28, 2021 at 16:16 UTC
fae4477e414aaeb1f6a7a537718cf770f0d1056b
1 file changed
+6
collectors/cgroups.plugin/sys_fs_cgroup.c
+6
@@ -1300,6 +1300,12 @@ static inline char *cgroup_chart_id_strdupz(const char *s) {
1300
char *r = strdupz(s);
1301
netdata_fix_chart_id(r);
1302
1303
+ // dots are used to distinguish chart type and id in streaming, so we should replace them
1304
+ for (char *d = r; *d; d++) {
1305
+ if (*d == '.')
1306
+ *d = '-';
1307
+ }
1308
+
1309
return r;
1310
}
1311