diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2023-11-27 19:00:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 19:00:13 +0200 |
commit | e3d9ed26295b36973591d44b961bc26130be727f (patch) | |
tree | ee27b502c95022669096833def7e3d18c5852854 | |
parent | 4e512411ec81a33fc3d29eec9072a1e30f7d4fae (diff) |
Disable netdata monitoring section by default (#16480)
-rw-r--r-- | daemon/static_threads.c | 10 | ||||
-rw-r--r-- | ml/Config.cc | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/daemon/static_threads.c b/daemon/static_threads.c index 830b854e6a..0ce010d6ed 100644 --- a/daemon/static_threads.c +++ b/daemon/static_threads.c @@ -61,7 +61,7 @@ const struct netdata_static_thread static_threads_common[] = { .config_name = "netdata monitoring", .env_name = "NETDATA_INTERNALS_MONITORING", .global_variable = &global_statistics_enabled, - .enabled = 1, + .enabled = 0, .thread = NULL, .init_routine = NULL, .start_routine = global_statistics_main @@ -69,10 +69,10 @@ const struct netdata_static_thread static_threads_common[] = { { .name = "STATS_WORKERS", .config_section = CONFIG_SECTION_PLUGINS, - .config_name = "netdata monitoring", + .config_name = "netdata monitoring extended", .env_name = "NETDATA_INTERNALS_MONITORING", .global_variable = &global_statistics_enabled, - .enabled = 1, + .enabled = 0, .thread = NULL, .init_routine = NULL, .start_routine = global_statistics_workers_main @@ -80,10 +80,10 @@ const struct netdata_static_thread static_threads_common[] = { { .name = "STATS_SQLITE3", .config_section = CONFIG_SECTION_PLUGINS, - .config_name = "netdata monitoring", + .config_name = "netdata monitoring extended", .env_name = "NETDATA_INTERNALS_MONITORING", .global_variable = &global_statistics_enabled, - .enabled = 1, + .enabled = 0, .thread = NULL, .init_routine = NULL, .start_routine = global_statistics_sqlite3_main diff --git a/ml/Config.cc b/ml/Config.cc index 8f2ef894c6..c6a750995d 100644 --- a/ml/Config.cc +++ b/ml/Config.cc @@ -51,7 +51,7 @@ void ml_config_load(ml_config_t *cfg) { size_t suppression_window = config_get_number(config_section_ml, "dimension anomaly rate suppression window", 900); size_t suppression_threshold = config_get_number(config_section_ml, "dimension anomaly rate suppression threshold", suppression_window / 2); - bool enable_statistics_charts = config_get_boolean(config_section_ml, "enable statistics charts", true); + bool enable_statistics_charts = config_get_boolean(config_section_ml, "enable statistics charts", false); /* * Clamp |