IBM Z HMC Prometheus Exporter
Project description
The IBM Z HMC Prometheus Exporter is a Prometheus exporter written in Python that retrieves metrics from the IBM Z Hardware Management Console (HMC) and exports them to the Prometheus monitoring system.
Documentation
Quickstart
Install the exporter and all of its Python dependencies as follows:
$ pip install zhmc-prometheus-exporter
Provide an HMC credentials file for use by the exporter.
The HMC credentials file tells the exporter which HMC to talk to for obtaining metrics, and which userid and password to use for logging on to the HMC.
Download the sample HMC credentials file as hmccreds.yaml and edit that copy accordingly.
For details, see The HMC credentials file.
Provide a metric definition file for use by the exporter.
The metric definition file maps the metrics returned by the HMC to metrics exported to Prometheus.
Furthermore, the metric definition file allows optimizing the access time to the HMC by disabling the fetching of metrics that are not needed.
Download the sample metric definition file as metrics.yaml. It can be used as it is and will have all metrics enabled and mapped properly. You only need to edit the file if you want to adjust the metric names, labels, or metric descriptions, or if you want to optimize access time by disabling metrics not needed.
For details, see The metric definition file.
Run the exporter as follows:
$ zhmc_prometheus_exporter -c hmccreds.yaml -m metrics.yaml
Direct your web browser at http://localhost:9291 to see the exported Prometheus metrics (depending on the number of CPCs managed by your HMC, and dependent on how many metrics are enabled, this may take a moment).
Reporting issues
If you encounter a problem, please report it as an issue on GitHub.
License
This package is licensed under the Apache 2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zhmc_prometheus_exporter-0.5.0.tar.gz
.
File metadata
- Download URL: zhmc_prometheus_exporter-0.5.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96316797ce1a6c21e0c30de13832cd14addd8fcd711250234f1c09679738992b |
|
MD5 | 2b5d18ec965594cfd2ff07619414a441 |
|
BLAKE2b-256 | 1c0b46338a765bbf6fb4231d726cdfb16578e335cf9db20055306361691c512d |
File details
Details for the file zhmc_prometheus_exporter-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: zhmc_prometheus_exporter-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00d347c09da0d0234fe99d48703c79e3d59f58d85283294b4a4a3b4d1dfdd32d |
|
MD5 | 32966a9626c4d719cfb4832c08fb08da |
|
BLAKE2b-256 | 0120c197ae3c5db77967ecb16c96ba5de108644380cc66fa9f2cd6be77b20de4 |