@cryptotaxi247 / netdata-1 / commits / 127eb95ba

Always set ephemerality label with the correct value (#21274)

Stelios Fragkakis committed Nov 11, 2025 at 17:31 UTC 127eb95badcadb49db048315215b83680e4e7254
1 file changed +2 -2
src/plugins.d/pluginsd_parser.c
+2 -2
@@ -189,8 +189,8 @@ static inline void pluginsd_update_host_ephemerality(RRDHOST *host) {
189 strncpyz(value, "false", sizeof(value) - 1);
190 }
191
192 - if(!rrdlabels_exist(host->rrdlabels, HOST_LABEL_IS_EPHEMERAL))
193 - rrdlabels_add(host->rrdlabels, HOST_LABEL_IS_EPHEMERAL, value, RRDLABEL_SRC_CONFIG);
192 + // Set or replace current label as needed
193 + rrdlabels_add(host->rrdlabels, HOST_LABEL_IS_EPHEMERAL, value, RRDLABEL_SRC_CONFIG);
194 }
195
196 #define VNODE_BASE_EPOCH (1704067200L) // Jan 1, 2024 00:00:00 UTC