package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev
# Functions
AddDispatch increments the # of dispatched requests for flow control.
AddEpochAdvance notes an advance of the progress meter baseline for a given priority level.
AddReject increments the # of rejected requests for flow control.
AddRequestConcurrencyInUse adds the given delta to the gauge of concurrency in use by the currently executing requests of the given flowSchema and priorityLevel.
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.
GatherAndCompare the given metrics with the given Prometheus syntax expected value.
NewSampleAndWaterMarkHistogramsGenerator makes a new one.
NewSampleAndWaterMarkHistogramsPairGenerator makes a new pair generator.
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.
Register all metrics.
Reset all 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.
UpdateSharedConcurrencyLimit updates the value for the concurrency limit in flow control.
# Variables
PriorityLevelConcurrencyObserverPairGenerator creates pairs that observe concurrency for priority levels.
PriorityLevelExecutionSeatsObserverGenerator creates observers of seats occupied throughout execution for priority levels.
ReadWriteConcurrencyObserverPairGenerator creates pairs that observe concurrency broken down by mutating vs readonly.
# Structs
RatioedChangeObserverPair is a corresponding pair of observers, one for the number of requests waiting in queue(s) and one for the number of requests being executed.
SampleAndWaterMarkObserverGenerator creates RatioedChangeObservers that populate histograms of samples and low- and high-water-marks.
SampleAndWaterMarkPairGenerator makes pairs of RatioedChangeObservers that track samples and watermarks.
# Interfaces
ChangeObserver extends Observer with the ability to take an observation that is relative to the previous observation.
Observer is something that can be given numeric observations.
RatioedChangeObserver tracks ratios.
RatioedChangeObserverGenerator creates related observers that are differentiated by a series of label values.
RatioedChangeObserverPairGenerator generates pairs.
# Type aliases
Registerables is a slice of Registerable.