You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start the open telemetry collector using admin account.
What did you expect to see?
No errors or warning.
What did you see instead?
2024-01-08T16:07:23.951-0800 error scraperhelper/scrapercontroller.go:200 Error scraping metrics {"kind": "receiver", "name": "hostmetrics", "data_type": "metrics", "error": "error reading process executable for pid 0: The parameter is incorrect.; error reading process name for pid 0: executable path is empty; error reading process executable for pid 4: A device attached to the system is not functioning.; error reading process name for pid 4: executable path is empty; error reading process executable for pid 72: A device attached to the system is not functioning.; error reading process name for pid 72: executable path is empty; error reading process executable for pid 132: A device attached to the system is not functioning.; error reading process name for pid 132: executable path is empty; error reading process executable for pid 4400: A device attached to the system is not functioning.; error reading process name for pid 4400: executable path is empty; error reading process executable for pid 13488: A device attached to the system is not functioning.; error reading process name for pid 13488: executable path is empty", "scraper": "process"}
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport
go.opentelemetry.io/collector/receiver@v0.91.0/scraperhelper/scrapercontroller.go:200
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1
go.opentelemetry.io/collector/receiver@v0.91.0/scraperhelper/scrapercontroller.go:172
What version did you use?
otelcol-contrib version 0.91.0
Many of the error messages you're seeing are pretty normal and to be expected, as some processes may not be able to be read for metrics.
You can mute these errors using the mute_ configuration options described here. I noticed when I removed the include statement I was still getting errors.
Did you have other comments or concerns in addition to these error messages? Are you able to get the metrics you're looking for from the Notepad.exe process?
Describe the bug
Errors are encountered when collector tries to scrape metrics if a filter is configured for processes in Windows.
Steps to reproduce
hostmetrics
receiver:What did you expect to see?
No errors or warning.
What did you see instead?
2024-01-08T16:07:23.951-0800 error scraperhelper/scrapercontroller.go:200 Error scraping metrics {"kind": "receiver", "name": "hostmetrics", "data_type": "metrics", "error": "error reading process executable for pid 0: The parameter is incorrect.; error reading process name for pid 0: executable path is empty; error reading process executable for pid 4: A device attached to the system is not functioning.; error reading process name for pid 4: executable path is empty; error reading process executable for pid 72: A device attached to the system is not functioning.; error reading process name for pid 72: executable path is empty; error reading process executable for pid 132: A device attached to the system is not functioning.; error reading process name for pid 132: executable path is empty; error reading process executable for pid 4400: A device attached to the system is not functioning.; error reading process name for pid 4400: executable path is empty; error reading process executable for pid 13488: A device attached to the system is not functioning.; error reading process name for pid 13488: executable path is empty", "scraper": "process"}
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport
go.opentelemetry.io/collector/receiver@v0.91.0/scraperhelper/scrapercontroller.go:200
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1
go.opentelemetry.io/collector/receiver@v0.91.0/scraperhelper/scrapercontroller.go:172
What version did you use?
otelcol-contrib version 0.91.0
What config did you use?
Environment
OS: Windows 10 Pro
Additional context
Error does not exist if I remove the
include
section (i.e., do not filter for any process) of theprocess
scraper.The text was updated successfully, but these errors were encountered: