monitoring

package
v0.0.0-...-37f2402 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ControllerName = "Monitoring"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	api.MissingFields
	PrometheusK8s struct {
		api.MissingFields
		Retention           string           `json:"retention,omitempty"`
		VolumeClaimTemplate *json.RawMessage `json:"volumeClaimTemplate,omitempty"`
	} `json:"prometheusK8s,omitempty"`
	AlertManagerMain struct {
		api.MissingFields
		VolumeClaimTemplate *json.RawMessage `json:"volumeClaimTemplate,omitempty"`
	} `json:"alertmanagerMain,omitempty"`
}

Config represents cluster monitoring stack configuration. Reconciler reconciles retention and storage settings, MissingFields are used to preserve settings configured by user.

type MonitoringReconciler

type MonitoringReconciler struct {
	base.AROController
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(log *logrus.Entry, client client.Client) *MonitoringReconciler

func (*MonitoringReconciler) Reconcile

func (r *MonitoringReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*MonitoringReconciler) SetupWithManager

func (r *MonitoringReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager setup the manager

Jump to

Keyboard shortcuts

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