cmetric

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Namespace string
	SubSystem string
	Context   *cmetrics.Context
	OnError   func(err error)
}

func (*Builder) NewCounter

func (b *Builder) NewCounter(name, desc string, labelValues ...string) metric.Counter

func (*Builder) NewGauge

func (b *Builder) NewGauge(name, desc string, labelValues ...string) metric.Gauge

type Counter

type Counter struct {
	Base    *cmetrics.Counter
	OnError func(err error)
}

func (*Counter) Add

func (c *Counter) Add(delta float64, labelValues ...string)

type Gauge

type Gauge struct {
	Base    *cmetrics.Gauge
	OnError func(err error)
}

func (*Gauge) Add

func (c *Gauge) Add(delta float64, labelValues ...string)

func (*Gauge) Set

func (c *Gauge) Set(value float64, labelValues ...string)

Jump to

Keyboard shortcuts

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