prometheus operator v0.93.1

ServiceMonitor.spec.endpoints[].oauth2.tlsConfig.ca.configMap.spec.namespaceSelector

namespaceSelector defines in which namespace(s) Prometheus should discover the services. By default, the services are discovered in the same namespace as the `ServiceMonitor` object but it is possible to select pods across different/all namespaces.

2 fields
ServiceMonitor.spec.endpoints[].oauth2.tlsConfig.ca.configMap.spec.namespaceSelector fields and descriptions
Field / TypeDescription
any
boolean

any defines the boolean describing whether all namespaces are selected in contrast to a list restricting them.

string[]

matchNames defines the list of namespace names to select from.