package metrics
import "k8s.io/kubernetes/pkg/client/metrics"
Package metrics provides utilities for registering client metrics to Prometheus.
Index ¶
Variables ¶
var ( // RequestLatency is a Prometheus Summary metric type partitioned by // "verb" and "url" labels. It is used for the rest client latency metrics. RequestLatency = prometheus.NewSummaryVec( prometheus.SummaryOpts{ Subsystem: restClientSubsystem, Name: "request_latency_microseconds", Help: "Request latency in microseconds. Broken down by verb and URL", MaxAge: time.Hour, }, []string{"verb", "url"}, ) )
Functions ¶
func Register ¶
func Register()
Register registers all metrics to Prometheus with respect to the RequestLatency.
func SinceInMicroseconds ¶
Calculates the time since the specified start in microseconds.
Source Files ¶
metrics.go
- Version
- v1.1.9-beta.0
- Published
- Feb 23, 2016
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 minutes ago –
Tools for package owners.