Skip to content

Commit aa9617e

Browse files
committed
Write a header for the UA metric
1 parent 51555f4 commit aa9617e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

seagl-scripts/get-metrics.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ echo
3535
echo 'Ephemeral homeserver device registration count, excluding staff:'
3636
remote_psql "$with_nonstaff_clause SELECT count AS \\\"Number of devices registered\\\", COUNT(count) AS \\\"Users in population\\\" FROM (SELECT user_id, COUNT(user_id) FROM devices INNER JOIN non_staff_users ON non_staff_users.name = devices.user_id WHERE display_name != 'master signing key' AND display_name != 'self_signing signing key' AND display_name != 'user_signing signing key' GROUP BY user_id) GROUP BY count;"
3737

38+
echo 'Ephemeral homeserver device registration User-Agents, excluding staff:'
39+
echo '| Count | Browser:Platform |'
40+
echo '| ----- | ---------------- |'
3841
remote_psql "$with_nonstaff_clause SELECT user_agent FROM devices INNER JOIN non_staff_users ON non_staff_users.name = devices.user_id WHERE display_name != 'master signing key' AND display_name != 'self_signing signing key' AND display_name != 'user_signing signing key';" -t | grep -Ev '\([[:digit:]]+ rows\)' | node $(dirname $BASH_SOURCE)/process-uas.js | sort | uniq -c | sort -rh | sed 's/^[[:space:]]*//' | column -t -s' ' --table-columns-limit 2 -o ' | '

0 commit comments

Comments
 (0)