metrics

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheHitCount = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "geoip_cache_hit_count_total",
			Help: "The total number of cache hits",
		},
		[]string{"bucket"},
	)

	CacheRequestCount = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "geoip_cache_request_count_total",
			Help: "The total number of cache requests (hits + misses)",
		},
		[]string{"bucket"},
	)

	LookupCount = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "geoip_lookup_total",
			Help: "The total number of lookups for a given lookup type",
		},
		[]string{"type"},
	)
)

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