package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/apiserver.git
Documentation: pkg.go.dev
# Functions
AddDispatch increments the # of dispatched requests for flow control.
AddDispatchWithNoAccommodation keeps track of number of times dispatch attempt results in a non accommodation due to lack of available seats.
AddEpochAdvance notes an advance of the progress meter baseline for a given priority level.
AddReject increments the # of rejected requests for flow control.
AddRequestsExecuting adds the given delta to the gauge of executing requests of the given flowSchema and priorityLevel.
AddRequestsInQueues adds the given delta to the gauge of the # of requests in the queues of the specified flowSchema and priorityLevel.
AddSeatConcurrencyInUse adds the given delta to the gauge of seats in use by the currently executing requests of the given flowSchema and priorityLevel.
AddSeatsInQueues adds the given delta to the gauge of the # of seats in the queues of the specified flowSchema and priorityLevel.
GatherAndCompare the given metrics with the given Prometheus syntax expected value.
NewTestableTimingHistogram adds injection of the clock.
NewTestableTimingHistogramVec adds injection of the clock.
NewTimingHistogram returns an object which is TimingHistogram-like.
NewTimingHistogramVec constructs a new vector.
NewUnionGauge constructs a Gauge that delegates to all of the given Gauges.
No description provided by the author
ObserveExecutionDuration observes the execution duration for flow control.
ObserveQueueLength observes the queue length for flow control.
ObserveWaitingDuration observes the queue length for flow control.
ObserveWatchCount notes a sampling of a watch count.
ObserveWorkEstimatedSeats notes a sampling of estimated seats associated with a request.
RatioedGaugeVecPhasedElementPair extracts a pair of elements that differ in handling phase.
Register all metrics.
Reset all resettable metrics to zero.
SetCurrentR sets the current-R (virtualTime) gauge for the given priority level.
SetLatestS sets the latest-S (virtual time of dispatched request) gauge for the given priority level.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
GetExecutingMutatingConcurrency returns the gauge of number of executing mutating requests / limit on those.
GetExecutingReadonlyConcurrency returns the gauge of number of executing readonly requests / limit on those.
GetWaitingMutatingConcurrency returns the gauge of number of mutating requests waiting / limit on those.
GetWaitingReadonlyConcurrency returns the gauge of number of readonly requests waiting / limit on those.
PriorityLevelConcurrencyGaugeVec creates gauges of concurrency broken down by phase, priority level.
PriorityLevelExecutionSeatsGaugeVec creates observers of seats occupied throughout execution for priority levels.
# Structs
RatioedGaugePair is a corresponding pair of gauges, one for the number of requests waiting in queue(s) and one for the number of requests being executed.
TimingRatioHistogram is essentially a gauge for a ratio where the client independently controls the numerator and denominator.
TimingRatioHistogramOpts is the constructor parameters of a TimingRatioHistogram.
TimingRatioHistogramVec is a collection of TimingRatioHistograms that differ only in label values.
# Interfaces
Gauge is the methods of a gauge that are used by instrumented code.
RatioedGauge tracks ratios.
RatioedGaugeVec creates related observers that are differentiated by a series of label values.
# Type aliases
Registerables is a slice of Registerable.