promutil

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 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

View Source
var (
	EVMStakingQueueDepth = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "evmstaking_queue_depth",
	})
)

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