metrics

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 22

Documentation

Index

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

func (*MemoryMetricsCollector) Inc added in v1.1.3

func (dms *MemoryMetricsCollector) Inc(name string, labels map[string]string, opts ...Option)

Inc increments specified Counter metric

func (*MemoryMetricsCollector) Set added in v1.1.3

func (dms *MemoryMetricsCollector) Set(name string, value float64, labels map[string]string, options ...Option)

Set specifies custom value for Gauge metric

type Option

type Option func(options *metricsOptions)

Option set options for metrics collector

func WithGroup

func WithGroup(group string) Option

WithGroup pass group for metric

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL