metrics

package
v0.0.0-...-bebabf7 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalRequests = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "http_requests_total",
			Help: "number of get requests.",
		},
		[]string{"path"},
	)
)

Functions

func SetupHandler

func SetupHandler(handler http.Handler) http.Handler

SetupHandler enable CORS, handler metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

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