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 ¶
Increment a mapSize metric for a mapName and totalCapacity
func MapSizeSet ¶
Set a mapSize metric to size for a mapName and totalCapacity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.