examples/ directory

Directories

PathSynopsis
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.
Version
v1.22.0 (latest)
Published
Apr 8, 2025
Platform
linux/amd64
Last checked
1 minute ago

Tools for package owners.