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

registry

package
v1.108.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 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