Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricsLabels = []string{
metricsMethodLabel,
metricsPathLabel,
metricsCodeLabel,
}
MetricsLabels - Array of labels added to metrics:
View Source
var MetricsNames = []string{
requestCount,
requestDuration,
}
MetricsNames - Array of Names of the metrics:
View Source
var PathVarSub = "-"
PathVarSub replaces path variables to a same character
Functions ¶
func MetricsMiddleware ¶
MetricsMiddleware creates a new handler that collects metrics for the requests processed by the given handler.
func NewHealthCheckServer ¶
func NewHealthCheckServer() *healthCheckServer
func ResetMetricCollectors ¶
func ResetMetricCollectors()
ResetMetricCollectors resets all prometheus collectors
Types ¶
type ControllersServer ¶
type ControllersServer struct { KindControllerManager *controllers.KindControllerManager DB db.SessionFactory }
func NewControllersServer ¶
func NewControllersServer() *ControllersServer
func (ControllersServer) Start ¶
func (s ControllersServer) Start()
Start is a blocking call that starts this controller server
Source Files ¶
Click to show internal directories.
Click to hide internal directories.