Add response time metrics (keep track when the page timeouts) #45
Labels
A-metrics
stats, metrics, dashboards
A-tracing
OpenTelemetry tracing (spans, timing, observability)
T-Enhancement
New feature or request
Add metric when the page times out. Record the Matrix API that is still running and the duration.
Things to record in each event:
/join
,/messages
)We can also send a success metric and response time to compare against how many requests we're failing to serve vs total traffic.
Dev notes
We probably just need to add something like
prom-client
, expose a Prometheus/metrics
scrape endpoint that servesawait register.metrics()
, then add a scrape annotation to the K8s service (which is still being finalized)Adjacent: Here is an example middleware from the Gitter webapp that logs and metrics when a request is pending for more than 60 seconds, https://gitlab.com/gitterHQ/webapp/-/blob/676fadc3693260c8c51f448a0ca4c3e180d1b4a2/server/web/middlewares/pending-request.js#L50-84
The text was updated successfully, but these errors were encountered: