-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
rapl broken in newer kernels #1892
Comments
Yeah we should probably skip this silently if we can't read it. |
For these energy counters to become readable again, it would require kernel side work and probably much less accuracy from the counters so that security would not be compromised. I have not heard of plans to implement such less-accurate versions, but you never know, somebody might do it. At the current level of accuracy these will remain root-only. |
Same problem on an up-to-date Debian 10: root@buster:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
root@buster:~# node_exporter --version
node_exporter, version 1.0.1 (branch: HEAD, revision: 3715be6ae899f2a9b9dbfd9c39f3e09a7bd4559f)
build user: root@1f76dbbcfa55
build date: 20200616-12:44:12
go version: go1.14.4
root@buster:~# journalctl -u node_exporter.service | grep err | head -n 1
Dec 26 21:05:00 buster node_exporter[15560]: level=error ts=2020-12-26T20:05:00.257Z caller=collector.go:161 msg="collector failed" name=rapl duration_seconds=0.006197907 err="open /sys/class/powercap/intel-rapl:0/energy_uj: permission denied"
root@buster:~# uname -a
Linux buster 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
Is there a way to disable the |
Thank you for finding the workaround, @kmille. Using the archlinux package, just put |
Any solution if we want to keep collecting rapl power consumption metrics ? |
You should be able to use sysfstools to change the permissions of the rapl sysfs entries upon boot. For example, add something like this to /etc/sysfs.conf:
|
With newer kernels the the Intel Running Average Power Limit (RAPL) collector fails with the error message: open /sys/class/powercap/intel-rapl:0/energy_uj: permission denied Disable this collector for now. See prometheus/node_exporter#1892
I'm having this same issue #2090 |
Capture permission denied error for "energy_uj" file. Fixes: #1892 Signed-off-by: Ben Kochie <superq@gmail.com>
Capture permission denied error for "energy_uj" file. Fixes: #1892 Signed-off-by: Ben Kochie <superq@gmail.com>
Capture permission denied error for "energy_uj" file. Fixes: prometheus#1892 Signed-off-by: Ben Kochie <superq@gmail.com>
Capture permission denied error for "energy_uj" file. Fixes: prometheus#1892 Signed-off-by: Ben Kochie <superq@gmail.com>
Host operating system: output of
uname -a
Linux localhost 5.4.77 #1-NixOS SMP Tue Nov 10 20:13:20 UTC 2020 x86_64 GNU/Linux
node_exporter version: output of
node_exporter --version
node_exporter command line flags
Are you running node_exporter in Docker?
No.
What did you do that produced an error?
Upgraded the kernel to 5.4.77 and rebooted.
What did you expect to see?
No errors.
What did you see instead?
This seems to be caused by https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.4.77&id=19f6d91bdad42200aac557a683c17b1f65ee6c94
The text was updated successfully, but these errors were encountered: