No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 91.5%
  • Shell 6%
  • Dockerfile 2.5%
Find a file
Francesco Milani 34e58f3ca6
Some checks failed
build / build (push) Has been cancelled
build / release (production) (push) Has been cancelled
build / release (staging) (push) Has been cancelled
add psycopg "binary" extra
2024-03-13 15:17:42 +02:00
.github/workflows WAL-3383 single branch update 2024-03-13 13:04:29 +02:00
asteria WAL-3383 single branch update 2024-03-13 13:04:29 +02:00
.gitignore WAL-3383 single branch update 2024-03-13 13:04:29 +02:00
CODEOWNERS Update CODEOWNERS 2021-07-21 12:10:30 +00:00
Dockerfile WAL-3383 single branch update 2024-03-13 13:04:29 +02:00
poetry.lock add psycopg "binary" extra 2024-03-13 15:17:42 +02:00
pyproject.toml add psycopg "binary" extra 2024-03-13 15:17:42 +02:00
README.md WAL-3083 bring up to date 2023-07-20 12:59:09 +03:00
style.sh WAL-3383 single branch update 2024-03-13 13:04:29 +02:00
wsgi.py WAL-3383 single branch update 2024-03-13 13:04:29 +02:00

Asteria

Prometheus pull server for Hermes database metrics.

Installation

poetry install

required env vars

  • POSTGRES_DSN pointed at Hermes' database.
  • ASTERIA_HOST defaults to 0.0.0.0
  • ASTERIA_PORT defaults to 9100
  • JSON_LOGGING defaults 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