Trying to include metrics without too much effort.
This commit is contained in:
parent
0b9eabac7a
commit
678d45f892
@ -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
|
||||
|
@ -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)/" \
|
||||
|
Loading…
Reference in New Issue
Block a user