kubernetes: github.com/erimatnor/kubernetes/pkg/client/metrics Index | Files

package metrics

import "github.com/erimatnor/kubernetes/pkg/client/metrics"

Index

Package Files

metrics.go

Variables

var (
    RequestLatency = prometheus.NewSummaryVec(
        prometheus.SummaryOpts{
            Subsystem: restClientSubsystem,
            Name:      "request_latency_microseconds",
            Help:      "Request latency in microseconds. Broken down by verb and URL",
        },
        []string{"verb", "url"},
    )
)

func Register Uses

func Register()

Register all metrics.

func SinceInMicroseconds Uses

func SinceInMicroseconds(start time.Time) float64

Gets the time since the specified start in microseconds.

Package metrics imports 3 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.