Documentation ¶
Index ¶
- type MemoryMetricsCollector
- func (dms *MemoryMetricsCollector) Add(name string, value float64, labels map[string]string, options ...Option)
- func (dms *MemoryMetricsCollector) CollectedMetrics() []operation.MetricOperation
- func (dms *MemoryMetricsCollector) Expire(group string)
- func (dms *MemoryMetricsCollector) Inc(name string, labels map[string]string, opts ...Option)
- func (dms *MemoryMetricsCollector) Set(name string, value float64, labels map[string]string, options ...Option)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryMetricsCollector ¶ added in v1.1.3
type MemoryMetricsCollector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector(defaultGroup string) *MemoryMetricsCollector
NewCollector creates new metrics collector
func (*MemoryMetricsCollector) Add ¶ added in v1.1.3
func (dms *MemoryMetricsCollector) Add(name string, value float64, labels map[string]string, options ...Option)
Add adds custom value for Counter metric
func (*MemoryMetricsCollector) CollectedMetrics ¶ added in v1.1.3
func (dms *MemoryMetricsCollector) CollectedMetrics() []operation.MetricOperation
CollectedMetrics returns all collected metrics
func (*MemoryMetricsCollector) Expire ¶ added in v1.1.3
func (dms *MemoryMetricsCollector) Expire(group string)
Expire marks metric's group as expired
Click to show internal directories.
Click to hide internal directories.