@@ -67,20 +67,11 @@ type MonitoringStack struct {
67
67
// +kubebuilder:default=true
68
68
AlertingEnabled bool `json:"alertingEnabled"`
69
69
70
- // DashboardsEnabled allows to enable or disable dashboards and related artifacts
71
- // +kubebuilder:validation:Optional
72
- // +kubebuilder:default=false
73
- DashboardsEnabled bool `json:"dashboardsEnabled"`
74
-
75
70
// ScrapeInterval sets the interval between scrapes
76
71
// +kubebuilder:validation:Optional
77
72
// +kubebuilder:default="30s"
78
73
ScrapeInterval string `json:"scrapeInterval"`
79
74
80
- // DataplaneNetwork defines the network that will be used to scrape dataplane node_exporter endpoints
81
- // +kubebuilder:default=ctlplane
82
- DataplaneNetwork infranetworkv1.NetNameStr `json:"dataplaneNetwork"`
83
-
84
75
// Storage allows to define options for how to store metrics
85
76
// +kubebuilder:validation:Optional
86
77
// +kubebuilder:default={strategy: persistent, retention: "24h", persistent: {pvcStorageRequest: "20G"}}
@@ -89,6 +80,15 @@ type MonitoringStack struct {
89
80
90
81
// MetricStorageSpec defines the desired state of MetricStorage
91
82
type MetricStorageSpec struct {
83
+ // DashboardsEnabled allows to enable or disable dashboards and related artifacts
84
+ // +kubebuilder:validation:Optional
85
+ // +kubebuilder:default=false
86
+ DashboardsEnabled bool `json:"dashboardsEnabled"`
87
+
88
+ // DataplaneNetwork defines the network that will be used to scrape dataplane node_exporter endpoints
89
+ // +kubebuilder:default=ctlplane
90
+ DataplaneNetwork infranetworkv1.NetNameStr `json:"dataplaneNetwork"`
91
+
92
92
// MonitoringStack allows to define a metric storage with
93
93
// options supported by Red Hat
94
94
// +kubebuilder:validation:Optional
0 commit comments