Prometheus.spec.volumes[].projected.sources[].downwardAPI.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.
| Field / Type | Description |
|---|---|
mode | 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.
|
topology defines the configuration for topology-aware sharding. This field is only valid when mode is set to 'Topology'. |