https://github.com/korfuri/python-logging-prometheus
Export metrics about your logging to Prometheus.io
https://github.com/korfuri/python-logging-prometheus
exported-metrics logging metrics prometheus python
Last synced: about 1 year ago
JSON representation
Export metrics about your logging to Prometheus.io
- Host: GitHub
- URL: https://github.com/korfuri/python-logging-prometheus
- Owner: korfuri
- License: apache-2.0
- Created: 2015-04-20T23:52:18.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-10T00:04:48.000Z (about 6 years ago)
- Last Synced: 2024-11-06T14:08:09.330Z (over 1 year ago)
- Topics: exported-metrics, logging, metrics, prometheus, python
- Language: Python
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-logging-prometheus
Export metrics about your Python application's logging volume for Prometheus.io.
[](http://badge.fury.io/py/logging-prometheus)
[](https://travis-ci.org/korfuri/python-logging-prometheus)
[](https://pypi.python.org/pypi/python-logging-prometheus)
## Installation
```shell
pip install logging_prometheus
```
## Usage
Simply `import logging_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/).