metrics

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 23

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, opts ...sdkpkg.MetricCollectorOption)

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 ...sdkpkg.MetricCollectorOption)

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, opts ...sdkpkg.MetricCollectorOption)

Set specifies custom value for Gauge metric

type Option

type Option func(o sdkpkg.MetricCollectorOptionApplier)

func WithGroup

func WithGroup(group string) Option

func (Option) Apply added in v1.7.7

Jump to

Keyboard shortcuts

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