mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-21 03:38:43 +00:00
docs: Improve ServiceMonitor namespace relation documentation (#1468)
ServiceMonitors must be installed in the same namespace as the Prometheus, if ServiceMonitorNamespaceSelector is not specified.
This commit is contained in:
parent
4fac63a25b
commit
e261501a36
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ The Prometheus resource declaratively describes the desired state of a Prometheu
|
|||
|
||||

|
||||
|
||||
The Prometheus resource includes a field called `serviceMonitorSelector`, which defines a selection of ServiceMonitors to be used.
|
||||
The Prometheus resource includes a field called `serviceMonitorSelector`, which defines a selection of ServiceMonitors to be used. By default and before the version `v0.19.0`, ServiceMonitors must be installed in the same namespace as the Prometheus instance. With the Prometheus Operator `v0.19.0` and above, ServiceMonitors can be selected outside the Prometheus namespace via the `serviceMonitorNamespaceSelector` field of the Prometheus resource.
|
||||
|
||||
First, deploy three instances of a simple example application, which listens and exposes metrics on port `8080`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue