matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.83k stars 2.13k forks source link

synapse_admin_mau_current always zero #16513

Closed Tealk closed 1 year ago

Tealk commented 1 year ago

Description

The metric "synapse_admin_mau_current" always gives me 0 since the installation.

Steps to reproduce

Homeserver

rollenspiel.chat

Synapse Version

1.94.0

Installation Method

Debian packages from packages.matrix.org

Database

PostgreSQL

Workers

Single process

Platform

Dieban 12 (Bookworm) as VM on a Proxmox installation.

Configuration

listeners:

Relevant log output

the following line is repeated again and again, otherwise nothing with metric occurs in the log

2023-10-17 00:03:53,370 - synapse.metrics._gc - 120 - INFO - sentinel - Collecting gc 1

Anything else that would be useful to know?

No response

clokep commented 1 year ago

The metric "synapse_admin_mau_aktuell" always gives me 0 since the installation.

synapse_admin_mau_current always zero

Just to confirm, the metric name seems to be synapse_admin_mau_current, taking a look at our dashboards it seems to be working OK.

Do you have limit_usage_by_mau or mau_stats_only enabled in your config?

Tealk commented 1 year ago

Yes the variable is "synapse_admin_mau_current", I don't know why I translated it

Do you have limit_usage_by_mau or mau_stats_only enabled in your config?

no I have not configured these two.

other values in the synapse dashboard are displayed but not the mau. image

clokep commented 1 year ago

Do you have limit_usage_by_mau or mau_stats_only enabled in your config?

no I have not configured these two.

You must enable one of those in order to enable MAU. After enabling you must restart Synapse (and I think Synapse doesn't re-calculate MAU for 5 minutes after starting).

Tealk commented 1 year ago

Thank you very much I'll try it

I have relied on the instructions and thought with enable_metrics everything is enabled. https://matrix-org.github.io/synapse/latest/metrics-howto.html?highlight=prometh#how-to-monitor-synapse-metrics-using-prometheus

Tealk commented 1 year ago

ok my mistake, now i have the metrics too, sorry. should it perhaps be included in the promethus instructions?

clokep commented 1 year ago

should it perhaps be included in the promethus instructions?

Improving the docs is always appreciated! 👍