Class ShardingStrategy
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.ShardingStrategy
-
- All Implemented Interfaces:
Editable<ShardingStrategyBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ShardingStrategy extends Object implements Editable<ShardingStrategyBuilder>, KubernetesResource
ShardingStrategy defines the sharding strategy for Prometheus.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShardingStrategy()No args constructor for use in serializationShardingStrategy(String mode, TopologyShardingStrategy topology)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardingStrategyBuilderedit()Map<String,Object>getAdditionalProperties()StringgetMode()mode defines the sharding mode.TopologyShardingStrategygetTopology()ShardingStrategy defines the sharding strategy for Prometheus.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMode(String mode)mode defines the sharding mode.voidsetTopology(TopologyShardingStrategy topology)ShardingStrategy defines the sharding strategy for Prometheus.ShardingStrategyBuildertoBuilder()
-
-
-
Constructor Detail
-
ShardingStrategy
public ShardingStrategy()
No args constructor for use in serialization
-
ShardingStrategy
public ShardingStrategy(String mode, TopologyShardingStrategy topology)
-
-
Method Detail
-
getMode
public String getMode()
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.
-
setMode
public void setMode(String 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.
-
getTopology
public TopologyShardingStrategy getTopology()
ShardingStrategy defines the sharding strategy for Prometheus.
-
setTopology
public void setTopology(TopologyShardingStrategy topology)
ShardingStrategy defines the sharding strategy for Prometheus.
-
edit
public ShardingStrategyBuilder edit()
- Specified by:
editin interfaceEditable<ShardingStrategyBuilder>
-
toBuilder
public ShardingStrategyBuilder toBuilder()
-
-