Documentation
¶
Index ¶
Constants ¶
View Source
const DummyServiceMonitorSafer = dummyServiceMonitorSafer(0)
DummyServiceMonitorSafer is a ServiceMonitorSafer that doesn't do anything.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceMonitorSafer ¶
type ServiceMonitorSafer interface {
EnsureSafety(ctx context.Context, sm *monitoringv1.ServiceMonitor) error
}
ServiceMonitorSafer will ensure the service monitor has safe settings, and mutate them instead.
func NewServiceMonitorSafer ¶
func NewServiceMonitorSafer(minScrapeInterval time.Duration) ServiceMonitorSafer
NewServiceMonitorSafer returns a new ServiceMonitorSafer that will mutate the received service monitor in case it don0't have safe settings. Current checks: - Minimum scrape interval.
Click to show internal directories.
Click to hide internal directories.