-
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
failed to convert cpuinfo model to integer: strconv.ParseInt: parsing \"\": invalid syntax" #27675
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Ping @ChrsMark |
@kago-dk Thanks for reporting this! The library that we rely on doesn't extract some attributes for Windows OS (in this case, the field I've submitted a PR. Let's see what the code owners have to say about it. |
**Description:** The `system` detector extracts all the `cpu` info from the system even if you disable the configs and I believe this is where the bug kicks in. Disabling the settings will only stop it from setting the resource attributes. The [library](https://github.com/shirou/gopsutil/blob/v3.23.9/cpu/cpu_windows.go#L113) that we rely on doesn't extract some attributes for Windows OS (in this case, the field `cpu.Model`) and it leaves this field empty. This results in a bug when we try to parse an empty string. The long-term fix will be to extract `cpu.Model` in `gopsutil` upstream library. **Link to tracking Issue:** #27675
@kago-dk I see that the PR is merged, can you take the latest pull and test it out on your end? |
…emetry#27678) **Description:** The `system` detector extracts all the `cpu` info from the system even if you disable the configs and I believe this is where the bug kicks in. Disabling the settings will only stop it from setting the resource attributes. The [library](https://github.com/shirou/gopsutil/blob/v3.23.9/cpu/cpu_windows.go#L113) that we rely on doesn't extract some attributes for Windows OS (in this case, the field `cpu.Model`) and it leaves this field empty. This results in a bug when we try to parse an empty string. The long-term fix will be to extract `cpu.Model` in `gopsutil` upstream library. **Link to tracking Issue:** open-telemetry#27675
Resolved in v0.88.0 |
…emetry#27678) **Description:** The `system` detector extracts all the `cpu` info from the system even if you disable the configs and I believe this is where the bug kicks in. Disabling the settings will only stop it from setting the resource attributes. The [library](https://github.com/shirou/gopsutil/blob/v3.23.9/cpu/cpu_windows.go#L113) that we rely on doesn't extract some attributes for Windows OS (in this case, the field `cpu.Model`) and it leaves this field empty. This results in a bug when we try to parse an empty string. The long-term fix will be to extract `cpu.Model` in `gopsutil` upstream library. **Link to tracking Issue:** open-telemetry#27675
There are more bugs btw. see - #33768 |
And one more ... #33771 |
Component(s)
processor/resourcedetection
What happened?
Description
After the implementation of "[processor/resourcedetection] Add support for host cpuinfo attributes #26533", I am getting this warning on my Windows Servers (2022). I have tried to disable most of the CPU attributes without any success.
Warning log line
2023-10-15T06:20:10.734-0700 warn system/system.go:102 failed to get host cpuinfo {"kind": "processor", "name": "resourcedetection/system", "pipeline": "metrics", "error": "failed to convert cpuinfo model to integer: strconv.ParseInt: parsing "": invalid syntax"}
Steps to Reproduce
Use configuration
Expected Result
No warnings should be shown on the Windows Servers.
Actual Result
Collector version
v0.87.0
Environment information
Environment
Windows 2022 Server
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: