Documentation ¶
Index ¶
- func InstrumentRouteFunc(verb, resource, subresource string, routeFunc restful.RouteFunction) restful.RouteFunction
- func Monitor(verb, resource, subresource, client, contentType string, httpCode int, ...)
- func MonitorRequest(request *http.Request, verb, resource, subresource, contentType string, ...)
- func Register()
- func Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentRouteFunc ¶
func InstrumentRouteFunc(verb, resource, subresource string, routeFunc restful.RouteFunction) restful.RouteFunction
InstrumentRouteFunc works like Prometheus' InstrumentHandlerFunc but wraps the go-restful RouteFunction instead of a HandlerFunc
func Monitor ¶
func Monitor(verb, resource, subresource, client, contentType string, httpCode int, reqStart time.Time)
Monitor records a request to the apiserver endpoints that follow the Kubernetes API conventions. verb must be uppercase to be backwards compatible with existing monitoring tooling.
func MonitorRequest ¶ added in v1.8.0
func MonitorRequest(request *http.Request, verb, resource, subresource, contentType string, httpCode int, reqStart time.Time)
MonitorRequest handles standard transformations for client and the reported verb and then invokes Monitor to record a request. verb must be uppercase to be backwards compatible with existing monitoring tooling.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.