Skip to content
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

Fix NODEV errors on Thinkpad when parsing battery status #641

Merged
merged 1 commit into from
May 27, 2024

Conversation

marvin-sinister
Copy link
Contributor

On thinkpads, reading power_supply class charge_control_end_threshold returns no such device error, which results in battery metrics not being exported.

Fixes: prometheus/node_exporter#3019

@SuperQ
Copy link
Member

SuperQ commented May 23, 2024

LGTM, although, it seems to be only some thinkpads. My X1 Carbon seems to work OK for this file.

@discordianfish discordianfish merged commit d9448e6 into prometheus:master May 27, 2024
7 checks passed
@marvin-sinister marvin-sinister deleted the ignore-nodev branch May 27, 2024 19:41
MrAlias referenced this pull request in open-telemetry/opentelemetry-go May 31, 2024
…5453)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/prometheus/procfs](https://togithub.com/prometheus/procfs)
| `v0.15.0` -> `v0.15.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fprocfs/v0.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fprocfs/v0.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fprocfs/v0.15.0/v0.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fprocfs/v0.15.0/v0.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/procfs (github.com/prometheus/procfs)</summary>

###
[`v0.15.1`](https://togithub.com/prometheus/procfs/releases/tag/v0.15.1)

[Compare
Source](https://togithub.com/prometheus/procfs/compare/v0.15.0...v0.15.1)

#### What's Changed

- Fix NODEV errors on Thinkpad when parsing battery status by
[@&#8203;marvin-sinister](https://togithub.com/marvin-sinister) in
[https://github.com/prometheus/procfs/pull/641](https://togithub.com/prometheus/procfs/pull/641)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/procfs/pull/642](https://togithub.com/prometheus/procfs/pull/642)
- Return support for Go 1.20 by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/procfs/pull/645](https://togithub.com/prometheus/procfs/pull/645)
- enable testifylint linter by
[@&#8203;mmorel-35](https://togithub.com/mmorel-35) in
[https://github.com/prometheus/procfs/pull/643](https://togithub.com/prometheus/procfs/pull/643)

#### New Contributors

- [@&#8203;marvin-sinister](https://togithub.com/marvin-sinister) made
their first contribution in
[https://github.com/prometheus/procfs/pull/641](https://togithub.com/prometheus/procfs/pull/641)
- [@&#8203;mmorel-35](https://togithub.com/mmorel-35) made their first
contribution in
[https://github.com/prometheus/procfs/pull/643](https://togithub.com/prometheus/procfs/pull/643)

**Full Changelog**:
prometheus/procfs@v0.15.0...v0.15.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-go).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
mx-psi referenced this pull request in open-telemetry/opentelemetry-collector-contrib Jun 4, 2024
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/prometheus/procfs](https://togithub.com/prometheus/procfs)
| `v0.15.0` -> `v0.15.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fprocfs/v0.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fprocfs/v0.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fprocfs/v0.15.0/v0.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fprocfs/v0.15.0/v0.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/procfs (github.com/prometheus/procfs)</summary>

###
[`v0.15.1`](https://togithub.com/prometheus/procfs/releases/tag/v0.15.1)

[Compare
Source](https://togithub.com/prometheus/procfs/compare/v0.15.0...v0.15.1)

#### What's Changed

- Fix NODEV errors on Thinkpad when parsing battery status by
[@&#8203;marvin-sinister](https://togithub.com/marvin-sinister) in
[https://github.com/prometheus/procfs/pull/641](https://togithub.com/prometheus/procfs/pull/641)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/procfs/pull/642](https://togithub.com/prometheus/procfs/pull/642)
- Return support for Go 1.20 by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/procfs/pull/645](https://togithub.com/prometheus/procfs/pull/645)
- enable testifylint linter by
[@&#8203;mmorel-35](https://togithub.com/mmorel-35) in
[https://github.com/prometheus/procfs/pull/643](https://togithub.com/prometheus/procfs/pull/643)

#### New Contributors

- [@&#8203;marvin-sinister](https://togithub.com/marvin-sinister) made
their first contribution in
[https://github.com/prometheus/procfs/pull/641](https://togithub.com/prometheus/procfs/pull/641)
- [@&#8203;mmorel-35](https://togithub.com/mmorel-35) made their first
contribution in
[https://github.com/prometheus/procfs/pull/643](https://togithub.com/prometheus/procfs/pull/643)

**Full Changelog**:
prometheus/procfs@v0.15.0...v0.15.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM4OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing battery metrics on debian - power_supply class charge_control_end_threshold ": no such device"
3 participants