client_golang/ directory
Directories ¶
Path | Synopsis |
---|---|
api | Package api provides clients for the HTTP APIs. |
api/prometheus | |
api/prometheus/v1 | Package v1 provides bindings to the Prometheus HTTP API v1: http://prometheus.io/docs/querying/api/ |
examples | |
examples/createdtimestamps | |
examples/customlabels | |
examples/exemplars | |
examples/gocollector | A minimal example of how to include Prometheus instrumentation. |
examples/middleware | |
examples/middleware/httpmiddleware | Package httpmiddleware is adapted from https://github.com/bwplotka/correlator/tree/main/examples/observability/ping/pkg/httpinstrumentation |
examples/random | A simple example exposing fictional RPC latencies with different types of random distributions (uniform, normal, and exponential) as Prometheus metrics. |
examples/simple | A minimal example of how to include Prometheus instrumentation. |
examples/versioncollector | A minimal example of how to include Prometheus instrumentation. |
internal | |
prometheus | Package prometheus is the core instrumentation package. |
prometheus/collectors | Package collectors provides implementations of prometheus.Collector to conveniently collect process and Go-related metrics. |
prometheus/collectors/version | |
prometheus/graphite | Package graphite provides a bridge to push Prometheus metrics to a Graphite server. |
prometheus/internal | |
prometheus/promauto | Package promauto provides alternative constructors for the fundamental Prometheus metric types and their …Vec and …Func variants. |
prometheus/promhttp | Package promhttp provides tooling around HTTP servers and clients. |
prometheus/promhttp/internal | |
prometheus/promhttp/zstd | Package zstd activates support for zstd compression. |
prometheus/push | Package push provides functions to push metrics to a Pushgateway. |
prometheus/testutil | Package testutil provides helpers to test code using the prometheus package of client_golang. |
prometheus/testutil/promlint | Package promlint provides a linter for Prometheus metrics. |
prometheus/testutil/promlint/validations |
- Version
- v1.22.0 (latest)
- Published
- Apr 8, 2025
- Platform
- linux/amd64
- Last checked
- 17 hours ago –
Tools for package owners.