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