prometheus operator v0.93.1

Prometheus.spec.shardingStrategy.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.

1 fields
Prometheus.spec.shardingStrategy.mode fields and descriptions
Field / TypeDescription
Prometheus.spec.shardingStrategy.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"]