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.
Click to show internal directories.
Click to hide internal directories.