Documentation
¶
Index ¶
- func StartMonitoring(ctx context.Context, prometheusConfig *kaiprometheus.Prometheus, ...)
- type Prometheus
- func (p *Prometheus) DesiredState(ctx context.Context, runtimeClient client.Reader, kaiConfig *kaiv1.Config) ([]client.Object, error)
- func (p *Prometheus) HasMissingDependencies(ctx context.Context, runtimeReader client.Reader, kaiConfig *kaiv1.Config) (string, error)
- func (b *Prometheus) IsAvailable(ctx context.Context, readerClient client.Reader) (bool, error)
- func (b *Prometheus) IsDeployed(ctx context.Context, readerClient client.Reader) (bool, error)
- func (p *Prometheus) Monitor(ctx context.Context, runtimeReader client.Reader, kaiConfig *kaiv1.Config) error
- func (b *Prometheus) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartMonitoring ¶ added in v0.10.0
func StartMonitoring(ctx context.Context, prometheusConfig *kaiprometheus.Prometheus, statusUpdater func(ctx context.Context, condition metav1.Condition) error)
StartMonitoring starts a background goroutine to monitor external Prometheus connectivity and update the status periodically. The goroutine will stop when ctx is cancelled or when ExternalPrometheusUrl is set to nil or empty string.
Types ¶
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func (*Prometheus) DesiredState ¶
func (*Prometheus) HasMissingDependencies ¶ added in v0.10.0
func (*Prometheus) IsAvailable ¶
func (*Prometheus) IsDeployed ¶
func (*Prometheus) Name ¶
func (b *Prometheus) Name() string
Click to show internal directories.
Click to hide internal directories.