Mercurial > prosody-modules
view mod_measure_active_users/README.md @ 4931:13070c6a7ce8
mod_http_muc_log: Fix exception on lack of trailing slash in room path
A request to /room leads to the match call returning nil which in turn
calls nodeprep(nil). In Prosody 0.11.x this does nothing and simply
returns the nil, while in 0.12 it is an error.
Now it redirects to the calendar view at /room/ - even for non-existant
rooms.
Discovered at a deployment with http_paths = { muc_log = "/" } and
requests to /robots.txt and similar, which now result in a uses redirect
before returning 404.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 22 Apr 2022 14:29:32 +0200 |
parents | 1132f2888cd2 |
children |
line wrap: on
line source
--- labels: - 'Stage-Alpha' summary: 'Measure number of daily, weekly and monthly active users' ... Introduction ============ This module calculates the number of daily, weekly and monthly active users - often abbreviated as DAU, WAU and MAU. These metrics are more accurate for determining how many people are actually using a service. For example simply counting registered accounts will typically include many dormant accounts that aren't really being used. Many servers also track the number of connected users. This is a useful metric for many purposes, but it is generally lower than the actual number of users - because some users may only connect at certain times of day. The module defines "activity" as any login/logout event during the time period, and for this it depends on mod_lastlog2 being loaded (it reads the data stored by mod_lastlog2). Each individual user is only counted once. "Daily" means any event within the past 24 hours, "weekly" means within the past 7 days, and "monthly" means within the past 30 days. Details ======= The user count is calculated shortly after startup, and then recalculated hourly after that. Metrics are exported using Prosody's built-in statistics API. There is no configuration for this module. Compatibility ============= Requires Prosody 0.11 or later with mod_lastlog2 enabled.