from pyp8s import MetricsHandler
MetricsHandler.init("events_total", "counter", "Events happening")
MetricsHandler.inc("events_total", 1, source="around", kind="good")
MetricsHandler.serve()
↓ ↓ ↓
# HELP events_total Events happening
# TYPE events_total counter
events_total{source="around",kind="good"} 1
Python library: https://pypi.org/project/pyp8s/
Django app: https://pypi.org/project/django-pyp8s/
🐓