Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/korfuri/pip-prometheus

Export the version of Pip packages to Prometheus
https://github.com/korfuri/pip-prometheus

exported-metrics metrics pip prometheus python

Last synced: about 2 months ago
JSON representation

Export the version of Pip packages to Prometheus

Awesome Lists containing this project

README

        

# pip-prometheus
Export the version of Pip packages to Prometheus.io

[![PyPI version](https://badge.fury.io/py/pip-prometheus.svg)](http://badge.fury.io/py/pip-prometheus)
[![Build Status](https://travis-ci.org/korfuri/pip-prometheus.svg?branch=master)](https://travis-ci.org/korfuri/pip-prometheus)
[![PyPi page link -- Python versions](https://img.shields.io/pypi/pyversions/pip-prometheus.svg)](https://pypi.python.org/pypi/pip-prometheus)

## Usage

Simply `import pip_prometheus` to register the metrics.

See the [prometheus_client documentation](https://github.com/prometheus/client_python) to see how to export the
metrics via an HTTP server. If you're using Django, check out
[django-prometheus](https://github.com/korfuri/django-prometheus) which can export metrics to a Django view, and
exports metrics relevant to Django.

To aggregate the exported variables, see the [Prometheus.io documentation](http://prometheus.io/).