Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support to specify path to sys/proc etc. #25

Open
perosb opened this issue Nov 28, 2023 · 1 comment
Open

Add support to specify path to sys/proc etc. #25

perosb opened this issue Nov 28, 2023 · 1 comment

Comments

@perosb
Copy link

perosb commented Nov 28, 2023

When running in k8s f.ex., the /sysand /proc must be mounted from the host.

In node_exporter I can specify f.ex:

        - --path.procfs=/host/proc
        - --path.sysfs=/host/sys
        - --path.rootfs=/host/root

Can this be added to rpi_exporter too?

time="2023-11-28T14:00:56Z" level=error msg="cpu collector failed after 0.000981s: open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: no such file or directory" source="collector.go:142"

Thanks 👍

Edit:

On the other hand, this wouldn't stop the logging since I don't have a cpufreq anyways.

$ ls -al /sys/devices/system/cpu/cpu0/cpufre*
ls: cannot access '/sys/devices/system/cpu/cpu0/cpufre*': No such file or directory
@lukasmalkmus
Copy link
Owner

Technically it can be added. But currently I don't have the time to implement this myself.

I'll still accept contributions, tho.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants