metrics

package
v0.0.0-...-a39ac13 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpRequestsTotal = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "http_requests_total",
		},
		[]string{"pattern", "method", "status"},
	)

	HttpRequestsCurrent = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "http_requests_inflight_current",
		},
		[]string{},
	)

	HttpRequestsInflightMax = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "http_requests_inflight_max",
		},
		[]string{},
	)

	HttpRequestsDurationHistorgram = promauto.NewHistogramVec(
		prometheus.HistogramOpts{
			Name: "http_request_duration_seconds_historgram",
			Buckets: []float64{
				0.1,
				0.2,
				0.25,
				0.5,
				1,
			},
		},
		[]string{"pattern", "method"},
	)

	HttpRequestsDurationSummary = promauto.NewSummaryVec(
		prometheus.SummaryOpts{
			Name: "http_request_duration_seconds_summary",
			Objectives: map[float64]float64{
				0.99: 0.001,
				0.95: 0.01,
				0.5:  0.05,
			},
		},
		[]string{"pattern", "method"},
	)
)
View Source
var QrMe = promauto.NewCounter(prometheus.CounterOpts{
	Name: "qr_generations_total",
	Help: "The total number of processed qr generation events",
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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