Documentation ¶
Index ¶
- type GroupedVault
- func (v *GroupedVault) CounterAdd(group string, name string, value float64, labels map[string]string)
- func (v *GroupedVault) ExpireGroupMetricByName(group, name 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(resolveMetricNameFunc func(name string) string) *GroupedVault
func (*GroupedVault) CounterAdd ¶
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) 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.