This is a copy of lovoo/ipmi_exporter. Upstream is no longer maintained (the repo is archived).
Builds of this image are available as mjkelly/ipmi_export
:
https://hub.docker.com/repository/docker/mjkelly/ipmi_exporter
IPMI Exporter for prometheus.io, written in Go.
Changes from upstream are:
- Include fan speeds exported by percentage (under
fan_speed_percent
) - Use Go modules, remove
vendor
folder
- ipmitool
docker run --device=/dev/ipmi0 -d --name ipmi_exporter -p 9289:9289 mjkelly/ipmi_exporter:latest
To build the binary:
make build
To build a docker image:
make docker
Unit tests aren't fleshed out, they only show that we don't crash when parsing IPMI output.
You can use the fakeipmi
script to test how ipmi_exporter
will react to
certain output:
./ipmi_exporter -ipmi.path $PWD/fakeipmi
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request