Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PrometheusTemplate = lazy.New(func() *assets.ObjectTemplate[*monitoringv1.Prometheus] { return ParseObjectTemplateOrDie[*monitoringv1.Prometheus]("prometheus", prometheusTemplateString) }) PrometheusSATemplate = lazy.New(func() *assets.ObjectTemplate[*corev1.ServiceAccount] { return ParseObjectTemplateOrDie[*corev1.ServiceAccount]("prometheus-sa", prometheusSATemplateString) }) PrometheusRoleBindingTemplate = lazy.New(func() *assets.ObjectTemplate[*rbacv1.RoleBinding] { return ParseObjectTemplateOrDie[*rbacv1.RoleBinding]("prometheus-rolebinding", prometheusRoleBindingTemplateString) }) PrometheusServiceTemplate = lazy.New(func() *assets.ObjectTemplate[*corev1.Service] { return ParseObjectTemplateOrDie[*corev1.Service]("prometheus-service", prometheusServiceTemplateString) }) ScyllaDBServiceMonitorTemplate = lazy.New(func() *assets.ObjectTemplate[*monitoringv1.ServiceMonitor] { return ParseObjectTemplateOrDie[*monitoringv1.ServiceMonitor]("scylladb-servicemonitor", scyllaDBServiceMonitorTemplateString) }) PrometheusRules = lazy.New(func() PrometheusRulesMap { return helpers.Must(NewPrometheusRulesFromFS(prometheusRulesFS)) }) LatencyPrometheusRuleTemplate = lazy.New(func() *assets.ObjectTemplate[*monitoringv1.PrometheusRule] { return ParseObjectTemplateOrDie[*monitoringv1.PrometheusRule]("latency-prometheus-rule", latencyPrometheusRuleTemplateString) }) AlertsPrometheusRuleTemplate = lazy.New(func() *assets.ObjectTemplate[*monitoringv1.PrometheusRule] { return ParseObjectTemplateOrDie[*monitoringv1.PrometheusRule]("alerts-prometheus-rule", alertsPrometheusRuleTemplateString) }) TablePrometheusRuleTemplate = lazy.New(func() *assets.ObjectTemplate[*monitoringv1.PrometheusRule] { return ParseObjectTemplateOrDie[*monitoringv1.PrometheusRule]("table-prometheus-rule", tablePrometheusRuleTemplateString) }) PrometheusIngressTemplate = lazy.New(func() *assets.ObjectTemplate[*networkingv1.Ingress] { return ParseObjectTemplateOrDie[*networkingv1.Ingress]("prometheus-ingress", prometheusIngressTemplateString) }) )
Functions ¶
func ParseObjectTemplateOrDie ¶
func ParseObjectTemplateOrDie[T runtime.Object](name, tmplString string) *assets.ObjectTemplate[T]
Types ¶
type AccessChecker ¶ added in v1.15.0
func NewAccessChecker ¶ added in v1.15.0
func NewAccessChecker[T any](value T) AccessChecker[T]
type PrometheusRulesMap ¶ added in v1.15.0
type PrometheusRulesMap map[string]fileAccessChecker
func NewPrometheusRulesFromFS ¶ added in v1.15.0
func NewPrometheusRulesFromFS(filesystem embed.FS) (PrometheusRulesMap, error)
Click to show internal directories.
Click to hide internal directories.