Documentation ¶
Overview ¶
Package promutil contains utilities for collecting Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentRoundTripper ¶
func InstrumentRoundTripper(name string, rt http.RoundTripper) http.RoundTripper
InstrumentRoundTripper returns an http.RoundTripper that collects Prometheus metrics; delegating to the underlying RoundTripper to actually make requests.
Types ¶
type Adder ¶
type Adder interface {
Add(float64) // Implemented by prometheus.Counter.
}
Adder is something that can be added to.
type CountingReader ¶
CountingReader exports a count of bytes read from an underlying io.Reader.
Click to show internal directories.
Click to hide internal directories.