Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

MAU prometheus metrics are broken #8573

Closed
turt2live opened this issue Oct 16, 2020 · 3 comments
Closed

MAU prometheus metrics are broken #8573

turt2live opened this issue Oct 16, 2020 · 3 comments
Labels
A-Metrics metrics, measures, stuff we put in Prometheus

Comments

@turt2live
Copy link
Member

Description

uh, t2bot.io's MAU count was reset with a synapse upgrade
it went from 1.20.0 to 1.21.2, and now there's only 38 active users apparently.
this is a big difference from the ~1 million it was before
hmm... the stats are still in the database - did the metrics change?
I've been using synapse_admin_mau:current{job="synapse",instance="t2bot.io"} as the query, which seems to be permanently stuck at 38?

Steps to reproduce

Unclear.

Version information

  • Homeserver: t2bot.io

If not matrix.org:

  • Version: now 1.21.2, up from 1.20.0 (with unrelated patches)
  • Install method: pip
  • Platform: differs
@turt2live
Copy link
Member Author

because t2bot.io doesn't use MAU limiting, these are the settings as defined in homeserver.yaml:

track_appservice_user_ips: true
mau_stats_only: true

@richvdh
Copy link
Member

richvdh commented Oct 16, 2020

apparently this was a deliberate change due to #8404. It's... regrettable... that that didn't get called out in the changelog.

@richvdh richvdh closed this as completed Oct 16, 2020
@turt2live
Copy link
Member Author

This is intentional from the looks of it. #8404 changed how the metric works, breaking the new metrics that t2bot.io is looking for into synapse_admin_mau_current_mau_by_service.

Seems the :current metric used in the issue description is for non-appservice users now.

@MadLittleMods MadLittleMods added the A-Metrics metrics, measures, stuff we put in Prometheus label Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Metrics metrics, measures, stuff we put in Prometheus
Projects
None yet
Development

No branches or pull requests

3 participants