ipmi-exporter is a simple server that periodically scrapes IPMI stats and exports them via HTTP for Prometheus consumption, written in Go.
docker create --name=ipmiexporter \
--device=/dev/ipmi0:/dev/ipmi0 \
-p 9290:9290 \
antilax3/ipmi-exporter
The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side. For example with a volume -v external:internal - what this shows is the volume mapping from internal to external of the container. So -v /mnt/app/config:/config would map /config from inside the container to be accessible from /mnt/app/config on the host's filesystem.
-p 9290 - HTTP port for webserver-e PUID - for UserID, see below for explanation-e PGID - for GroupID, see below for explanation-e TZ - for setting timezone information, eg Australia/MelbourneIt is based on alpine linux with s6 overlay, for shell access whilst the container is running do docker exec -it ipmiexporter /bin/bash.
Sometimes when using data volumes (-v flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user PUID and group PGID. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work".
In this instance PUID=1001 and PGID=1001. To find yours use id user as below:
$ id <dockeruser>
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
To ensure that ipmi-exporter can retrieve and expose metrics you need to mount your IPMI device in the container, per the usage example above or for docker-compose example below:
ipmiexporter:
image: ipmi-exporter
container_name: ipmiexporter
devices:
- /dev/ipmi0:/dev/ipmi0
restart: unless-stopped
ports:
- 9290:9290
Content type
Image
Digest
sha256:65bccd5e2…
Size
31.6 MB
Last updated
4 months ago
docker pull antilax3/ipmi-exporter