Help us shape the future of Go! Take the 2026 Go Developer Survey

registry

package
v0.94.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainloopRegistryManager

type ChainloopRegistryManager struct {
	Registries map[string]*PrometheusRegistry
}

func NewChainloopRegistryManager

func NewChainloopRegistryManager() *ChainloopRegistryManager

func (*ChainloopRegistryManager) AddRegistry

func (rm *ChainloopRegistryManager) AddRegistry(reg *PrometheusRegistry)

AddRegistry adds a registry to the manager

func (*ChainloopRegistryManager) DeleteRegistryByName

func (rm *ChainloopRegistryManager) DeleteRegistryByName(name string)

DeleteRegistryByName deletes a registry by name

func (*ChainloopRegistryManager) GetRegistryByName

func (rm *ChainloopRegistryManager) GetRegistryByName(name string) *PrometheusRegistry

GetRegistryByName returns a registry by name

type PrometheusRegistry

type PrometheusRegistry struct {
	*prometheus.Registry
	Name string
	// contains filtered or unexported fields
}

PrometheusRegistry is a wrapper around a prometheus registry that also holds a list of ChainloopCollectors

func NewPrometheusRegistry

func NewPrometheusRegistry(name string, gatherer chainloopprometheus.ChainloopMetricsGatherer, logger log.Logger) *PrometheusRegistry

NewPrometheusRegistry creates a new Prometheus registry with a given ID and collector

Jump to

Keyboard shortcuts

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