Closed davenquinn closed 1 month ago
This is a key part of ensuring that we have a good analytics setup in Macrostrat v2, UW-Macrostrat/macrostrat#67.
Some information on Varnish logging: https://varnish-cache.org/tips/varnishlog/index.html
Per @CannonLock it sounds like we will be handling tileserver logs at the cluster level via Traefik, and parsing inserting into our tileserver logs database.
One of the oldest issues in this repository pertains to the need to show metrics about tile usage #4 . We've actually been capturing statistics about tile usage since the inception of the tileserver v1. Basically,
tileserver_stats
database from within the tileserver code.It would be fairly straightforward to capture similar statistics from the v2 tileserver, with a few caveats:
Perhaps there's an easy way to adapt varnish logging into this system? Alternatively, we can consider whether to move back to Redis to allow more unified cache handling, at the cost of some additional application complexity.