Hello,
The following does not seem to work?
- 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: logical_disk.name
measurement_label: logical_disk.disk_time.pct
query: '\LogicalDisk(*)\% Disk Time'
processors:
- add_fields:
fields:
metricset.counter: logical_disk
- instance_label: logical_disk.name
measurement_label: logical_disk.avg_disk_queue_length
query: '\LogicalDisk(*)\Avg. Disk Queue Length'
processors:
- add_fields:
fields:
metricset.counter: logical_disk
Is there a way to use the add_field processor per instance in the perfmon module? We would like to monitor some mssql performance counters and add the name of the database in a custom field. That way we can aggregate counters per host per database. If this is not possible, should I make a feature request?
Tx!
Grtz
Willem