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
Click to show internal directories.
Click to hide internal directories.