package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev
# Functions
CanonicalVerb distinguishes LISTs from GETs (and HEADs).
CleanScope returns the scope of the request.
CleanVerb returns a normalized verb, so that it is easy to tell WATCH from LIST and APPLY from PATCH.
InstrumentHandlerFunc works like Prometheus' InstrumentHandlerFunc but adds some Kubernetes endpoint specific information.
InstrumentRouteFunc works like Prometheus' InstrumentHandlerFunc but wraps the go-restful RouteFunction instead of a HandlerFunc plus some Kubernetes endpoint specific information.
MonitorRequest handles standard transformations for client and the reported verb and then invokes Monitor to record a request.
No description provided by the author
RecordLongRunning tracks the execution of a long running request against the API server.
RecordRequestAbort records that the request was aborted possibly due to a timeout.
No description provided by the author
RecordRequestTermination records that the request was terminated early as part of a resource preservation or apiserver self-defense mechanism (e.g.
Register all metrics.
Reset all metrics.
UpdateInflightRequestMetrics reports concurrency metrics classified by mutating vs Readonly.
# Constants
No description provided by the author
ExecutingPhase is the phase value for an executing request.
MutatingKind is a string identifying mutating request kind.
No description provided by the author
The executing request handler has returned an error to the post-timeout receiver after the request had been timed out by the apiserver.
The executing request handler has returned a result to the post-timeout receiver after the request had been timed out by the apiserver.
The executing request handler panicked after the request had been timed out by the apiserver.
The executing request handler has not panicked or returned any error/result to the post-timeout receiver yet after the request had been timed out by the apiserver.
The source that is recording the apiserver_request_post_timeout_total metric.
The source that is recording the apiserver_request_post_timeout_total metric.
ReadOnlyKind is a string identifying read only request kind.
WaitingPhase is the phase value for a request waiting in a queue.
# Variables
DroppedRequests is a number of requests dropped with 'Try again later' response".
RegisteredWatchers is a number of currently registered watchers splitted by resource.
TLSHandshakeErrors is a number of requests dropped with 'TLS handshake error from' error.
* By default, all the following metrics are defined as falling under
* ALPHA stability level https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/1209-metrics-stability/kubernetes-control-plane-metrics-stability.md#stability-classes)
*
* Promoting the stability level of the metric is a responsibility of the component owner, since it
* involves explicitly acknowledging support for the metric across multiple releases, in accordance with
* the metric stability policy.
* By default, all the following metrics are defined as falling under
* ALPHA stability level https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/1209-metrics-stability/kubernetes-control-plane-metrics-stability.md#stability-classes)
*
* Promoting the stability level of the metric is a responsibility of the component owner, since it
* involves explicitly acknowledging support for the metric across multiple releases, in accordance with
* the metric stability policy.
# Structs
ResponseWriterDelegator interface wraps http.ResponseWriter to additionally record content-length, status-code, etc.