element-hq / element-hq/synapse

Admin API - Users' message event usage statistics

Open
#11,871 0 comments 0 reactions 0 assignees View on GitHub
A-Admin-API T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#11871](https://github.com/matrix-org/synapse/issues/11871).

---

Are there any plans to expand the pre-existing admin API offerings for [statistics](https://matrix-org.github.io/synapse/develop/admin_api/statistics.html)?

E.g. While the pre-existing "[Users' media usage statistics](https://matrix-org.github.io/synapse/develop/admin_api/statistics.html#users-media-usage-statistics)" offering covers media, it doesn't cover message events. I'm thinking about this through a lens of:

- Keeping track of users and/or rooms that consume the most resources (e.g. top 10 users/rooms).
- Yes a media datum will typically be larger than a message event, but if there are users and/or rooms that are emitting large quantities of message events (e.g. IoT bots), that message event volume could build up.

Edit (2022-03-24): It [appears](https://github.com/matrix-org/synapse/issues/9602) as though some functionality relating to this had existed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.