Documentation ¶
Index ¶
Constants ¶
View Source
const MetricsGenericControllerEnv = "NORMAN_GENERIC_CONTROLLER_METRICS"
Variables ¶
View Source
var ( TotalHandlerExecution = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "norman_generic_controller", Name: "total_handler_execution", Help: "Total Count of executing handler", }, []string{"name", "handlerName"}, ) TotalHandlerFailure = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "norman_generic_controller", Name: "total_handler_failure", Help: "Total Count of handler failure", }, []string{"name", "handlerName", "key"}, ) )
Functions ¶
func IncTotalHandlerExecution ¶
func IncTotalHandlerExecution(controllerName, handlerName string)
func IncTotalHandlerFailure ¶
func IncTotalHandlerFailure(controllerName, handlerName, key string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.