Trying to include metrics without too much effort.

This commit is contained in:
pitchum 2022-12-26 11:30:50 +01:00 committed by root
parent 0b9eabac7a
commit 678d45f892
2 changed files with 2 additions and 2 deletions

View File

@ -45,9 +45,8 @@ metrics.accounts.total.count = __TOTAL_USER_ACCOUNTS__
metrics.accounts.active.name = Nombre de comptes actifs
metrics.accounts.active.description = Nombre de comptes vraiment utilisés récemment
metrics.users.total.__CURRENT_YEAR__ = __ACTIVE_USER_YEAR__
metrics.accounts.active.lastyear = __ACTIVE_USER_YEAR__
metrics.accounts.active.lastmonth = __ACTIVE_USER_MONTH__
metrics.accounts.active.lastweek = __ACTIVE_USER_WEEK__
subs.metrics-2020=https://xmpp.chapril.org/.well-known/chaprilinfos/xmppchaprilorg-metrics-2020.properties
subs.metrics-2021=https://xmpp.chapril.org/.well-known/chaprilinfos/xmppchaprilorg-metrics-2021.properties

View File

@ -7,6 +7,7 @@ main() {
cat "${TEMPLATE}" \
| sed "s/__EJABBERD_VERSION__/$(get_ejabberd_version)/" \
| sed "s/__LAST_UPDATE__/$(date -Iminutes)/" \
| sed "s/__CURRENT_YEAR__/$(date +%Y)/" \
| sed "s/__TOTAL_USER_ACCOUNTS__/$(count_user_accounts)/" \
| sed "s/__ACTIVE_USER_WEEK__/$(user_activity 7)/" \
| sed "s/__ACTIVE_USER_MONTH__/$(user_activity 30)/" \