Skip to content
An exporter for Prometheus using in NWPC to monitor HPC status.
Python Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
nwpc_hpc_exporter
tests
vendor/nwpc-hpc-model
.gitignore
.travis.yml
LICENSE.md
README.md
pytest.ini
setup.py

README.md

nwpc-hpc-exporter

Build Status

A Prometheus exporter for HPC metrics using in NWPC.

Features

  • disk space
  • disk usage
  • LoadLeveler class
  • Slurm partition

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

You can’t perform that action at this time.