prometheus operator v0.93.1
PodMonitor.spec.podMetricsEndpoints.relabelings.sourceLabels.spec.namespaceSelector
namespaceSelector defines in which namespace(s) Prometheus should discover the pods. By default, the pods are discovered in the same namespace as the `PodMonitor` object but it is possible to select pods across different/all namespaces.
| Field / Type | Description |
|---|---|
any | any defines the boolean describing whether all namespaces are selected in contrast to a list restricting them. |
matchNames defines the list of namespace names to select from. |