metric

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CountersByEndpoint = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "counter_request_by_microservicio",
			Help: "Register all call to the endpoints",
		},
		[]string{
			"proxyPath",
			"endpointPath",
			"ipAddr",
			"method",
		},
	)

	TotalRequests = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "http_requests_total",
			Help: "Number of get requests.",
		},
		[]string{"path", "service"},
	)
)

Functions

func ExposeMetricServer

func ExposeMetricServer(configPort int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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