Changeset

5907:6c11e1b4066d

mod_http_admin_api: User activity gauges need to be summed (labels by host)
author Matthew Wild <mwild1@gmail.com>
date Tue, 16 Apr 2024 12:05:47 +0100
parents 5906:563c2c70cb9f
children 5908:49b0873932ca
files mod_http_admin_api/mod_http_admin_api.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_admin_api/mod_http_admin_api.lua	Tue Apr 16 10:42:25 2024 +0100
+++ b/mod_http_admin_api/mod_http_admin_api.lua	Tue Apr 16 12:05:47 2024 +0100
@@ -763,9 +763,9 @@
 	result.c2s = maybe_export_summed_gauge(families["prosody_mod_c2s/connections"])
 	result.uploads = maybe_export_summed_gauge(families["prosody_mod_http_file_share/total_storage_bytes"]);
 	result.users = {
-		active_1d = maybe_export_plain_gauge(families["prosody_mod_measure_active_users/active_users_1d"]);
-		active_7d = maybe_export_plain_gauge(families["prosody_mod_measure_active_users/active_users_7d"]);
-		active_30d = maybe_export_plain_gauge(families["prosody_mod_measure_active_users/active_users_30d"]);
+		active_1d = maybe_export_summed_gauge(families["prosody_mod_measure_active_users/active_users_1d"]);
+		active_7d = maybe_export_summed_gauge(families["prosody_mod_measure_active_users/active_users_7d"]);
+		active_30d = maybe_export_summed_gauge(families["prosody_mod_measure_active_users/active_users_30d"]);
 	};
 	return json.encode(result);
 end