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
Labels
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
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 ofm.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.
The text was updated successfully, but these errors were encountered: