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
Click to show internal directories.
Click to hide internal directories.