summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2022-05-02 18:36:56 +0300
committerGitHub <noreply@github.com>2022-05-02 18:36:56 +0300
commitd6b1756ea7c0dc28b338aff67800e932d8fe97ec (patch)
treec11bd6aac932001abe3d1b4b697c6cd90f1abcef /health
parent90c2fcb838dc711e6706713510b0d07916d94829 (diff)
Reduce alert events sent to the cloud. (#12544)
* filter * update filter * queue removed directly * more * logging * cleanup * cleanup 2 * cleanup 3 * finalize instead of reset
Diffstat (limited to 'health')
-rw-r--r--health/health.c2
-rw-r--r--health/health_log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/health/health.c b/health/health.c
index 5ac88fec71..e81c933303 100644
--- a/health/health.c
+++ b/health/health.c
@@ -804,7 +804,7 @@ void *health_main(void *ptr) {
rc->value = NAN;
#if defined(ENABLE_ACLK) && defined(ENABLE_NEW_CLOUD_PROTOCOL)
if (netdata_cloud_setting && likely(!aclk_alert_reloaded))
- sql_queue_removed_alerts_to_aclk(host);
+ sql_queue_alarm_to_aclk(host, ae, 1);
#endif
}
}
diff --git a/health/health_log.c b/health/health_log.c
index 4959aa179a..54f6dc9fc4 100644
--- a/health/health_log.c
+++ b/health/health_log.c
@@ -162,7 +162,7 @@ inline void health_alarm_log_save(RRDHOST *host, ALARM_ENTRY *ae) {
#ifdef ENABLE_ACLK
if (netdata_cloud_setting) {
- sql_queue_alarm_to_aclk(host, ae);
+ sql_queue_alarm_to_aclk(host, ae, 0);
}
#endif
}