 
|
d64679af5c
|
✨(metrics) add prometheus metrics endpoint (#329)
* ✨(backend) add base django-prometheus metrics
* ✨(backend) add prometheus metrics, add the message by status metric
* ✨(backend) Add more metrics on attachement + add 0 by default for statuses
* 🚨(backend) ignore import-outside-toplevel for collector
* 🚨(backend) add all docstring + don't access private properties
* 🔒️(backend) add basic auth to /metrics route
* 🚸(backend) use labels instead of hard-coding statuses in metric
* 📝(backend) document prometheus
* 🎨(backend) lint
* ✅(backend) add first tests for prometheus
* 🚚(backend) move prometheus endpoint to api/<ver>/prometheus/metrics, change middlewarename
* ✅(backend) add attachment tests for prometheus metrics
* 🐛(backend) actually allow disabling prometheus
* 🎨(backend) improve logic in mw
* 🎨(backend) small review fixes
* 🚨(backend) lint
* 🐛(backend) Remove sha256 from factory
* 🎨(backend) nitpicks + linter fixes
* 🐛(poetry) remove duplicate prometheus package in dev deps
* 🐛(poetry) add missing dep
* 🐛(prom) make tests more reliable, disable by default + misc fixes
* 📝(prom) fix docstring in tests
---------
Co-authored-by: Stanislas Bruhiere <stanislas@bruhiere.fr>
|
2025-09-05 12:22:54 +02:00 |
|