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

Phone home stats don't include encrypted messages #9249

Closed
jcgruenhage opened this issue Jan 28, 2021 · 3 comments
Closed

Phone home stats don't include encrypted messages #9249

jcgruenhage opened this issue Jan 28, 2021 · 3 comments
Labels
T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@jcgruenhage
Copy link
Contributor

Description

Three metrics sent by Synapse to Panopticon are based on m.room.message:

  • daily_messages
  • daily_sent_messages
  • daily_active_rooms

The easy way out would be to just change the queries, to include encrypted messages, however, this means that the definition of these metrics changes all of a sudden, meaning you really can't do any statistics based on data from before and after that change.

So, as an alternative, I'd suggest adding three metrics, which include m.room.encrypted instead of m.room.message:

  • daily_encrypted_messages
  • daily_sent_encrypted_messages
  • daily_active_encrypted_rooms

Later, when someone wants to look at the combined stats, that can still be done in the SQL query sent to Panopticons DB.

If that sounds good to you, you'll receive PRs to Synapse and Panopticon sometime early next week for implementing this.

@clokep
Copy link
Member

clokep commented Jan 28, 2021

@callahad @neilisfragile -- Any thoughts on this? My gut is that having them separate probably makes the most sense.

@neilisfragile
Copy link
Contributor

Yes, separate is good because the ratio is important, especially as it changes over time.

@jcgruenhage
Copy link
Contributor Author

fixed in #9283, panopticon PR in matrix-org/panopticon#20.

@anoadragon453 anoadragon453 added the T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. label Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

4 participants