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.21.1
Published
Mar 4, 2025
Platform
darwin/amd64
Last checked
3 weeks ago

Tools for package owners.