metrics

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusMetrics

type PrometheusMetrics struct {
	// contains filtered or unexported fields
}

func NewPrometheusMetrics

func NewPrometheusMetrics(prometheusMetricsOptions ...PrometheusMetricsOption) (*PrometheusMetrics, error)

func (*PrometheusMetrics) CollectMetrics

func (m *PrometheusMetrics) CollectMetrics() error

type PrometheusMetricsOption

type PrometheusMetricsOption func(*PrometheusMetrics)

func WithLogger

func WithLogger(logger *slog.Logger) PrometheusMetricsOption

func WithManager

func WithManager(mgr ctrl.Manager) PrometheusMetricsOption

func WithPrometheusRegistry

func WithPrometheusRegistry(registry *prometheus.Registry) PrometheusMetricsOption

Jump to

Keyboard shortcuts

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