metrics

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Metrics provides access to all hub agent metrics.
	Metrics = newHubMetrics()
)

Functions

This section is empty.

Types

type HubMetrics

type HubMetrics struct {
	// contains filtered or unexported fields
}

func (*HubMetrics) AddProxyTrafficCollector added in v0.4.1

func (hm *HubMetrics) AddProxyTrafficCollector(client, verb, resource, subresource string, size int)

func (*HubMetrics) DecClosableConns

func (hm *HubMetrics) DecClosableConns(server string)

func (*HubMetrics) DecErrorKeysCount added in v1.5.0

func (hm *HubMetrics) DecErrorKeysCount()

func (*HubMetrics) DecInFlightRequests

func (hm *HubMetrics) DecInFlightRequests(verb, resource, subresource, client string)

func (*HubMetrics) IncClosableConns

func (hm *HubMetrics) IncClosableConns(server string)

func (*HubMetrics) IncErrorKeysCount added in v1.5.0

func (hm *HubMetrics) IncErrorKeysCount()

func (*HubMetrics) IncInFlightRequests

func (hm *HubMetrics) IncInFlightRequests(verb, resource, subresource, client string)

func (*HubMetrics) IncRejectedRequestCounter

func (hm *HubMetrics) IncRejectedRequestCounter()

func (*HubMetrics) ObserveServerHealthy

func (hm *HubMetrics) ObserveServerHealthy(server string, status int)

func (*HubMetrics) ObserveYurtCoordinatorHealthyStatus added in v1.4.0

func (hm *HubMetrics) ObserveYurtCoordinatorHealthyStatus(status int32)

func (*HubMetrics) ObserveYurtCoordinatorReadyStatus added in v1.4.0

func (hm *HubMetrics) ObserveYurtCoordinatorReadyStatus(status int32)

func (*HubMetrics) ObserveYurtCoordinatorYurthubRole added in v1.4.0

func (hm *HubMetrics) ObserveYurtCoordinatorYurthubRole(status int32)

func (*HubMetrics) Reset

func (hm *HubMetrics) Reset()

func (*HubMetrics) SetClosableConns

func (hm *HubMetrics) SetClosableConns(server string, cnt int)

func (*HubMetrics) SetErrorKeysPersistencyStatus added in v1.5.0

func (hm *HubMetrics) SetErrorKeysPersistencyStatus(status int)

func (*HubMetrics) SetProxyLatencyCollector added in v1.0.0

func (hm *HubMetrics) SetProxyLatencyCollector(client, verb, resource, subresource string, latencyType LatencyType, duration int64)

type LatencyType added in v1.0.0

type LatencyType string
const (
	// duration: yurthub -> apiserver
	Apiserver_latency LatencyType = "apiserver_latency"
	// duration: coming to yurthub -> yurthub to apiserver -> leaving yurthub
	Full_lantency LatencyType = "full_latency"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL