Read Windows Performance Counters plugin - Netuitive/collectdwin GitHub Wiki
This plugin use the Windows PerformanceCounter component to collect the configured metrics. The unix version of Collectd has meta data (plugin name, plugin instance, type, type instance) for each metric. Each performance counter can be mapped to its Collectd equivalent meta data via configuration.
<ReadWindowsPerfCounters ReloadInterval="3600">
<Counters>
<Counter Category="Processor" Name="% Idle Time" Instance="_Total" CollectdPlugin="aggregation" CollectdPluginInstance="cpu-average" CollectdType="cpu" CollectdTypeInstance="idle" />
<Counter Category="LogicalDisk" Name="% Free Space" Instance=".*" CollectdPlugin="df" CollectdType="percent_bytes" CollectdTypeInstance="free" />
<Counter Category="Network Interface" Name="Packets Received/Sec,Packets Sent/Sec" Instance="*" CollectdPlugin="interface" CollectdType="if_packets" CollectdTypeInstance="" />
</Counters>
</ReadWindowsPerfCounters >
Name | Description |
---|---|
ReloadInterval | The period in seconds before rescanning for new/changed instances (defaults to 3600) |
Category | The name of the performance counter category |
Name | Comma separated performance counter names |
Instance | This can be set to a specific instance or a regular expression to filter the instances. Some counter categories do not have instances in which case this should be left blank. |
CollectdPlugin | Collectd plugin name |
CollectdPluginInstance | Where the configuration is for a single instance this value can be used to override the instance name. Where there are multiple instances this value is automatically set for each instance |
CollectdType | Metric type and units. This must be a value in types.db (found in the deployment folder). |
CollectdTypeInstance | Name for the metric instance |
Multiplier | (Optional) Float scale factor to be applied to the value |
DecimalPlaces | (Optional) Integer number of decimal places for rounding |