Node_exporter: Export ACPI metrics

Created on 20 Sep 2017  路  6Comments  路  Source: prometheus/node_exporter

There are useful ACPI metrics such as current battery charge that it would be nice to get from node_exporter. It looks like they're in /sys/class/power_supply on my computer (in Linux).

accepted enhancement good first issue help wanted

Most helpful comment

I would love to start working on this. I will try to create a Pull Request for procfs.

All 6 comments

Sounds like a good idea to me. It looks like this is documented in the kernel.

Typically we start by adding the required support to the Prometheus procfs library.

I would love to start working on this. I will try to create a Pull Request for procfs.

For what it's worth I wrote a collector for my own use -- http://slbkbs.org/power_supply_linux.go -- it still needs work but maybe it can be useful for you.

It would be nice to get this done before FOSDEM 2019. This would allow us to monitor the laptops farm we use for video encoding.

The code is nearly done. It is based on the Pull Request I created for procfs. So I am waiting for this to be merged.

PR merged, closing issue.

Was this page helpful?
0 / 5 - 0 ratings