Skip to content

Commit

Permalink
chore: disable performance counters (#42041)
Browse files Browse the repository at this point in the history
(cherry picked from commit f3a063f)

# Conflicts:
#	metricbeat/docs/modules/system.asciidoc
#	metricbeat/metricbeat.reference.yml
#	metricbeat/module/system/_meta/config.reference.yml
#	metricbeat/module/system/core/_meta/docs.asciidoc
#	metricbeat/module/system/core/config.go
#	metricbeat/module/system/cpu/_meta/docs.asciidoc
#	metricbeat/module/system/cpu/config.go
#	x-pack/metricbeat/metricbeat.reference.yml
  • Loading branch information
VihasMakwana authored and mergify[bot] committed Dec 17, 2024
1 parent 0647e32 commit a938d2e
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 0 deletions.
8 changes: 8 additions & 0 deletions metricbeat/docs/modules/system.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ metricbeat.modules:
# Filter systemd services based on a name pattern
#service.pattern_filter: ["ssh*", "nfs*"]
<<<<<<< HEAD
=======
# 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: false
>>>>>>> f3a063f1d (chore: disable performance counters (#42041))
----

[float]
Expand Down
8 changes: 8 additions & 0 deletions metricbeat/metricbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ metricbeat.modules:
# Filter systemd services based on a name pattern
#service.pattern_filter: ["ssh*", "nfs*"]

<<<<<<< HEAD
=======
# 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: false

>>>>>>> f3a063f1d (chore: disable performance counters (#42041))
#------------------------------ Aerospike Module ------------------------------
- module: aerospike
metricsets: ["namespace"]
Expand Down
8 changes: 8 additions & 0 deletions metricbeat/module/system/_meta/config.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@

# Filter systemd services based on a name pattern
#service.pattern_filter: ["ssh*", "nfs*"]
<<<<<<< HEAD
=======

# 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: false
>>>>>>> f3a063f1d (chore: disable performance counters (#42041))
4 changes: 4 additions & 0 deletions metricbeat/module/system/core/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ metricbeat.modules:
- module: system
metricsets: [core]
core.metrics: [percentages, ticks]
<<<<<<< HEAD
=======
#use_performance_counters: false
>>>>>>> f3a063f1d (chore: disable performance counters (#42041))
----
5 changes: 5 additions & 0 deletions metricbeat/module/system/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,10 @@ func (c Config) Validate() (metrics.MetricOpts, error) {
}

var defaultConfig = Config{
<<<<<<< HEAD

Check failure on line 68 in metricbeat/module/system/core/config.go

View workflow job for this annotation

GitHub Actions / lint (darwin)

expected operand, found '<<' (typecheck)
Metrics: []string{percentages},
=======
Metrics: []string{percentages},
UserPerformanceCounters: false,
>>>>>>> f3a063f1d (chore: disable performance counters (#42041))

Check failure on line 73 in metricbeat/module/system/core/config.go

View workflow job for this annotation

GitHub Actions / lint (darwin)

illegal character U+0023 '#' (typecheck)
}

Check failure on line 74 in metricbeat/module/system/core/config.go

View workflow job for this annotation

GitHub Actions / lint (darwin)

missing ',' in composite literal (typecheck)
4 changes: 4 additions & 0 deletions metricbeat/module/system/cpu/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ metricbeat.modules:
- module: system
metricsets: [cpu]
cpu.metrics: [percentages, normalized_percentages, ticks]
<<<<<<< HEAD
=======
#use_performance_counters: false
>>>>>>> f3a063f1d (chore: disable performance counters (#42041))
----
5 changes: 5 additions & 0 deletions metricbeat/module/system/cpu/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,10 @@ func (c Config) Validate() (metrics.MetricOpts, error) {
}

var defaultConfig = Config{
<<<<<<< HEAD

Check failure on line 72 in metricbeat/module/system/cpu/config.go

View workflow job for this annotation

GitHub Actions / lint (darwin)

expected operand, found '<<' (typecheck)
Metrics: []string{percentages, normalizedPercentages},
=======
Metrics: []string{percentages, normalizedPercentages},
UserPerformanceCounters: false,
>>>>>>> f3a063f1d (chore: disable performance counters (#42041))

Check failure on line 77 in metricbeat/module/system/cpu/config.go

View workflow job for this annotation

GitHub Actions / lint (darwin)

illegal character U+0023 '#' (typecheck)
}

Check failure on line 78 in metricbeat/module/system/cpu/config.go

View workflow job for this annotation

GitHub Actions / lint (darwin)

missing ',' in composite literal (typecheck)
8 changes: 8 additions & 0 deletions x-pack/metricbeat/metricbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ metricbeat.modules:
# Filter systemd services based on a name pattern
#service.pattern_filter: ["ssh*", "nfs*"]

<<<<<<< HEAD
=======
# 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: false

>>>>>>> f3a063f1d (chore: disable performance counters (#42041))
#------------------------------- ActiveMQ Module -------------------------------
- module: activemq
metricsets: ['broker', 'queue', 'topic']
Expand Down

0 comments on commit a938d2e

Please sign in to comment.