Documentation ¶
Index ¶
- type GroupedVault
- func (v *GroupedVault) CounterAdd(group string, name string, value float64, labels map[string]string)
- func (v *GroupedVault) ExpireGroupMetrics(group string)
- func (v *GroupedVault) GaugeSet(group string, name string, value float64, labels map[string]string)
- func (v *GroupedVault) GetOrCreateCounterCollector(name string, labelNames []string) (*metric.ConstCounterCollector, error)
- func (v *GroupedVault) GetOrCreateGaugeCollector(name string, labelNames []string) (*metric.ConstGaugeCollector, error)
- func (v *GroupedVault) Registerer() prometheus.Registerer
- func (v *GroupedVault) SetRegisterer(r prometheus.Registerer)
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 (*GroupedVault) ExpireGroupMetrics ¶
func (v *GroupedVault) ExpireGroupMetrics(group string)
ClearAllMetrics takes each collector in collectors and clear all metrics by group.
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)
Click to show internal directories.
Click to hide internal directories.