metrics

package
v1.5.17 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricManager

type MetricManager struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

MetricManager allows a number of metric families to be registered

func New

func New(labels ...any) (*MetricManager, error)

func (*MetricManager) MarshalJSON

func (m *MetricManager) MarshalJSON() ([]byte, error)

func (*MetricManager) RegisterFamily

func (m *MetricManager) RegisterFamily(name string, opts ...schema.Opt) (*schema.Family, error)

func (*MetricManager) String

func (m *MetricManager) String() string

func (*MetricManager) Write

func (m *MetricManager) Write(w io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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