Versions in this module Expand all Collapse all v0 v0.0.30 Jan 12, 2026 v0.0.29 Jun 9, 2025 Changes in this version + func AddToScheme(scheme *runtime.Scheme) error + func BuildPrometheusRule(name, namespace string, labels map[string]string) (*promv1.PrometheusRule, error) + func BuildRoleAndRoleBinding(namePrefix, namespace, promSAName, promSANamespace string, ...) (*rbacv1.Role, *rbacv1.RoleBinding) + func CleanRegistry() error + func ListAlerts() []promv1.Rule + func RegisterAlerts(alerts ...[]promv1.Rule) error + func RegisterRecordingRules(recordingRules ...[]RecordingRule) error + type RecordingRule struct + Expr intstr.IntOrString + MetricType operatormetrics.MetricType + MetricsOpts operatormetrics.MetricOpts + func ListRecordingRules() []RecordingRule + func (c RecordingRule) GetOpts() operatormetrics.MetricOpts + func (c RecordingRule) GetType() operatormetrics.MetricType + type Registry struct + func NewRegistry() *Registry + func (r *Registry) BuildPrometheusRule(name, namespace string, labels map[string]string) (*promv1.PrometheusRule, error) + func (r *Registry) ListAlerts() []promv1.Rule + func (r *Registry) ListRecordingRules() []RecordingRule + func (r *Registry) RegisterAlerts(alerts ...[]promv1.Rule) error + func (r *Registry) RegisterRecordingRules(recordingRules ...[]RecordingRule) error