prometheus operator v0.93.1

Prometheus.spec.containers[].securityContext.capabilities.add.spec.shardingStrategy

shardingStrategy defines the sharding strategy for distributing scraped targets across Prometheus shards. When not defined, the operator defaults to the 'Address' mode which distributes targets based on a hash of the target address.

2 fields
Prometheus.spec.containers[].securityContext.capabilities.add.spec.shardingStrategy fields and descriptions
Field / TypeDescription
mode
string

mode defines the sharding mode. Can be 'Address' or 'Topology'. 'Address' is the default mode and distributes targets across shards based on a hash of the target address. 'Topology' enables zone-aware sharding where each shard is assigned to a specific topology zone and only scrapes targets in that zone. (Alpha) Using the 'Topology' mode requires the `PrometheusTopologySharding` feature gate to be enabled.

  • enum: ["Address","Topology"]
object

topology defines the configuration for topology-aware sharding. This field is only valid when mode is set to 'Topology'.