summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2021-10-25 16:39:24 +0300
committerGitHub <noreply@github.com>2021-10-25 16:39:24 +0300
commiteefa40cb545cca664afb552e6d3299f6b87c00e7 (patch)
tree12b803ad37916c2d52df287dfb05a4d259c4dd03 /health
parent7e9a2cbb0ba29a8144d30d20be43178faa0a7668 (diff)
Queue removed alerts to cloud for new architecture (#11704)
* rebased * add error message * make function void * fix return
Diffstat (limited to 'health')
-rw-r--r--health/health.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/health/health.c b/health/health.c
index 8f5a23d968..cc636604a2 100644
--- a/health/health.c
+++ b/health/health.c
@@ -1038,6 +1038,14 @@ void *health_main(void *ptr) {
rrdhost_unlock(host);
}
+#ifdef ENABLE_ACLK
+#ifdef ENABLE_NEW_CLOUD_PROTOCOL
+ if (netdata_cloud_setting && unlikely(aclk_alert_reloaded)) {
+ sql_queue_removed_alerts_to_aclk(host);
+ }
+#endif
+#endif
+
if (unlikely(netdata_exit))
break;
@@ -1062,6 +1070,11 @@ void *health_main(void *ptr) {
health_alarm_wait_for_execution(ae);
}
+#ifdef ENABLE_NEW_CLOUD_PROTOCOL
+ if (netdata_cloud_setting && unlikely(aclk_alert_reloaded))
+ aclk_alert_reloaded = 0;
+#endif
+
rrd_unlock();
if(unlikely(netdata_exit))