ynput/ayon-backend

Monitoring: Export database size metrics

Closed this issue · 0 comments

Story

Administrators needs to measure the size of database, ideally per project (for backup/archiving decisions, HW acquisition planning etc.)

Proposal

Utilize existing metrics endpoint and expose database sizes per project along with "public" schema (project-unrelated data)

TODO

  • expose db size metrics
  • simplify authentication for /api/metrics endpoint using a single-use API key configurable using an env variable