diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-07-15 20:27:49 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@netdata.cloud> | 2022-07-15 20:27:49 +0300 |
commit | 2f2997d196e55462070b4450a793cf32c0027614 (patch) | |
tree | 51b99e20839cd361291fd4050fa224464e072529 | |
parent | 138990a1d413d26f523ce39450e5c920a80abd69 (diff) |
always add the labels
-rw-r--r-- | database/rrdset.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/database/rrdset.c b/database/rrdset.c index 3e0366cc31..9d60b9beb5 100644 --- a/database/rrdset.c +++ b/database/rrdset.c @@ -490,14 +490,9 @@ static inline RRDSET *rrdset_find_on_create(RRDHOST *host, const char *fullid) { static inline void rrdset_update_permanent_labels(RRDSET *st) { if(!st->state || !st->state->chart_labels) return; - if(st->plugin_name) - rrdlabels_add(st->state->chart_labels, "_collect_plugin", st->plugin_name, RRDLABEL_SRC_AUTO| RRDLABEL_FLAG_PERMANENT); - - if(st->module_name) - rrdlabels_add(st->state->chart_labels, "_collect_module", st->module_name, RRDLABEL_SRC_AUTO| RRDLABEL_FLAG_PERMANENT); - - if(st->family) - rrdlabels_add(st->state->chart_labels, "_instance_family", st->family, RRDLABEL_SRC_AUTO| RRDLABEL_FLAG_PERMANENT); + rrdlabels_add(st->state->chart_labels, "_collect_plugin", st->plugin_name, RRDLABEL_SRC_AUTO| RRDLABEL_FLAG_PERMANENT); + rrdlabels_add(st->state->chart_labels, "_collect_module", st->module_name, RRDLABEL_SRC_AUTO| RRDLABEL_FLAG_PERMANENT); + rrdlabels_add(st->state->chart_labels, "_instance_family", st->family, RRDLABEL_SRC_AUTO| RRDLABEL_FLAG_PERMANENT); } RRDSET *rrdset_create_custom( |