apiserverk8s.io/apiserver/pkg/util/proxy/metrics Index | Files

package metrics

import "k8s.io/apiserver/pkg/util/proxy/metrics"

Index

Functions

func IncStreamTranslatorRequest

func IncStreamTranslatorRequest(ctx context.Context, status string)

IncStreamTranslatorRequest increments the # of requests handled by the StreamTranslatorProxy.

func IncStreamTunnelRequest

func IncStreamTunnelRequest(ctx context.Context, status string)

IncStreamTunnelRequest increments the # of requests handled by the StreamTunnelProxy.

func IncWebSocketStreamingRequest

func IncWebSocketStreamingRequest(ctx context.Context, subresource, proxyType string)

IncWebSocketStreamingRequest increments the count of WebSocket streaming requests routed by the API server with the given subresource (exec/attach/portforward) and proxy_type (proxied_to_kubelet or translated_at_apiserver).

func Register

func Register()

func ResetForTest

func ResetForTest()

Source Files

metrics.go

Version
v0.36.0 (latest)
Published
Apr 22, 2026
Platform
linux/amd64
Imports
4 packages
Last checked
4 days ago

Tools for package owners.