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

Signed-off-by: Marvin Sinister <marvin.sinister@gmail.com>
@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 pushed a commit to open-telemetry/opentelemetry-go that referenced this pull request 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
[prometheus/procfs#641
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[prometheus/procfs#642
- Return support for Go 1.20 by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[prometheus/procfs#645
- enable testifylint linter by
[@&#8203;mmorel-35](https://togithub.com/mmorel-35) in
[prometheus/procfs#643

#### New Contributors

- [@&#8203;marvin-sinister](https://togithub.com/marvin-sinister) made
their first contribution in
[prometheus/procfs#641
- [@&#8203;mmorel-35](https://togithub.com/mmorel-35) made their first
contribution in
[prometheus/procfs#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 pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request 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
[prometheus/procfs#641
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[prometheus/procfs#642
- Return support for Go 1.20 by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[prometheus/procfs#645
- enable testifylint linter by
[@&#8203;mmorel-35](https://togithub.com/mmorel-35) in
[prometheus/procfs#643

#### New Contributors

- [@&#8203;marvin-sinister](https://togithub.com/marvin-sinister) made
their first contribution in
[prometheus/procfs#641
- [@&#8203;mmorel-35](https://togithub.com/mmorel-35) made their first
contribution in
[prometheus/procfs#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 <107717825+opentelemetrybot@users.noreply.github.com>
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