Prometheus pull server for Hermes database metrics.
poetry install
POSTGRES_DSN
pointed at Hermes' database.ASTERIA_HOST
defaults to 0.0.0.0ASTERIA_PORT
defaults to 9100JSON_LOGGING
defaults to True
poetry run python wsgi.py
poetry run gunicorn --workers=1 --bind=127.0.0.1:9100 --logger-class=asteria.settings.CustomGunicornLogger wsgi:app
Asteria will answer to any GET request with the collected metrics.
The default endpoint for Prometheus is /metrics.
GET
http://localhost:[ASTERIA_PORT]/metrics