metrics

package
v0.0.0-...-417dc14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalHandlerExecution = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: "norman_generic_controller",
			Name:      "total_handler_execution",
			Help:      "Total count of hanlder executions",
		},
		[]string{"name", "handlerName"},
	)

	TotalHandlerFailure = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: "norman_generic_controller",
			Name:      "total_handler_failure",
			Help:      "Total count of handler failures",
		},
		[]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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL