metrics

package
v0.0.0-...-28e23e1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HandlerTimer = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Namespace: "go_pinger",
			Subsystem: "metrics",
			Name:      "request_latency_seconds",
			Help:      "Bucketed histogram of handler timings",

			Buckets: prometheus.ExponentialBuckets(.001, 2, 13),
		},
		[]string{"handler"},
	)

	RequestCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: "go_pinger",
			Subsystem: "metrics",
			Name:      "requests_total",
			Help:      "number of total requests to this server",
		},
		[]string{"handler"},
	)
)

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