kubernetes: k8s.io/kubernetes/pkg/kubelet/server/metrics Index | Files

package metrics

import "k8s.io/kubernetes/pkg/kubelet/server/metrics"

Index

Package Files

metrics.go

Variables

var (
    // HTTPRequests tracks the number of the http requests received since the server started.
    HTTPRequests = prometheus.NewCounterVec(
        prometheus.CounterOpts{
            Subsystem: kubeletSubsystem,
            Name:      "http_requests_total",
            Help:      "Number of the http requests received since the server started",
        },

        []string{"method", "path", "server_type", "long_running"},
    )
    // HTTPRequestsDuration tracks the duration in seconds to serve http requests.
    HTTPRequestsDuration = prometheus.NewHistogramVec(
        prometheus.HistogramOpts{
            Subsystem: kubeletSubsystem,
            Name:      "http_requests_duration_seconds",
            Help:      "Duration in seconds to serve http requests",

            Buckets: prometheus.DefBuckets,
        },
        []string{"method", "path", "server_type", "long_running"},
    )
    // HTTPInflightRequests tracks the number of the inflight http requests.
    HTTPInflightRequests = prometheus.NewGaugeVec(
        prometheus.GaugeOpts{
            Subsystem: kubeletSubsystem,
            Name:      "http_inflight_requests",
            Help:      "Number of the inflight http requests",
        },
        []string{"method", "path", "server_type", "long_running"},
    )
)

func Register Uses

func Register()

Register all metrics.

func SinceInSeconds Uses

func SinceInSeconds(start time.Time) float64

SinceInSeconds gets the time since the specified start in seconds.

Package metrics imports 3 packages (graph) and is imported by 1 packages. Updated 2019-05-29. Refresh now. Tools for package owners.