Documentation
¶
Index ¶
- Constants
- func SetupAlertmanagerReconciler(mgr ctrl.Manager, cfg config.Config) error
- func SetupClusterMonitoringReconciler(mgr manager.Manager, cfg config.Config, logger logr.Logger) error
- func SetupDashboardReconciler(mgr manager.Manager, cfg config.Config, ...) error
- func SetupGrafanaOrganizationReconciler(mgr manager.Manager, cfg config.Config, ...) error
- type AlertmanagerReconciler
- type ClusterMonitoringReconciler
- type DashboardReconciler
- type FinalizerHelper
- type GrafanaOrganizationReconciler
Constants ¶
const DashboardFinalizer = "observability.giantswarm.io/grafanadashboard"
Variables ¶
This section is empty.
Functions ¶
func SetupAlertmanagerReconciler ¶ added in v0.10.2
SetupAlertmanagerReconciler adds a controller into mgr that reconciles the Alertmanager secret.
func SetupClusterMonitoringReconciler ¶ added in v0.10.0
func SetupDashboardReconciler ¶ added in v0.11.0
func SetupDashboardReconciler(mgr manager.Manager, cfg config.Config, grafanaClientGen grafanaclient.GrafanaClientGenerator) error
func SetupGrafanaOrganizationReconciler ¶ added in v0.10.0
func SetupGrafanaOrganizationReconciler(mgr manager.Manager, cfg config.Config, grafanaClientGen grafanaclient.GrafanaClientGenerator) error
Types ¶
type AlertmanagerReconciler ¶ added in v0.10.2
type AlertmanagerReconciler struct {
// contains filtered or unexported fields
}
AlertmanagerReconciler reconciles the Alertmanager secret created by the observability-operator Helm chart and configures the Alertmanager instance with the configuration stored in the secret. This controller do not make use of finalizers as the configuration is not removed from Alertmanager when the secret is deleted.
type ClusterMonitoringReconciler ¶
type ClusterMonitoringReconciler struct {
// Client is the controller client.
Client client.Client
Config config.Config
// AlloyMetricsService is the service which manages Alloy monitoring agent configuration.
AlloyMetricsService metrics.Service
// AlloyLogsService is the service which manages Alloy logs configuration.
AlloyLogsService logs.Service
// AlloyEventsService is the service which manages Alloy events configuration.
AlloyEventsService events.Service
// HeartbeatRepositories is the list of repositories for managing heartbeats.
HeartbeatRepositories []heartbeat.HeartbeatRepository
// BundleConfigurationService is the service for configuring the observability bundle.
BundleConfigurationService *bundle.BundleConfigurationService
// contains filtered or unexported fields
}
ClusterMonitoringReconciler reconciles a Cluster object
func (*ClusterMonitoringReconciler) Reconcile ¶
func (r *ClusterMonitoringReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (*ClusterMonitoringReconciler) SetupWithManager ¶
func (r *ClusterMonitoringReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DashboardReconciler ¶ added in v0.11.0
type DashboardReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
DashboardReconciler reconciles a Dashboard object
func (*DashboardReconciler) Reconcile ¶ added in v0.11.0
Reconcile is part of the main Kubernetes reconciliation loop which aims to move the current state of the Dashboard closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (*DashboardReconciler) SetupWithManager ¶ added in v0.11.0
func (r *DashboardReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type FinalizerHelper ¶ added in v0.31.0
type FinalizerHelper struct {
// contains filtered or unexported fields
}
func NewFinalizerHelper ¶ added in v0.31.0
func NewFinalizerHelper(runtimeClient client.Client, finalizer string) FinalizerHelper
func (FinalizerHelper) EnsureAdded ¶ added in v0.31.0
func (FinalizerHelper) EnsureRemoved ¶ added in v0.31.0
type GrafanaOrganizationReconciler ¶ added in v0.8.0
type GrafanaOrganizationReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
GrafanaOrganizationReconciler reconciles a GrafanaOrganization object
func (*GrafanaOrganizationReconciler) Reconcile ¶ added in v0.8.0
func (r *GrafanaOrganizationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main Kubernetes reconciliation loop which aims to move the current state of the GrafanaOrganization closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (*GrafanaOrganizationReconciler) SetupWithManager ¶ added in v0.8.0
func (r *GrafanaOrganizationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.