Description
The interceptor already has several debugging/observation endpoints that expose several pieces of useful information to be used primarily for debugging purposes. For example, you can fetch a point-in-time copy of the pending queue or the routing table, all via a simple REST API that you can curl
. These endpoints are accessible on an HTTP server that runs on a dedicated port, separate from the main interceptor (proxy) server. The target client for these endpoints is more than likely a human.
Since the interceptor is in the critical path of end-user HTTP requests, there are many more metrics that could be captured and most likely consumed by a machine.
Use-Case
I'd like to have the interceptor run an endpoint on which folks can fetch prometheus metrics that describe the current state of the system. For example, it could serve histograms for response codes, counters for total number of requests or timeouts, gauges for in-flight requests, and so forth.
Specification
- The interceptor is instrumented with prometheus-compatible metrics
- The interceptor runs a prometheus endpoint
- Documentation is added (probably to
development.md
or a new document) regarding these metrics
Resources for Developers
- Prometheus getting started guide for Go: https://prometheus.io/docs/guides/go-application/
- GitHub repo: https://github.com/prometheus/client_golang
- Relatively simple setup guide: https://gabrieltanner.org/blog/collecting-prometheus-metrics-in-golang
Metadata
Metadata
Assignees
Labels
Type
Projects
Status