Giter Site home page Giter Site logo

alexlovesgithub / zhmc-prometheus-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhmcclient/zhmc-prometheus-exporter

0.0 1.0 0.0 100 KB

A prometheus.io exporter for the IBM Z Hardware Management Console

License: Apache License 2.0

Makefile 9.69% Python 89.24% Dockerfile 1.07%

zhmc-prometheus-exporter's Introduction

zhmc-prometheus-exporter

https://travis-ci.org/zhmcclient/zhmc-prometheus-exporter.svg?branch=master https://readthedocs.org/projects/zhmc-prometheus-exporter/badge/?version=stable https://coveralls.io/repos/github/zhmcclient/zhmc-prometheus-exporter/badge.svg?branch=master

A prometheus.io exporter written in Python for metrics from the IBM Z Hardware Management Console using zhmcclient. Tested with Python 3.4 through 3.7.

Installation

$ pip3 install zhmc-prometheus-exporter

Documentation

Read the Docs

Quickstart

The exporter itself

Set up your exporter. Edit your credentials YAML file. A sample credentials YAML is provided. Enter the IP address of the HMC, your username, and your password there. Put this file and metrics.yaml into /etc/zhmc-prometheus-exporter/. The latter defines the metrics and descriptions, you do not have to edit it. You can then run

$ zhmc_prometheus_exporter

The default port is 9291, you can change it with -p. If you do not want to put hmccreds.yaml and metrics.yaml into /etc/zhmc-prometheus-exporter, you can also specify them with -c and -m respectively.

Demo setup

If you want a quick "three simple metrics" setup with Prometheus and Grafana you can proceed as follows:

  • Set up a Prometheus server. Get it from Prometheus. A sample configuration YAML is provided. Fill in the IP and port the exporter will run on. If you left it at default, the port will be 9291. You can then run:

    $ ./prometheus --config.file=prometheus.yaml
    

    See also Prometheus' guide.

  • Set up a Grafana server. Get it from Grafana. You can then run:

    $ ./bin/grafana-server web
    

    By default it will be on localhost:3000. You will have to set IP and port of the Prometheus server. If you didn't change it, it's localhost:9090. See also Prometheus' guide on Grafana.

  • Create the dashboard in Grafana. A sample JSON is provided. If you want it to work natively, you will have to name your source ZHMC_Prometheus.

The following image illustrates what the setup described above could look like.

Deployment diagram of the example

zhmc-prometheus-exporter's People

Contributors

jakob-naucke avatar leopoldjuergen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.