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

synapse_admin_mau_current always zero #16513

Closed
Tealk opened this issue Oct 17, 2023 · 6 comments
Closed

synapse_admin_mau_current always zero #16513

Tealk opened this issue Oct 17, 2023 · 6 comments
Labels
X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@Tealk
Copy link

Tealk commented Oct 17, 2023

Description

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

Steps to reproduce

  • Install synapse
  • activate metric

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:

  • port: 8008
    tls: false
    type: http
    x_forwarded: true
    bind_addresses: ['0.0.0.0']
    resources:
    • names: [client, federation, health]
      compress: false

beginning of the new metrics listener

  • port: 9000
    type: metrics
    bind_addresses: ['0.0.0.0']
    enable_metrics: true

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
Copy link
Member

clokep commented Oct 17, 2023

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?

@clokep clokep added the X-Needs-Info This issue is blocked awaiting information from the reporter label Oct 17, 2023
@Tealk
Copy link
Author

Tealk commented Oct 17, 2023

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
Copy link
Member

clokep commented Oct 17, 2023

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
Copy link
Author

Tealk commented Oct 17, 2023

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
Copy link
Author

Tealk commented Oct 17, 2023

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

@clokep
Copy link
Member

clokep commented Oct 17, 2023

should it perhaps be included in the promethus instructions?

Improving the docs is always appreciated! 👍

@clokep clokep closed this as completed Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants