You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/management/monitoring/setup.md
+29-4Lines changed: 29 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,12 +106,37 @@ You also need to ensure that your `Prometheus` instance is configured to discove
106
106
:end-before: "# [/selectors]"
107
107
:::
108
108
109
-
:::{note}
110
-
If you leave selectors empty, Prometheus will select all `ServiceMonitor` and `PrometheusRule` resources. It may be desirable in some cases.
111
-
Please refer to the [Prometheus Operator documentation](https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.PrometheusSpec)
112
-
for more details on how to configure `serviceMonitorSelector` and `ruleSelector`.
109
+
#### Monitoring multiple ScyllaClusters with a single Prometheus
110
+
111
+
If you have more than one `ScyllaCluster` in your Kubernetes cluster, and you want to monitor all of them using the same `Prometheus` instance,
112
+
you can customize the selectors to match `ServiceMonitors` and `PrometheusRules` created for multiple `ScyllaClusters`.
113
+
114
+
Assuming you're going to create two `ScyllaDBMonitoring` objects named `cluster-1-monitoring` and `cluster-2-monitoring`
115
+
for two different `ScyllaClusters` in two distinct namespaces, you can set the selectors like this so that the `Prometheus` instance
In this case, we're setting `serviceMonitorNamespaceSelector` and `ruleNamespaceSelector` to an empty selector, which means that `Prometheus`
126
+
will look for `ServiceMonitors` and `PrometheusRules` in all namespaces.
127
+
128
+
:::{warning}
129
+
If you want to monitor multiple `ScyllaClusters` using a single `Prometheus` instance, ensure all selected `ScyllaClusters`
130
+
have unique names across the entire Kubernetes cluster (not just within their namespaces).
131
+
Our monitoring setup cannot currently distinguish metrics collected from `ScyllaClusters` with colliding names, even if
132
+
they are in different namespaces.
113
133
:::
114
134
135
+
Please refer to the [Prometheus Operator documentation](https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.PrometheusSpec)
136
+
for more details on how to configure selectors in the `Prometheus` specification.
137
+
138
+
#### Deploy Prometheus
139
+
115
140
You can deploy a `Prometheus` instance by executing the following command:
0 commit comments