promutil

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package promutil provides Prometheus utilities. This was copied from Obol's Charon repo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResetGaugeVec

type ResetGaugeVec struct {
	// contains filtered or unexported fields
}

ResetGaugeVec is a GaugeVec that can be reset which deletes all previously set labels. This is useful to clear out labels that are no longer present.

func NewResetGaugeVec

func NewResetGaugeVec(opts prometheus.GaugeOpts, labelNames []string) *ResetGaugeVec

NewResetGaugeVec creates a new ResetGaugeVec.

func (*ResetGaugeVec) Reset

func (g *ResetGaugeVec) Reset(lvs ...string)

Reset deletes all previously set labels that match all the given label values. An empty slice will delete all previously set labels.

func (*ResetGaugeVec) WithLabelValues

func (g *ResetGaugeVec) WithLabelValues(lvs ...string) prometheus.Gauge

Jump to

Keyboard shortcuts

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