PSU Energy AC - IPMI machine
What it does
This metric provider uses the IPMI protocol to get sensor data from the current power
draw of the system.
This can either come from a sensor that is accessible via
ACPI or via other means through the
You will need
sudo apt-get install freeipmi-tools ipmitool installed on a Debian based distro.
This installation step will automatically happen if you normally install the tool with the
The install script will also set a
sudoers.d entry so that the underlying
/usr/sbin/ipmi-dcmi --get-system-power-statistics can execute without password request.
On some systems you will need to run the detect program first
sudo sensors-detect which looks at all the chips
in your computer and creates the config file.
-i: interval in milliseconds. By default the measurement interval is 100 ms.
> ./ipmi-get-machine-energy-stat.sh -i 100
This metric provider prints to stdout a continuous stream of data every
interval milliseconds till it is stopped with
sigint (Ctrl-c). The format of the data is as follows:
TIMESTAMP: Unix timestamp, in microseconds
READING: The value taken from sensors.
Any errors are printed to stderr.