proxy.golang.org : github.com/bitnami-labs/promhttpmux : v0.1.0
Package promhttpmux offers an opinionated metric exporter for http mux/routers. The intended usage for this package is to just wrap your whole ServeMux with the promhttpmux.Interceptor and have it report a bunch of metrics partitioned by status code, http method and mux's pattern (aka route). E.g.: http_requests_total{code="200",method="GET",route="/api/v1/auth/status"} 123 Usage: - http_requests_total - http_request_duration_seconds - http_request_header_duration_seconds - http_request_size_bytes - http_response_size_bytes All durations are histograms because summaries are not aggregatable (see excellent explaination why in http://latencytipoftheday.blogspot.it/2014/06/latencytipoftheday-you-cant-average.html) Aggregation are important when you have replicas of your service. Request and response sizes are summaries because we have no idea about reasonable bucket sizes for them.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/bitnami-labs/[email protected]
Published:
Indexed:
- github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
- github.com/felixge/httpsnoop v1.0.1
- github.com/gogo/protobuf v1.2.0
- github.com/golang/protobuf v1.2.0
- github.com/matttproud/golang_protobuf_extensions v1.0.1
- github.com/prometheus/client_golang v0.9.1
- github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
- github.com/prometheus/common v0.0.0-20181120120127-aeab699e26f4
- github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
- golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4