mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Add total rooms
This commit is contained in:
parent
dad6289bf3
commit
b4089a34f3
|
|
@ -234,6 +234,11 @@ func (p *phoneHomeStats) collect() {
|
|||
p.stats["database_server_version"] = dbVersion
|
||||
|
||||
// message and room stats
|
||||
rooms, err := p.db.TotalRooms(ctx)
|
||||
if err != nil {
|
||||
logrus.WithError(err).Error("unable to query TotalRooms")
|
||||
}
|
||||
p.stats["total_room_count"] = rooms
|
||||
messages, err := p.db.DailyMessages(ctx, 0)
|
||||
if err != nil {
|
||||
logrus.WithError(err).Error("unable to query DailyMessages")
|
||||
|
|
|
|||
Loading…
Reference in a new issue