summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2020-07-11 17:27:37 +0300
committerGitHub <noreply@github.com>2020-07-11 17:27:37 +0300
commit822880265e88a8f6a6d35d00eb0d0b5072d7ac1c (patch)
tree1c5b20ec1ee9af929dd6a98c0072fb05d75f7cbb /health
parent04b7e098810aeb8d1b708d0da2e1ae8153dedf0e (diff)
Remove health from archived metrics (#9520)
* Disassociate health variables and alarms from archived charts and dimensions. * Ignore archived charts during health reload.
Diffstat (limited to 'health')
-rw-r--r--health/health.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/health/health.c b/health/health.c
index a0cbd884bc..1ba644e72c 100644
--- a/health/health.c
+++ b/health/health.c
@@ -199,6 +199,8 @@ void health_reload_host(RRDHOST *host) {
// link the loaded alarms to their charts
RRDDIM *rd;
rrdset_foreach_write(st, host) {
+ if (rrdset_flag_check(st, RRDSET_FLAG_ARCHIVED))
+ continue;
rrdsetcalc_link_matching(st);
rrdcalctemplate_link_matching(st);