vault

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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(resolveMetricNameFunc func(name string) string) *GroupedVault

func (*GroupedVault) CounterAdd

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

func (*GroupedVault) ExpireGroupMetricByName added in v1.5.0

func (v *GroupedVault) ExpireGroupMetricByName(group, name string)

ExpireGroupMetricByName gets a collector by its name and clears all metrics inside the collector by the group.

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