Files
lasuite-messages/env.d
f3694122b4 (backend) add maildomain user metrics (#331)
* (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

* (backend) add first poc for maildomain-user metrics

* (backend) add accessed_at to maiboxaccess

* (backend) add minimum time before accessed_at update

* (backend) calculate yau, mau and wau

* (backend) make custom_attribute generic and allow passing it as a query_param

* (backend) make query param optional, return global stats if not passed

* (backend) add tests for anct metrics

* 🔀(backend) post-merge cleanup

* 🚨(backend) rerun make api-update

* 🎨(backend) rework test suite

* 📝(backend) improve docstrings

* 📝(backend) remove route from openapi

* 🚨(backend) fix lint

* (backend) add 404 tests

* ️(metrics) optimize metrics endpoint, remove config & simplify auth

* ️(metrics) add an index on accessed_at

---------

Co-authored-by: Sylvain Zimmer <sylvain@sylvainzimmer.com>
2025-09-08 15:00:32 +02:00
..