diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-07-15 20:25:22 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@netdata.cloud> | 2022-07-15 20:25:22 +0300 |
commit | 138990a1d413d26f523ce39450e5c920a80abd69 (patch) | |
tree | c6fdd8ac90b831a869056352e07e90929ce9d5fc /collectors/diskspace.plugin/plugin_diskspace.c | |
parent | 38090b6c6f62cfd0252dd041ad150968b08f8a61 (diff) |
added permanent labels to all charts about plugin, module and family; added labels to all proc plugin modules
Diffstat (limited to 'collectors/diskspace.plugin/plugin_diskspace.c')
-rw-r--r-- | collectors/diskspace.plugin/plugin_diskspace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/collectors/diskspace.plugin/plugin_diskspace.c b/collectors/diskspace.plugin/plugin_diskspace.c index f2d9e93ba9..fcf64f3e6f 100644 --- a/collectors/diskspace.plugin/plugin_diskspace.c +++ b/collectors/diskspace.plugin/plugin_diskspace.c @@ -431,7 +431,9 @@ static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) { }; mp.chart_labels = rrdlabels_create(); - rrdlabels_add(mp.chart_labels, "fstype", mi->filesystem, RRDLABEL_SRC_AUTO); + rrdlabels_add(mp.chart_labels, "mount_point", mi->mount_point, RRDLABEL_SRC_AUTO); + rrdlabels_add(mp.chart_labels, "filesystem", mi->filesystem, RRDLABEL_SRC_AUTO); + rrdlabels_add(mp.chart_labels, "mount_root", mi->root, RRDLABEL_SRC_AUTO); m = dictionary_set(dict_mountpoints, mi->mount_point, &mp, sizeof(struct mount_point_metadata)); |