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:
Jan-Otto Kröpke
2026-10-16 09:58:43 +02:00
committed by GitHub
parent d8dbf852d1
commit 43d77f6869
32 changed files with 832 additions and 266 deletions
+3 -1
View File
@@ -115,7 +115,9 @@ Some metrics explained: https://learn.microsoft.com/en-us/archive/blogs/chrisavi
Windows reports no instance name for VMs managed by the Host Compute Service, such as the WSL 2 VM.
The first such VM has `vm="(unknown)"`, further ones `vm="(unknown)#1"`, `vm="(unknown)#2"` and so on.
The suffix only keeps the series unique and does not identify the VM across scrapes.
VMs with the same name get the same suffixes, here and in the VM Vid Partition, Hypervisor Virtual Processor and Replica VM performance counter metrics, and so do virtual switches with the same name.
All cores of one VM share its suffix; this relies on Windows listing the virtual processors of a VM together, starting with core 0.
The suffix only keeps the series unique and does not identify the VM across scrapes or between these metric groups.
### Hyper-V Host