monitoring

package
v0.0.0-...-ddb491b Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 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 Registry

type Registry struct {
	// Inherited prometheus registry.
	*prometheus.Registry
	// contains filtered or unexported fields
}

Custom prometheus registry that adds functionality to the default registry.

func NewRegistry

func NewRegistry(config conf.MonitoringConfig) *Registry

Create a new registry with the given configuration. This registry will include the default go collector and process collector.

func (*Registry) Gather

func (r *Registry) Gather() ([]*dto.MetricFamily, error)

Custom gather method that adds custom labels to all metrics.

Jump to

Keyboard shortcuts

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