diff --git a/plugins/synapse/synapse_ b/plugins/synapse/synapse_ index 976ce74e..1f4ab042 100644 --- a/plugins/synapse/synapse_ +++ b/plugins/synapse/synapse_ @@ -176,6 +176,7 @@ fetch_url -H "Authorization: Bearer ${AUTH_TOKEN}" "${SCHEME}${HOMESERVER}:${POR ROOMS=$(fetch_url -H "Authorization: Bearer ${AUTH_TOKEN}" "${SCHEME}${HOMESERVER}:${PORT}${ADMIN_API_PATH}/v1/rooms?limit=${QUERY_LIMIT}") REPORTS=$(fetch_url -H "Authorization: Bearer ${AUTH_TOKEN}" "${SCHEME}${HOMESERVER}:${PORT}${ADMIN_API_PATH}/v1/event_reports" | jq .total) +echo "multigraph synapse_users_${CLEANHOMESERVER}" if total="$(jq -r .total "$USERS_FILE" | grep -E "^[0-9]+$")"; then puppets="$(jq -r '.users[] | select(.deactivated==false) | select(.user_type!="bot")' "$USERS_FILE" | grep -c '"last_seen_ts": null')" bots="$(jq -r '.users[] | select(.deactivated==false)' "$USERS_FILE" | grep -c '"user_type": "bot"')"