metrics

package
v0.0.0-...-f574404 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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