Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestClientSubsystem = "rest_client" LatencyKey = "request_latency_seconds" ResultKey = "requests_total" )
Metrics subsystem and all of the keys used by the rest client.
Variables ¶
View Source
var ( // To prevent cardinality explosion, only the verb is added as a label to latency metrics RequestLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Subsystem: RestClientSubsystem, Name: LatencyKey, Help: "Request latency in seconds. Broken down by verb.", Buckets: prometheus.ExponentialBuckets(0.001, 2, 10), }, []string{"verb"}) )
Functions ¶
This section is empty.
Types ¶
type LatencyAdapter ¶
type LatencyAdapter struct {
// contains filtered or unexported fields
}
LatencyAdapter implements LatencyMetric.
type RegistererGatherer ¶
type RegistererGatherer interface { prometheus.Registerer prometheus.Gatherer }
RegistererGatherer combines both parts of the API of a Prometheus registry, both the Registerer and the Gatherer interfaces.
var Registry RegistererGatherer = prometheus.NewRegistry()
Registry is a prometheus registry for storing metrics.
Click to show internal directories.
Click to hide internal directories.