From 1ac617d62f99d8aa16cb2d9e31306c0158a2e799 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 18:09:17 +0530 Subject: [PATCH] chore: disable performance counters (#42041) (#42091) Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com> --- metricbeat/docs/modules/system.asciidoc | 2 +- metricbeat/metricbeat.reference.yml | 2 +- metricbeat/module/system/_meta/config.reference.yml | 2 +- metricbeat/module/system/core/_meta/docs.asciidoc | 2 +- metricbeat/module/system/core/config.go | 2 +- metricbeat/module/system/cpu/_meta/docs.asciidoc | 2 +- metricbeat/module/system/cpu/config.go | 2 +- x-pack/metricbeat/metricbeat.reference.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/metricbeat/docs/modules/system.asciidoc b/metricbeat/docs/modules/system.asciidoc index 164abe5c91e3..93975cdeb6ad 100644 --- a/metricbeat/docs/modules/system.asciidoc +++ b/metricbeat/docs/modules/system.asciidoc @@ -269,7 +269,7 @@ metricbeat.modules: # This option enables the use of performance counters to collect data for cpu/core metricset. # Only effective for Windows. # You should use this option if running beats on machins with more than 64 cores. - #use_performance_counters: true + #use_performance_counters: false ---- [float] diff --git a/metricbeat/metricbeat.reference.yml b/metricbeat/metricbeat.reference.yml index 4572a40a46a7..2ca40befa480 100644 --- a/metricbeat/metricbeat.reference.yml +++ b/metricbeat/metricbeat.reference.yml @@ -145,7 +145,7 @@ metricbeat.modules: # This option enables the use of performance counters to collect data for cpu/core metricset. # Only effective for Windows. # You should use this option if running beats on machins with more than 64 cores. - #use_performance_counters: true + #use_performance_counters: false #------------------------------ Aerospike Module ------------------------------ - module: aerospike diff --git a/metricbeat/module/system/_meta/config.reference.yml b/metricbeat/module/system/_meta/config.reference.yml index 777a6444ecae..bd8b64f10fe8 100644 --- a/metricbeat/module/system/_meta/config.reference.yml +++ b/metricbeat/module/system/_meta/config.reference.yml @@ -85,4 +85,4 @@ # This option enables the use of performance counters to collect data for cpu/core metricset. # Only effective for Windows. # You should use this option if running beats on machins with more than 64 cores. - #use_performance_counters: true + #use_performance_counters: false diff --git a/metricbeat/module/system/core/_meta/docs.asciidoc b/metricbeat/module/system/core/_meta/docs.asciidoc index 751c4759a9c3..be362a6e2966 100644 --- a/metricbeat/module/system/core/_meta/docs.asciidoc +++ b/metricbeat/module/system/core/_meta/docs.asciidoc @@ -25,5 +25,5 @@ metricbeat.modules: - module: system metricsets: [core] core.metrics: [percentages, ticks] - #use_performance_counters: true + #use_performance_counters: false ---- diff --git a/metricbeat/module/system/core/config.go b/metricbeat/module/system/core/config.go index 940a23282165..74fb62774646 100644 --- a/metricbeat/module/system/core/config.go +++ b/metricbeat/module/system/core/config.go @@ -67,5 +67,5 @@ func (c Config) Validate() (metrics.MetricOpts, error) { var defaultConfig = Config{ Metrics: []string{percentages}, - UserPerformanceCounters: true, + UserPerformanceCounters: false, } diff --git a/metricbeat/module/system/cpu/_meta/docs.asciidoc b/metricbeat/module/system/cpu/_meta/docs.asciidoc index b0d9da584591..71cee57c615f 100644 --- a/metricbeat/module/system/cpu/_meta/docs.asciidoc +++ b/metricbeat/module/system/cpu/_meta/docs.asciidoc @@ -26,5 +26,5 @@ metricbeat.modules: - module: system metricsets: [cpu] cpu.metrics: [percentages, normalized_percentages, ticks] - #use_performance_counters: true + #use_performance_counters: false ---- diff --git a/metricbeat/module/system/cpu/config.go b/metricbeat/module/system/cpu/config.go index 7cfffed57a53..9751e4232887 100644 --- a/metricbeat/module/system/cpu/config.go +++ b/metricbeat/module/system/cpu/config.go @@ -71,5 +71,5 @@ func (c Config) Validate() (metrics.MetricOpts, error) { var defaultConfig = Config{ Metrics: []string{percentages, normalizedPercentages}, - UserPerformanceCounters: true, + UserPerformanceCounters: false, } diff --git a/x-pack/metricbeat/metricbeat.reference.yml b/x-pack/metricbeat/metricbeat.reference.yml index a6a116e27b16..26767401e9b8 100644 --- a/x-pack/metricbeat/metricbeat.reference.yml +++ b/x-pack/metricbeat/metricbeat.reference.yml @@ -145,7 +145,7 @@ metricbeat.modules: # This option enables the use of performance counters to collect data for cpu/core metricset. # Only effective for Windows. # You should use this option if running beats on machins with more than 64 cores. - #use_performance_counters: true + #use_performance_counters: false #------------------------------- ActiveMQ Module ------------------------------- - module: activemq