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.
vkalintiris committed
Mar 28, 2022 at 12:23 UTC
ca6a2292edbeb10e67a0524348db290c3b3a7a0a
1 file changed
+4
database/rrddim.c
+4
@@ -7,6 +7,10 @@ static inline void calc_link_to_rrddim(RRDDIM *rd)
7
{
8
RRDHOST *host = rd->rrdset->rrdhost;
9
RRDSET *st = rd->rrdset;
10
+
11
+ if (st->state && st->state->is_ar_chart)
12
+ return;
13
+
14
if (host->alarms_with_foreach || host->alarms_template_with_foreach) {
15
int count = 0;
16
int hostlocked;