vault

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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