@cryptotaxi247 / netdata-1 / commits / a1fe540f4

disable cpu per core metrics by default (#16572)

Ilya Mashchenko committed Dec 13, 2023 at 10:36 UTC a1fe540f4dc0d2a819b5edf836884e4595a67184
4 files changed +8 -5
collectors/proc.plugin/proc_interrupts.c
+1 -1
@@ -60,7 +60,7 @@ int do_proc_interrupts(int update_every, usec_t dt) {
60 struct interrupt *irrs = NULL;
61
62 if(unlikely(do_per_core == CONFIG_BOOLEAN_INVALID))
63 - do_per_core = config_get_boolean_ondemand(CONFIG_SECTION_PLUGIN_PROC_INTERRUPTS, "interrupts per core", CONFIG_BOOLEAN_AUTO);
63 + do_per_core = config_get_boolean_ondemand(CONFIG_SECTION_PLUGIN_PROC_INTERRUPTS, "interrupts per core", CONFIG_BOOLEAN_NO);
64
65 if(unlikely(!ff)) {
66 char filename[FILENAME_MAX + 1];
collectors/proc.plugin/proc_net_softnet_stat.c
+4 -1
@@ -24,7 +24,10 @@ int do_proc_net_softnet_stat(int update_every, usec_t dt) {
24 static size_t allocated_lines = 0, allocated_columns = 0;
25 static uint32_t *data = NULL;
26
27 - if(unlikely(do_per_core == -1)) do_per_core = config_get_boolean("plugin:proc:/proc/net/softnet_stat", "softnet_stat per core", 1);
27 + if (unlikely(do_per_core == -1)) {
28 + do_per_core =
29 + config_get_boolean("plugin:proc:/proc/net/softnet_stat", "softnet_stat per core", CONFIG_BOOLEAN_NO);
30 + }
31
32 if(unlikely(!ff)) {
33 char filename[FILENAME_MAX + 1];
collectors/proc.plugin/proc_softirqs.c
+1 -1
@@ -59,7 +59,7 @@ int do_proc_softirqs(int update_every, usec_t dt) {
59 struct interrupt *irrs = NULL;
60
61 if(unlikely(do_per_core == CONFIG_BOOLEAN_INVALID))
62 - do_per_core = config_get_boolean_ondemand("plugin:proc:/proc/softirqs", "interrupts per core", CONFIG_BOOLEAN_AUTO);
62 + do_per_core = config_get_boolean_ondemand("plugin:proc:/proc/softirqs", "interrupts per core", CONFIG_BOOLEAN_NO);
63
64 if(unlikely(!ff)) {
65 char filename[FILENAME_MAX + 1];
collectors/proc.plugin/proc_stat.c
+2 -2
@@ -487,7 +487,7 @@ int do_proc_stat(int update_every, usec_t dt) {
487
488 if(unlikely(do_cpu == -1)) {
489 do_cpu = config_get_boolean("plugin:proc:/proc/stat", "cpu utilization", CONFIG_BOOLEAN_YES);
490 - do_cpu_cores = config_get_boolean("plugin:proc:/proc/stat", "per cpu core utilization", CONFIG_BOOLEAN_YES);
490 + do_cpu_cores = config_get_boolean("plugin:proc:/proc/stat", "per cpu core utilization", CONFIG_BOOLEAN_NO);
491 do_interrupts = config_get_boolean("plugin:proc:/proc/stat", "cpu interrupts", CONFIG_BOOLEAN_YES);
492 do_context = config_get_boolean("plugin:proc:/proc/stat", "context switches", CONFIG_BOOLEAN_YES);
493 do_forks = config_get_boolean("plugin:proc:/proc/stat", "processes started", CONFIG_BOOLEAN_YES);
@@ -508,7 +508,7 @@ int do_proc_stat(int update_every, usec_t dt) {
508 do_core_throttle_count = CONFIG_BOOLEAN_AUTO;
509 do_package_throttle_count = CONFIG_BOOLEAN_NO;
510 do_cpu_freq = CONFIG_BOOLEAN_YES;
511 - do_cpuidle = CONFIG_BOOLEAN_YES;
511 + do_cpuidle = CONFIG_BOOLEAN_NO;
512 }
513 if(unlikely(get_system_cpus() > 24)) {
514 // the system has too many processors