summaryrefslogtreecommitdiffstats
path: root/aclk
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2022-10-13 08:12:52 +0300
committerGitHub <noreply@github.com>2022-10-13 08:12:52 +0300
commit61767a8a08d089962ff82e45b3e459c8bd05b0c4 (patch)
tree427ae61c25efa1fc4cbc3d9987e6b7b439fa8e32 /aclk
parentafe1b704857a7307547341a1027c019bbe68e910 (diff)
allow disabling netdata monitoring section of the dashboard (#13788)
* allow disabling netdata monitoring section of the dashboard * disable-netdata-stats: Modify eBPF.plugin to disable statistic charts according user selection, by default it is enabled * Don't send internal statistics for exporting engine if it's disabled. * Fix global statistics flag initialization * Don't send internal statistics for checks plugin if it's disabled. Co-authored-by: Thiago Marques <thiagoftsm@gmail.com> Co-authored-by: Vladimir Kobal <vlad@prokk.net>
Diffstat (limited to 'aclk')
-rw-r--r--aclk/aclk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c
index d0024b0b52..4646f3c2d4 100644
--- a/aclk/aclk.c
+++ b/aclk/aclk.c
@@ -686,7 +686,7 @@ void *aclk_main(void *ptr)
// that send JSON payloads of 10 MB as single messages
mqtt_wss_set_max_buf_size(mqttwss_client, 25*1024*1024);
- aclk_stats_enabled = config_get_boolean(CONFIG_SECTION_CLOUD, "statistics", CONFIG_BOOLEAN_YES);
+ aclk_stats_enabled = config_get_boolean(CONFIG_SECTION_CLOUD, "statistics", global_statistics_enabled);
if (aclk_stats_enabled) {
stats_thread = callocz(1, sizeof(struct aclk_stats_thread));
stats_thread->thread = mallocz(sizeof(netdata_thread_t));