Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage stats #1714

Open
Dieterbe opened this issue Jul 4, 2024 · 1 comment
Open

usage stats #1714

Dieterbe opened this issue Jul 4, 2024 · 1 comment

Comments

@Dieterbe
Copy link
Contributor

Dieterbe commented Jul 4, 2024

In order to...

  • guide certain "product decisions" (e.g. should we focus on nutrition in the app or on the web page? which functions do people prefer to use on mobile vs web page? is there functionality we can delete because no one uses it?)
  • see uptake in users of wger, and which forms of publicity are more successful than others
    (note that https://wger.de/en/software/features shows "people using wger" - AFAIK this is just a count on the user table, and may include a majority of users who've stopped using wger a while ago. it would be much more interesting to see "active users" (e.g who have used wger in the last week)

...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)

  • meal logged
  • ingredient logged
  • workout / exercise executed
  • body measurement logged
  • user logged in
  • number of users seen in the last week, and/or in the last 14 days

we can then visualize these quite easily in grafana

@rolandgeider
Copy link
Member

rolandgeider commented Jul 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants