-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[receiver/windowsperfcounters] When collecting instances with multiple matches, data is lost #32319
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
/label -Stale Still ongoing. Related PR (#32321) is awaiting review/merge |
Component(s)
receiver/windowsperfcounters
What happened?
Description
Whenever a multi instance counter is scraped and there are multiple instances with the same name (e.g.
Process\ID Process
for notepad.exe) the receiver scrapes all instances, but puts the exact same label value ininstance
. This is incompatible with most backends as the metrics will be treated as the same time series and either aggregated or only the last datapoint will be kept.The behavior also does not match what PerfMon shows, which would be
notepad
andnotepad#1
in my example above.Steps to Reproduce
prometheusremotewrite
Expected Result
Windows Performance Monitor handles this by concatenating the instance name with its index when there are multiple occurrences of the same instance (usually when multiple instances of a process are running):
notepad
andnotepad_1
as shown in Windows Performance MonitorActual Result
notepad
combined in the same time series:Collector version
0.97
Environment information
Environment
Windows 11
go 1.22 on Ubuntu 22.04 (
GOOS=windows
)OpenTelemetry Collector configuration
Log output
Additional context
I already have a PR that I can submit for this. I understand that this might be a problem in terms of cardinality so I am open to gating this behind a config option for the receiver.
The text was updated successfully, but these errors were encountered: