Giter Site home page Giter Site logo

heketi_exporter's Introduction

heketi_exporter

Heketi exporter for Prometheus. Currently only authenticated Heketi servers are supported.

The purpose of this exporter was to get the metrics of a Heketi Controlled Gluster Cluster for Openshift Container Native Storage.

A very simple Openshift Template is included to deploy this exporter into a project. This exporter should be deployed into the same project as Prometheus.

Installation

go get github.com/ttindell2/heketi_exporter
./heketi_exporter

Usage of heketi_exporter

Help is displayed with -h.

Option Default Description
-help - Displays usage.
-listen-address :9189 The address to listen on for HTTP requests.
-log.format logger:stderr Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true"
-log.level info Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]
-metrics-path /metrics URL Endpoint for metrics
-version - Prints version information

Env Variables to Set:

Using the Heketi Go Client to call topology info on authenticated heketi will require these environment variables to be set:

  • HEKETI_CLI_SERVER: The Heketi Server (eg. http://localhost:8080)

  • HEKETI_CLI_USER: The User should always be 'admin'

  • HEKETI_CLI_KEY: The Secret key of the Heketi Admin user.

Metrics in prometheus

Name Description
up Was the last query of Heketi successful
cluster_count Amount of gluster Clusters heketi is controlling
volume_count Amount of volumes in each cluster
node_count Amount of nodes in each cluster
device_count Amount of devices mounted to each node in each cluster
device_size Size of each device mounted to each node in each cluster
device_free Free space of each device mounted to each node in each cluster
device_used Used space of each device mounted to each node in each cluster
brick_count Amount of bricks on each device mounted to each node in each cluster

Building Locally

Make sure you have make installed and docker installed.

make docker

Docker

The docker image has been posted on Docker Hub:

https://hub.docker.com/r/timtindell/heketi_exporter

heketi_exporter's People

Contributors

ttindell2 avatar

Stargazers

 avatar  avatar Joshua Benjamin 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.