mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 10:09:05 +02:00
pdh: report duplicate instances by occurrence instead of renaming them (#2742)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -165,6 +165,10 @@ The name of the label that holds the instance name. Optional and defaults to `in
|
||||
|
||||
The label is only added if `instances` is set.
|
||||
|
||||
Some objects report the same instance name more than once in a sample, for example `Process` reports every `svchost` process as `svchost`.
|
||||
The first instance keeps its name, later ones get the suffix `#1`, `#2` and so on, skipping names that Windows reported itself, such as a network adapter `Ethernet#2`.
|
||||
The suffix depends on the order of the sample and does not identify an instance across scrapes.
|
||||
|
||||
#### counters
|
||||
|
||||
List of counters to collect from the object. See the counters sub-schema for more information.
|
||||
|
||||
Reference in New Issue
Block a user