registry

package
v0.122.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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 PrometheusRegistry

type PrometheusRegistry struct {
	*prometheus.Registry
	Name string

	// metrics
	WorkflowRunDurationSeconds *prometheus.HistogramVec
	// 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 collector.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