sourmash-bio / branchwater

Searching large collections of sequencing data with genome-scale queries
https://branchwater.sourmash.bio
Other
6 stars 2 forks source link

visualize usage stats #3

Open bluegenes opened 9 months ago

bluegenes commented 9 months ago

thanks to @luizirber's nixos setup, we're already logging with caddy

log files on the mastiff server: wc -l /var/log/caddy/access-*

3868 /var/log/caddy/access-branchwater.sourmash.bio.log
23794 /var/log/caddy/access-mastiff.sourmash.bio.log
4511 /var/log/caddy/access-minke.sourmash.bio.log

But we should make this logging visible/accessible/usable.

suggestions from luiz:

we could alternatively set up a self-hosted plausible.io if we have issues using the caddy logs...

luizirber commented 8 months ago

goaccess access-branchwater.sourmash.bio.log -o report.html --log-format=caddy did the trick to generate an HTML report, following these instructions for static HTML reports.

The instructions for real-time are pretty interesting, might try to expose that in Caddy too