diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2021-10-19 11:30:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 11:30:10 +0300 |
commit | 0882ed03b4000b6f9e1f64743321e4cd6e2aa39f (patch) | |
tree | 4faececbbd9434ec18ae9a068b605edb29285320 /health | |
parent | bc8b5a8add5abf772a2ad291bad4448099677ea8 (diff) |
Add snapshot message and calls to sql_queue_removed_alerts_to_aclk (#11664)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/health/health.c b/health/health.c index 5782e54f0f..1c6929b0c7 100644 --- a/health/health.c +++ b/health/health.c @@ -230,6 +230,9 @@ void health_reload(void) { if (netdata_cloud_setting) { aclk_single_update_enable(); aclk_alarm_reload(); +#ifdef ENABLE_NEW_CLOUD_PROTOCOL + aclk_alert_reloaded = 1; +#endif } #endif } @@ -1035,6 +1038,13 @@ void *health_main(void *ptr) { rrdhost_unlock(host); } +#ifdef ENABLE_NEW_CLOUD_PROTOCOL + if (aclk_alert_reloaded) { + sql_queue_removed_alerts_to_aclk(host); + aclk_alert_reloaded = 0; + } +#endif + if (unlikely(netdata_exit)) break; |