UW-Macrostrat / tileserver

Tile server for Macrostrat geologic maps
MIT License
8 stars 3 forks source link

Request logging #36

Closed davenquinn closed 1 month ago

davenquinn commented 3 months ago

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,

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.

davenquinn commented 3 months ago

This is a key part of ensuring that we have a good analytics setup in Macrostrat v2, UW-Macrostrat/macrostrat#67.

davenquinn commented 3 months ago

Some information on Varnish logging: https://varnish-cache.org/tips/varnishlog/index.html

davenquinn commented 1 month ago

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.