prometheus

package
v0.12.9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 (p *Prometheus) DesiredState(
	ctx context.Context, runtimeClient client.Reader, kaiConfig *kaiv1.Config,
) ([]client.Object, error)

func (*Prometheus) HasMissingDependencies added in v0.10.0

func (p *Prometheus) HasMissingDependencies(ctx context.Context, runtimeReader client.Reader, kaiConfig *kaiv1.Config) (string, error)

func (*Prometheus) IsAvailable

func (b *Prometheus) IsAvailable(ctx context.Context, readerClient client.Reader) (bool, error)

func (*Prometheus) IsDeployed

func (b *Prometheus) IsDeployed(ctx context.Context, readerClient client.Reader) (bool, error)

func (*Prometheus) Monitor added in v0.10.0

func (p *Prometheus) Monitor(ctx context.Context, runtimeReader client.Reader, kaiConfig *kaiv1.Config) error

func (*Prometheus) Name

func (b *Prometheus) Name() string

Jump to

Keyboard shortcuts

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