A Prometheus exporter for HPC metrics using in NWPC.
- disk space
- disk usage
- LoadLeveler class
- Slurm partition
pip install .
See configure sample files in nwpc_hpc_exporter/xxx/conf
directory.
Use installed commands to run exporters. Such as:
disk_space --config-file='some config file path'
Get Docker image from Docker Hub. Run a container with port and volume mapped.
docker pull perillaroc/nwpc-hpc-exporter:disk-space
docker run -d -p 8101:8101 -v /some_path/disk_space.config.yml:/etc/nwpc-hpc-exporter/disk_space.config.yml \
perillaroc/nwpc-hpc-exporter:disk-space
First, build the base image nwpc-hpc-exporter.
docker build -t perillaroc/nwpc-hpc-exporter -f ./docker/nwpc_hpc_exporter/Dockerfile .
Then, build other exporter images. Such as disk space exporter.
docker build -t perillaroc/nwpc-disk-space-exporter -f ./docker/disk_space/Dockerfile .
Finally, run a docker container with port and volume mapped.
docker run -d -p 8101:8101 -v /some_path/disk_usage.config.yml:/etc/nwpc-hpc-exporter/disk_usage.config.yml \
perillaroc/nwpc-disk-usage-exporter
Copyright © 2017-2019, Perilla Roc.
nwpc-hpc-exporter
is licensed under GPL v3.0