prometheus

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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