diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-12-23 15:10:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 15:10:49 +0200 |
commit | 1a326fc1ce9ecbcce5ca4b4b72a3bea8f8da0f3b (patch) | |
tree | c586b5449a18308d5a065e1f9d946f877a8da75c /collectors | |
parent | 2bca08132a436409b59803e0026034dd4ef823f2 (diff) |
use specific charts labels instead of family in alarms (#14173)
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/proc.plugin/proc_spl_kstat_zfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/collectors/proc.plugin/proc_spl_kstat_zfs.c b/collectors/proc.plugin/proc_spl_kstat_zfs.c index 8938d64319..58c84050a7 100644 --- a/collectors/proc.plugin/proc_spl_kstat_zfs.c +++ b/collectors/proc.plugin/proc_spl_kstat_zfs.c @@ -285,6 +285,8 @@ int update_zfs_pool_state_chart(const DICTIONARY_ITEM *item, void *pool_p, void pool->rd_offline = rrddim_add(pool->st, "offline", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE); pool->rd_removed = rrddim_add(pool->st, "removed", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE); pool->rd_unavail = rrddim_add(pool->st, "unavail", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE); + + rrdlabels_add(pool->st->rrdlabels, "pool", name, RRDLABEL_SRC_AUTO); } rrddim_set_by_pointer(pool->st, pool->rd_online, pool->online); |