diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2023-09-01 15:37:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 15:37:55 +0300 |
commit | 24006ed5c19cf7c398cf8a76e7bdce1f60c7e5a4 (patch) | |
tree | b7ef3ec6b5d999d3884b9af40c2b7a53eca8f027 /collectors/proc.plugin | |
parent | beba227adf489a30e826c3922e4cb3635fb0b154 (diff) |
Reduce label memory (#15255)
Diffstat (limited to 'collectors/proc.plugin')
-rw-r--r-- | collectors/proc.plugin/plugin_proc.h | 2 | ||||
-rw-r--r-- | collectors/proc.plugin/proc_net_dev.c | 6 | ||||
-rw-r--r-- | collectors/proc.plugin/sys_devices_system_edac_mc.c | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/collectors/proc.plugin/plugin_proc.h b/collectors/proc.plugin/plugin_proc.h index a90f4838e9..a0ddd76c48 100644 --- a/collectors/proc.plugin/plugin_proc.h +++ b/collectors/proc.plugin/plugin_proc.h @@ -58,7 +58,7 @@ void netdev_rename_device_add( const char *host_device, const char *container_device, const char *container_name, - DICTIONARY *labels, + RRDLABELS *labels, const char *ctx_prefix); void netdev_rename_device_del(const char *host_device); diff --git a/collectors/proc.plugin/proc_net_dev.c b/collectors/proc.plugin/proc_net_dev.c index 16881d1709..eb2d0e0c02 100644 --- a/collectors/proc.plugin/proc_net_dev.c +++ b/collectors/proc.plugin/proc_net_dev.c @@ -123,7 +123,7 @@ static struct netdev { const char *chart_family; - DICTIONARY *chart_labels; + RRDLABELS *chart_labels; int flipped; unsigned long priority; @@ -348,7 +348,7 @@ static struct netdev_rename { const char *container_name; const char *ctx_prefix; - DICTIONARY *chart_labels; + RRDLABELS *chart_labels; int processed; @@ -373,7 +373,7 @@ void netdev_rename_device_add( const char *host_device, const char *container_device, const char *container_name, - DICTIONARY *labels, + RRDLABELS *labels, const char *ctx_prefix) { netdata_mutex_lock(&netdev_rename_mutex); diff --git a/collectors/proc.plugin/sys_devices_system_edac_mc.c b/collectors/proc.plugin/sys_devices_system_edac_mc.c index 0947f61f09..fdaa22cb70 100644 --- a/collectors/proc.plugin/sys_devices_system_edac_mc.c +++ b/collectors/proc.plugin/sys_devices_system_edac_mc.c @@ -265,22 +265,22 @@ int do_proc_sys_devices_system_edac_mc(int update_every, usec_t dt __maybe_unuse char buffer[1024 + 1]; - if(read_edac_mc_rank_file(m->name, d->name, "dimm_dev_type", buffer, 1024)) + if (read_edac_mc_rank_file(m->name, d->name, "dimm_dev_type", buffer, 1024)) rrdlabels_add(d->st->rrdlabels, "dimm_dev_type", buffer, RRDLABEL_SRC_AUTO); - if(read_edac_mc_rank_file(m->name, d->name, "dimm_edac_mode", buffer, 1024)) + if (read_edac_mc_rank_file(m->name, d->name, "dimm_edac_mode", buffer, 1024)) rrdlabels_add(d->st->rrdlabels, "dimm_edac_mode", buffer, RRDLABEL_SRC_AUTO); - if(read_edac_mc_rank_file(m->name, d->name, "dimm_label", buffer, 1024)) + if (read_edac_mc_rank_file(m->name, d->name, "dimm_label", buffer, 1024)) rrdlabels_add(d->st->rrdlabels, "dimm_label", buffer, RRDLABEL_SRC_AUTO); - if(read_edac_mc_rank_file(m->name, d->name, "dimm_location", buffer, 1024)) + if (read_edac_mc_rank_file(m->name, d->name, "dimm_location", buffer, 1024)) rrdlabels_add(d->st->rrdlabels, "dimm_location", buffer, RRDLABEL_SRC_AUTO); - if(read_edac_mc_rank_file(m->name, d->name, "dimm_mem_type", buffer, 1024)) + if (read_edac_mc_rank_file(m->name, d->name, "dimm_mem_type", buffer, 1024)) rrdlabels_add(d->st->rrdlabels, "dimm_mem_type", buffer, RRDLABEL_SRC_AUTO); - if(read_edac_mc_rank_file(m->name, d->name, "size", buffer, 1024)) + if (read_edac_mc_rank_file(m->name, d->name, "size", buffer, 1024)) rrdlabels_add(d->st->rrdlabels, "size", buffer, RRDLABEL_SRC_AUTO); d->ce.rd = rrddim_add(d->st, "correctable", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL); |