Skip to content

prometheus exporter written in python3 to get custom openstack metrics

License

Notifications You must be signed in to change notification settings

crenduchinta88/openstack-exporter

 
 

Repository files navigation

openstack-exporter

exporter to extract custom metrics from OpenStack

This is an exporter using OpenStack SDK. There is only 1 exporter new, which is for cinder to export the volume driver backend stats.

Running the exporter

The exporter should be installed with

pip install .

Now run the exporter passing in the config.yaml

openstack_exporter --config <path to openstack-config.yaml>

You can use the given Dockerfile to build and use the docker container for an easy rampup

make
docker run -it openstack-exporter:0.1 sh

Adding a collector

You can add a new collector to openstack_exporter/collectors. Then you must add the call to the collector in openstack_exporter/exporter.py

REGISTRY.register(myexporter.Myexporter(openstack_config))

About

prometheus exporter written in python3 to get custom openstack metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.9%
  • Dockerfile 1.4%
  • Makefile 0.7%