prometheus operator v0.71.2

ScrapeConfig.spec.kubernetesSDConfigs[].namespaces

Optional namespace discovery. If omitted, Prometheus discovers targets across all namespaces.

2 fields
ScrapeConfig.spec.kubernetesSDConfigs[].namespaces fields and descriptions
Field / TypeDescription
string[]

List of namespaces where to watch for resources. If empty and `ownNamespace` isn't true, Prometheus watches for resources in all namespaces.

ownNamespace
boolean

Includes the namespace in which the Prometheus pod exists to the list of watched namesapces.