wger-project / wger

Self hosted FLOSS fitness/workout, nutrition and weight tracker
https://wger.de
GNU Affero General Public License v3.0
3.06k stars 570 forks source link

usage stats #1714

Open Dieterbe opened 2 months ago

Dieterbe commented 2 months ago

In order to...

...i would like us to collect basic prometheus metrics from the wger backend, which we can then visualize in grafana. basically a count of these things happening, broken down by "platform" (web vs mobile)

we can then visualize these quite easily in grafana

rolandgeider commented 1 month ago

This will need a bit of manual work, while django-prometheus can automatically monitor the models and report creations, deletions and updates, we won't know where these came from (mobile / web). For things that already happen exclusively through the API, we could check the user agent.

Also, we can easily modify the count for users that logged in in the last x days or similar

https://github.com/korfuri/django-prometheus?tab=readme-ov-file#monitoring-your-models