Metricbeat / windows - perfmon counter

(Rebot ) #1

hi ,

for my windows module (metricset: perfmon), do I have to fill in the counter in the metricbeat.yml
Because I would like to do that in the configuration of the windows module, but not in the metricbeat.yml.

  # Glob pattern for configuration loading
  path: c:\\ProgramData\\metricbeat\\modules.d\\*.yml

  # Set to true to enable config reloading
  reload.enabled: true

  # Period on which files under path should be checked for changes
  reload.period: 10s

#============================== modules =====================================

- module: windows
  metricsets: ["perfmon"]
  enabled: true
  period: 10s
  perfmon.ignore_non_existent_counters: true
    - instance_label:
      instance_name: total
      query: '\Processor Information(_Total)\% Processor Time'


if i define the same counter in the windows.yml, why i can't take it back if i don't define it in metricbeat.yml

(Jaime Soriano) #2

Hi @Reb,

You should be able to place the same configuration in a yml file inside your modules.d directory. If you include files from c:\ProgramData\metricbeat\modules.d\*.yml you shouldn't need to define metricbeat.modules too.

(system) closed #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.