Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 9.2% on proxy.golang.org
Top 4.2% dependent packages on proxy.golang.org
Top 4.8% dependent repos on proxy.golang.org

proxy.golang.org : github.com/bitnami-labs/promhttpmux

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 - Source - Documentation - JSON
purl: pkg:golang/github.com/bitnami-labs/promhttpmux
Keywords: go, prometheus
License: Apache-2.0
Latest release: about 4 years ago
First release: about 4 years ago
Namespace: github.com/bitnami-labs
Dependent packages: 2
Dependent repositories: 1
Stars: 3 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 17 days ago

    Loading...
    Readme
    Loading...