Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       Package api provides clients for the HTTP APIs. 
         | 
      Package api provides clients for the HTTP APIs. | 
| 
         
          
            prometheus/v1
            
            
          
           
      Package v1 provides bindings to the Prometheus HTTP API v1: http://prometheus.io/docs/querying/api/ 
         | 
      Package v1 provides bindings to the Prometheus HTTP API v1: http://prometheus.io/docs/querying/api/ | 
| 
       examples
        | 
      |
| 
         
          
            createdtimestamps
            
            command
          
          
         
       | 
      |
| 
         
          
            customlabels
            
            command
          
          
         
       | 
      |
| 
         
          
            exemplars
            
            command
          
          
         
       | 
      |
| 
         
          
            gocollector
            
            command
          
           
      A minimal example of how to include Prometheus instrumentation. 
         | 
      A minimal example of how to include Prometheus instrumentation. | 
| 
         
          
            middleware
            
            command
          
          
         
       | 
      |
| 
         
          
            middleware/httpmiddleware
            
            
          
           
      Package httpmiddleware is adapted from https://github.com/bwplotka/correlator/tree/main/examples/observability/ping/pkg/httpinstrumentation 
         | 
      Package httpmiddleware is adapted from https://github.com/bwplotka/correlator/tree/main/examples/observability/ping/pkg/httpinstrumentation | 
| 
         
          
            random
            
            command
          
           
      A simple example exposing fictional RPC latencies with different types of random distributions (uniform, normal, and exponential) as Prometheus metrics. 
         | 
      A simple example exposing fictional RPC latencies with different types of random distributions (uniform, normal, and exponential) as Prometheus metrics. | 
| 
         
          
            simple
            
            command
          
           
      A minimal example of how to include Prometheus instrumentation. 
         | 
      A minimal example of how to include Prometheus instrumentation. | 
| 
         
          
            versioncollector
            
            command
          
           
      A minimal example of how to include Prometheus instrumentation. 
         | 
      A minimal example of how to include Prometheus instrumentation. | 
| 
       exp
            module
           
          
         | 
      |
| 
       internal
        | 
      |
| 
         
          
            github.com/golang/gddo/httputil/header
            
            
          
           
      Package header provides functions for parsing HTTP headers. 
         | 
      Package header provides functions for parsing HTTP headers. | 
| 
       Package prometheus is the core instrumentation package. 
         | 
      Package prometheus is the core instrumentation package. | 
| 
         
          
            collectors
            
            
          
           
      Package collectors provides implementations of prometheus.Collector to conveniently collect process and Go-related metrics. 
         | 
      Package collectors provides implementations of prometheus.Collector to conveniently collect process and Go-related metrics. | 
| 
         
          
            graphite
            
            
          
           
      Package graphite provides a bridge to push Prometheus metrics to a Graphite server. 
         | 
      Package graphite provides a bridge to push Prometheus metrics to a Graphite server. | 
| 
         
          
            promauto
            
            
          
           
      Package promauto provides alternative constructors for the fundamental Prometheus metric types and their …Vec and …Func variants. 
         | 
      Package promauto provides alternative constructors for the fundamental Prometheus metric types and their …Vec and …Func variants. | 
| 
         
          
            promhttp
            
            
          
           
      Package promhttp provides tooling around HTTP servers and clients. 
         | 
      Package promhttp provides tooling around HTTP servers and clients. | 
| 
         
          
            promhttp/zstd
            
            
          
           
      Package zstd activates support for zstd compression. 
         | 
      Package zstd activates support for zstd compression. | 
| 
         
          
            push
            
            
          
           
      Package push provides functions to push metrics to a Pushgateway. 
         | 
      Package push provides functions to push metrics to a Pushgateway. | 
| 
         
          
            testutil
            
            
          
           
      Package testutil provides helpers to test code using the prometheus package of client_golang. 
         | 
      Package testutil provides helpers to test code using the prometheus package of client_golang. | 
| 
         
          
            testutil/promlint
            
            
          
           
      Package promlint provides a linter for Prometheus metrics. 
         | 
      Package promlint provides a linter for Prometheus metrics. | 
| 
       tutorials
        | 
      |
| 
         
          
            whatsup
            module
            
          
          
         
       | 
      
 Click to show internal directories. 
   Click to hide internal directories.