mapmetrics

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MapSize = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name:        consts.MetricNamePrefix + "map_in_use_gauge",
		Help:        "The total number of in-use entries per map.",
		ConstLabels: nil,
	}, []string{"map", "total"})
)

Functions

func GetMapSize

func GetMapSize(mapName string, totalCapacity int) prometheus.Gauge

Get a new handle on a mapSize metric for a mapName and totalCapacity

func MapSizeInc

func MapSizeInc(mapName string, totalCapacity int)

Increment a mapSize metric for a mapName and totalCapacity

func MapSizeSet

func MapSizeSet(mapName string, totalCapacity int, size float64)

Set a mapSize metric to size for a mapName and totalCapacity

Types

This section is empty.

Jump to

Keyboard shortcuts

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