Skip to content

rapl broken in newer kernels #1892

@lheckemann

Description

@lheckemann

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, version 1.0.1 (branch: , revision: v1.0.1)
  build user:
  build date:
  go version:       go1.15.5

node_exporter command line flags

/nix/store/wmjjwpn7h2y5vpms5x2zf9qg9fp60d8c-node_exporter-1.0.1/bin/node_exporter --collector.arp --collector.bcache --collector.conntrack --collector.filefd --collector.logind --collector.netclass --collector.netdev --collector.netstat --collector.rapl --collector.sockstat --collector.softnet --collector.stat --collector.systemd --collector.textfile --collector.textfile.directory /run/prometheus-node-exporter --collector.thermal_zone --collector.time --collector.udp_queues --collector.uname --collector.vmstat --collector.cpu --collector.cpufreq --collector.diskstats --collector.edac --collector.entropy --collector.filesystem --collector.hwmon --collector.interrupts --collector.ksmd --collector.loadavg --collector.meminfo --collector.pressure --collector.timex --collector.zfs --web.listen-address 0.0.0.0:9100 --collector.disable-defaults

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?

Nov 19 14:47:21 localhost node_exporter[3135]: level=error ts=2020-11-19T14:47:21.869Z caller=collector.go:161 msg="collector failed" name=rapl duration_seconds=0.000307877 err="open /sys/class/powercap/intel-rapl:0/energy_uj: permission denied"

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions