Documentation ¶
Index ¶
- Variables
- type HubMetrics
- func (hm *HubMetrics) AddProxyTrafficCollector(client, verb, resource, subresource string, size int)
- func (hm *HubMetrics) DecClosableConns(server string)
- func (hm *HubMetrics) DecInFlightRequests(verb, resource, subresource, client string)
- func (hm *HubMetrics) IncClosableConns(server string)
- func (hm *HubMetrics) IncInFlightRequests(verb, resource, subresource, client string)
- func (hm *HubMetrics) IncRejectedRequestCounter()
- func (hm *HubMetrics) ObservePoolCoordinatorHealthyStatus(status int32)
- func (hm *HubMetrics) ObservePoolCoordinatorReadyStatus(status int32)
- func (hm *HubMetrics) ObservePoolCoordinatorYurthubRole(status int32)
- func (hm *HubMetrics) ObserveServerHealthy(server string, status int)
- func (hm *HubMetrics) Reset()
- func (hm *HubMetrics) SetClosableConns(server string, cnt int)
- func (hm *HubMetrics) SetProxyLatencyCollector(client, verb, resource, subresource string, latencyType LatencyType, ...)
- type LatencyType
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) DecInFlightRequests ¶
func (hm *HubMetrics) DecInFlightRequests(verb, resource, subresource, client string)
func (*HubMetrics) IncClosableConns ¶
func (hm *HubMetrics) IncClosableConns(server string)
func (*HubMetrics) IncInFlightRequests ¶
func (hm *HubMetrics) IncInFlightRequests(verb, resource, subresource, client string)
func (*HubMetrics) IncRejectedRequestCounter ¶
func (hm *HubMetrics) IncRejectedRequestCounter()
func (*HubMetrics) ObservePoolCoordinatorHealthyStatus ¶ added in v1.2.0
func (hm *HubMetrics) ObservePoolCoordinatorHealthyStatus(status int32)
func (*HubMetrics) ObservePoolCoordinatorReadyStatus ¶ added in v1.2.0
func (hm *HubMetrics) ObservePoolCoordinatorReadyStatus(status int32)
func (*HubMetrics) ObservePoolCoordinatorYurthubRole ¶ added in v1.2.0
func (hm *HubMetrics) ObservePoolCoordinatorYurthubRole(status int32)
func (*HubMetrics) ObserveServerHealthy ¶
func (hm *HubMetrics) ObserveServerHealthy(server string, status int)
func (*HubMetrics) Reset ¶
func (hm *HubMetrics) Reset()
func (*HubMetrics) SetClosableConns ¶
func (hm *HubMetrics) SetClosableConns(server string, cnt 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" )
Click to show internal directories.
Click to hide internal directories.