Creating new perfmon counter in meteric beat

Hi Team,

I am trying to add new counter to the metric beat yml files but when i tried to create new counter i am getting the below error.

My yml file

  • module: windows
    metricsets: [perfmon]
    period: 10s
    perfmon.ignore_non_existent_counters: true
    perfmon.group_measurements_by_instance: true
    perfmon.counters:
    • instance_label: processor.name
      instance_name: total
      measurement_label: processor.time.total.pct
      query: '\Processor Information(_Total)% Processor Time'

    • instance_label: physical_disk.name
      measurement_label: physical_disk.write.per_sec
      query: '\PhysicalDisk(*)\Disk Writes/sec'

    • instance_label: physical_disk.name
      measurement_label: physical_disk.write.time.pct
      query: '\PhysicalDisk(*)% Disk Write Time'

    • instance_label: Web_Service.name
      measurement_label: Web_Service.current.count
      query: '\Web Service(*)\Current Connections'

And i am getting the below error message. Please let me know what wrong i am doing in it.

2019-03-13T06:14:49.057-0400 INFO instance/beat.go:403 metricbeat start running.
2019-03-13T06:14:49.057-0400 ERROR cfgfile/reload.go:223 Error loading config: invalid config: yaml: line 19: did not find expected key
2019-03-13T06:14:49.057-0400 INFO [monitoring] log/log.go:117 Starting metrics logging every 30s
2019-03-13T06:14:49.248-0400 INFO [monitoring] log/log.go:152 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":93,"t
ime":{"ms":171}},"total":{"ticks":139,"time":{"ms":249},"value":0},"user":{"ticks":46,"time":{"ms":78}}},"handles":{"open":188},"info":{"ephemeral_id":"4d0b6419-a0d8-
4294-a8c1-211fef3e71df","uptime":{"ms":4202}},"memstats":{"gc_next":5136784,"memory_alloc":3205376,"memory_total":8898568,"rss":28332032}},"libbeat":{"config":{"modul
e":{"running":0}},"output":{"type":"elasticsearch"},"pipeline":{"clients":0,"events":{"active":0}}},"system":{"cpu":{"cores":2}}}}}
2019-03-13T06:14:49.248-0400 INFO [monitoring] log/log.go:153 Uptime: 4.2034522s
2019-03-13T06:14:49.248-0400 INFO [monitoring] log/log.go:130 Stopping metrics logging.
2019-03-13T06:14:49.248-0400 INFO instance/beat.go:413 metricbeat stopped.
2019-03-13T06:14:49.249-0400 ERROR instance/beat.go:911 Exiting: 1 error: invalid config: yaml: line 19: did not find expected key
Exiting: 1 error: invalid config: yaml: line 19: did not find expected key

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