prometheus operator v0.93.1

ServiceMonitor.spec.serviceDiscoveryRole

serviceDiscoveryRole defines the service discovery role used to discover targets. If set, the value should be either "Endpoints" or "EndpointSlice". Otherwise it defaults to the value defined in the Prometheus/PrometheusAgent resource.

1 fields
ServiceMonitor.spec.serviceDiscoveryRole fields and descriptions
Field / TypeDescription
ServiceMonitor.spec.serviceDiscoveryRole
string

serviceDiscoveryRole defines the service discovery role used to discover targets. If set, the value should be either "Endpoints" or "EndpointSlice". Otherwise it defaults to the value defined in the Prometheus/PrometheusAgent resource.

  • enum: ["Endpoints","EndpointSlice"]