cemc-oper / nwpc-hpc-exporter

An exporter for Prometheus using in NWPC to monitor HPC status.
GNU General Public License v3.0
1 stars 0 forks source link
loadleveler nwpc prometheus slurm

nwpc-hpc-exporter

Build Status

A Prometheus exporter for HPC metrics using in NWPC.

Features

Installation

pip install .

Configure

See configure sample files in nwpc_hpc_exporter/xxx/conf directory.

Usage

Use installed commands to run exporters. Such as:

disk_space --config-file='some config file path'

Use Docker

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

Build docker image

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

LICENSE

Copyright © 2017-2019, Perilla Roc.

nwpc-hpc-exporter is licensed under GPL v3.0