prometheus

package
v0.0.0-...-fd19b33 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ComposeErrors = promauto.NewCounter(prometheus.CounterOpts{
		Name:      "compose_errors",
		Namespace: namespace,
		Subsystem: subsystem,
		Help:      "Number of internal server errors.",
	})
)

TODO deprecate

View Source
var (
	ReqCounter = promauto.NewCounterVec(prometheus.CounterOpts{
		Name:      "request_count",
		Namespace: namespace,
		Subsystem: subsystem,
		Help:      "total number of http requests",
	}, []string{"method", "path", "code"})
)

Functions

func PrometheusMW

func PrometheusMW(nextHandler echo.HandlerFunc) echo.HandlerFunc

func StatusMiddleware

func StatusMiddleware(next echo.HandlerFunc) echo.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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