vault

package
v1.4.15 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupedVault

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

func NewGroupedVault

func NewGroupedVault() *GroupedVault

func (*GroupedVault) CounterAdd

func (v *GroupedVault) CounterAdd(group string, name string, value float64, labels map[string]string)

func (*GroupedVault) ExpireGroupMetrics

func (v *GroupedVault) ExpireGroupMetrics(group string)

ClearAllMetrics takes each collector in collectors and clear all metrics by group.

func (*GroupedVault) GaugeSet

func (v *GroupedVault) GaugeSet(group string, name string, value float64, labels map[string]string)

func (*GroupedVault) GetOrCreateCounterCollector

func (v *GroupedVault) GetOrCreateCounterCollector(name string, labelNames []string) (*metric.ConstCounterCollector, error)

func (*GroupedVault) GetOrCreateGaugeCollector

func (v *GroupedVault) GetOrCreateGaugeCollector(name string, labelNames []string) (*metric.ConstGaugeCollector, error)

func (*GroupedVault) Registerer

func (v *GroupedVault) Registerer() prometheus.Registerer

func (*GroupedVault) SetRegisterer added in v1.4.13

func (v *GroupedVault) SetRegisterer(r prometheus.Registerer)

Jump to

Keyboard shortcuts

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