Helper functions for creating metric exporters for Prometheus.
Use like so:
- Add the submodule at some local path, let's say
metrics
git submodule add https://github.com/vimc/metrics-utils metrics
- Add to your build/whatever script:
pip3 install -r metrics/requirements.txt
- Import and use:
from metrics.metrics import render_metrics