Update dash + csv_export.

main
mathan 2024-02-28 10:37:18 -08:00
parent 439518fda1
commit 209813bd87
4 changed files with 791 additions and 760 deletions

View File

@ -57,6 +57,7 @@ sqldu:
# ---------------------------- CSV Export ---------------------------- # ---------------------------- CSV Export ----------------------------
# NOT RECOMMENDED TO RUN for the firts time on hot live db, will chomp all available IO. stop services first
csv-export: csv-export:
@nohup ./csv_export.sh > csv_export.out & @nohup ./csv_export.sh > csv_export.out &

View File

@ -45,5 +45,5 @@ EOF
# ------------------------------ Dump handles from plc-mirror ---------------------------------- # ------------------------------ Dump handles from plc-mirror ----------------------------------
docker exec -it plc-postgres-1 psql -U postgres -d plc \ docker exec -t plc-postgres-1 psql -U postgres -d plc \
-c 'copy (select handle, did as "did:ID" from actors) to stdout with (format csv , header, force_quote ("handle"));' | sed -E -e 's/([^\\])\\",/\1\\\\",/g' > handles.csv -c 'copy (select handle, did as "did:ID" from actors) to stdout with (format csv , header, force_quote ("handle"));' | sed -E -e 's/([^\\])\\",/\1\\\\",/g' > handles.csv

View File

@ -201,7 +201,7 @@
} }
] ]
}, },
"unit": "repo/h", "unit": "users/h",
"unitScale": true "unitScale": true
}, },
"overrides": [] "overrides": []
@ -243,7 +243,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "Registrations rate", "title": "Registration rate",
"type": "gauge" "type": "gauge"
}, },
{ {
@ -1207,13 +1207,13 @@
] ]
}, },
"time": { "time": {
"from": "now-24h", "from": "now-2d",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "", "timezone": "",
"title": "Bsky Statistics", "title": "Bsky Statistics",
"uid": "aXw6dQhSas", "uid": "aXw6dQhSas",
"version": 9, "version": 10,
"weekStart": "" "weekStart": ""
} }

File diff suppressed because it is too large Load Diff