Sign inSign up

mso4sc/slurm_exporter

By mso4sc

•Updated over 5 years ago

Prometheus exporter to get SLURM metrics from an HPC (it executes remotely accessing the HPC by ssh)

Image
1

3.8K

mso4sc/slurm_exporter repository overview

⁠Slurm Prometheus Exporter Docker image

Prometheus exporter that publish Slurm metrics from a remote HPC (connected by ssh).

⁠Usage

# docker run --rm -d -p 9100:9100 mso4sc/slurm_exporter -host=<HOST> -ssh-user=<USER> -ssh-password=<PASSWD>
ea994b6b6ac2c73f10ca2a1150e32938031ad98a786dab5554772140c1a35c16

# docker ps -a
CONTAINER ID        IMAGE                   COMMAND                  CREATED         STATUS              PORTS                     NAMES
ea994b6b6ac2        mso4sc/slurm_exporter   "slurm_exporter -l..."   7 minutes ago   Up 3 seconds        0.0.0.0:9100->9100/tcp   dreamy_spence

$ curl localhost:9100/metrics
# HELP ....

One script in docker folder helps working with docker:
run.sh runs a new exporter in a new container. It returns the container ID and HOST PORT.

To build the image locally, the script build.sh helps doing it.

Tag summary

Content type

Image

Digest

Size

138 MB

Last updated

over 5 years ago

docker pull mso4sc/slurm_exporter