client_golang – github.com/prometheus/client_golang Directories

client_golang/ directory

Directories

PathSynopsis
apiPackage api provides clients for the HTTP APIs.
api/prometheus
api/prometheus/v1Package v1 provides bindings to the Prometheus HTTP API v1: http://prometheus.io/docs/querying/api/
examples
examples/createdtimestamps
examples/customlabels
examples/exemplars
examples/gocollectorA minimal example of how to include Prometheus instrumentation.
examples/middleware
examples/middleware/httpmiddlewarePackage httpmiddleware is adapted from https://github.com/bwplotka/correlator/tree/main/examples/observability/ping/pkg/httpinstrumentation
examples/randomA simple example exposing fictional RPC latencies with different types of random distributions (uniform, normal, and exponential) as Prometheus metrics.
examples/simpleA minimal example of how to include Prometheus instrumentation.
examples/versioncollectorA minimal example of how to include Prometheus instrumentation.
internal
prometheusPackage prometheus is the core instrumentation package.
prometheus/collectorsPackage collectors provides implementations of prometheus.Collector to conveniently collect process and Go-related metrics.
prometheus/collectors/version
prometheus/graphitePackage graphite provides a bridge to push Prometheus metrics to a Graphite server.
prometheus/internal
prometheus/promautoPackage promauto provides alternative constructors for the fundamental Prometheus metric types and their …Vec and …Func variants.
prometheus/promhttpPackage promhttp provides tooling around HTTP servers and clients.
prometheus/promhttp/internal
prometheus/promhttp/zstdPackage zstd activates support for zstd compression.
prometheus/pushPackage push provides functions to push metrics to a Pushgateway.
prometheus/testutilPackage testutil provides helpers to test code using the prometheus package of client_golang.
prometheus/testutil/promlintPackage 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.