No description
- Python 91.5%
- Shell 6%
- Dockerfile 2.5%
| .github/workflows | ||
| asteria | ||
| .gitignore | ||
| CODEOWNERS | ||
| Dockerfile | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
| style.sh | ||
| wsgi.py | ||
Asteria
Prometheus pull server for Hermes database metrics.
Installation
poetry install
required env vars
POSTGRES_DSNpointed at Hermes' database.ASTERIA_HOSTdefaults to 0.0.0.0ASTERIA_PORTdefaults to 9100JSON_LOGGINGdefaults to True
Running DEV
poetry run python wsgi.py
Running gunicron
poetry run gunicorn --workers=1 --bind=127.0.0.1:9100 --logger-class=asteria.settings.CustomGunicornLogger wsgi:app
Api Interaction
Asteria will answer to any GET request with the collected metrics.
The default endpoint for Prometheus is /metrics.
GET
http://localhost:[ASTERIA_PORT]/metrics