controller-runtime: sigs.k8s.io/controller-runtime/pkg/webhook/internal/metrics Index | Files

package metrics

import "sigs.k8s.io/controller-runtime/pkg/webhook/internal/metrics"

Index

Package Files

metrics.go

Variables

var (
    // TotalRequests is a prometheus metric which counts the total number of requests that
    // the webhook server has received.
    TotalRequests = prometheus.NewCounterVec(
        prometheus.CounterOpts{
            Name: "controller_runtime_webhook_requests_total",
            Help: "Total number of admission requests",
        },
        []string{"webhook", "succeeded"},
    )

    // RequestLatency is a prometheus metric which is a histogram of the latency
    // of processing admission requests.
    RequestLatency = prometheus.NewHistogramVec(
        prometheus.HistogramOpts{
            Name: "controller_runtime_webhook_latency_seconds",
            Help: "Histogram of the latency of processing admission requests",
        },
        []string{"webhook"},
    )
)

Package metrics imports 2 packages (graph) and is imported by 4 packages. Updated 2019-04-17. Refresh now. Tools for package owners.