diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-12-08 15:25:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-08 15:25:48 +0200 |
commit | e25b5ccf189463ca2a73a9ef6d1f7cf30a6e0bab (patch) | |
tree | d8a4044bc90a50d1b0aec9f6a15dcb257b998ed5 /health | |
parent | d0dad4459ee5bece15a3b2bb88149956d495fbb3 (diff) |
fix health emphemerality labels src (#14105)
Fixes https://github.com/netdata/netdata/issues/14084
Diffstat (limited to 'health')
-rw-r--r-- | health/health.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/health/health.c b/health/health.c index 3784e0f31e..096eedec4a 100644 --- a/health/health.c +++ b/health/health.c @@ -1553,12 +1553,16 @@ void *health_main(void *ptr) { void health_add_host_labels(void) { DICTIONARY *labels = localhost->rrdlabels; + enum rrdlabel_source src; + + // The source should be CONF, but when it is set, these labels are exported by default ('send configured labels' in exporting.conf). + // Their export seems to break exporting to Graphite, see https://github.com/netdata/netdata/issues/14084. int is_ephemeral = appconfig_get_boolean(&netdata_config, CONFIG_SECTION_HEALTH, "is ephemeral", CONFIG_BOOLEAN_NO); - rrdlabels_add(labels, "_is_ephemeral", is_ephemeral ? "true" : "false", RRDLABEL_SRC_CONFIG); + rrdlabels_add(labels, "_is_ephemeral", is_ephemeral ? "true" : "false", RRDLABEL_SRC_AUTO); int has_unstable_connection = appconfig_get_boolean(&netdata_config, CONFIG_SECTION_HEALTH, "has unstable connection", CONFIG_BOOLEAN_NO); - rrdlabels_add(labels, "_has_unstable_connection", has_unstable_connection ? "true" : "false", RRDLABEL_SRC_CONFIG); + rrdlabels_add(labels, "_has_unstable_connection", has_unstable_connection ? "true" : "false", RRDLABEL_SRC_AUTO); } void health_thread_spawn(RRDHOST * host) { |