diff options
author | vkalintiris <vasilis@netdata.cloud> | 2022-03-28 12:23:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 12:23:48 +0300 |
commit | ca6a2292edbeb10e67a0524348db290c3b3a7a0a (patch) | |
tree | 8eef0080e64193cbb58e7d8423abfff0601a34c6 /database | |
parent | c7b45c26b60adc1c88739b80b8de90fe54cc7ff9 (diff) |
Skip `foreach` alarms for dimensions of anomaly rate chart. (#12441)
Health is not enabled for the anomaly rates chart. This was missed in
the original PR that added support for tracking anomaly rates with
dbengine. The side-effect was that the agent would block when opening
the dashboard before its initialization was done.
Diffstat (limited to 'database')
-rw-r--r-- | database/rrddim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/database/rrddim.c b/database/rrddim.c index 0d1ecc01e2..d79baf2c20 100644 --- a/database/rrddim.c +++ b/database/rrddim.c @@ -7,6 +7,10 @@ static inline void calc_link_to_rrddim(RRDDIM *rd) { RRDHOST *host = rd->rrdset->rrdhost; RRDSET *st = rd->rrdset; + + if (st->state && st->state->is_ar_chart) + return; + if (host->alarms_with_foreach || host->alarms_template_with_foreach) { int count = 0; int hostlocked; |