-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add observability #54
Comments
Sniffing around this one. I've done prometheus from Go on another project so just learning a bit about how |
I imagine we'd make a simple middleware that calls much of the existing middleware that Prometheus gives us: https://github.com/prometheus/client_golang/blob/master/prometheus/promhttp/http.go We'd need to configure a gatherer that has the opts we want, specifically Prometheus labels that surface the HTTP Host, HTTP Method, HTTP Status and a normalised version of This way the resulting metrics can be analysed using other systems so that it's possible to plot reports where data is grouped by HTTP Status (and if it's slow we can see that it's for the POSTs rather than the PUTs), and additionally we would know which templated paths were slow, i.e. URL normalisation would simply be "find integers within the path part of the URL and replace them with |
Now I work at Grafana I want to change this ticket.
|
Add as an observer middleware and observe all HTTP attributes, this will later be hooked to https://www.outlyer.com/ in production instances, and dev instances could always spin up prometheus and grafana containers to view it.
The text was updated successfully, but these errors were encountered: