diff options
author | Andrew Moss <1043609+amoss@users.noreply.github.com> | 2020-03-31 21:19:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 21:19:34 +0200 |
commit | 8fe7485a600f60be9ac20af923a61d516cb0335e (patch) | |
tree | 875658393d501b764eb8694d44488dbe9b64cf29 /health | |
parent | ef2bd3956b2797de31008ddffab671b9675f070d (diff) |
Switching over to soft feature flag (#8545)
Preparing for the cloud release. This changes how we handle the feature flag so that it no longer requires installer switches and can be set from the config file. This still requires internal access to use and is not ready for public access yet.
Diffstat (limited to 'health')
-rw-r--r-- | health/health.c | 9 | ||||
-rw-r--r-- | health/health_log.c | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/health/health.c b/health/health.c index d3e01faf1c..cbc7554cb4 100644 --- a/health/health.c +++ b/health/health.c @@ -180,7 +180,8 @@ void health_reload_host(RRDHOST *host) { */ void health_reload(void) { #ifdef ENABLE_ACLK - aclk_single_update_disable(); + if (netdata_cloud_setting) + aclk_single_update_disable(); #endif rrd_rdlock(); @@ -190,8 +191,10 @@ void health_reload(void) { rrd_unlock(); #ifdef ENABLE_ACLK - aclk_single_update_enable(); - aclk_alarm_reload(); + if (netdata_cloud_setting) { + aclk_single_update_enable(); + aclk_alarm_reload(); + } #endif } diff --git a/health/health_log.c b/health/health_log.c index 802923d492..b9ea52a4f0 100644 --- a/health/health_log.c +++ b/health/health_log.c @@ -153,7 +153,8 @@ inline void health_alarm_log_save(RRDHOST *host, ALARM_ENTRY *ae) { } } #ifdef ENABLE_ACLK - aclk_update_alarm(host, ae); + if (netdata_cloud_setting) + aclk_update_alarm(host, ae); #endif } |