Class TopologyShardingStrategy

    • Constructor Detail

      • TopologyShardingStrategy

        public TopologyShardingStrategy()
        No args constructor for use in serialization
      • TopologyShardingStrategy

        public TopologyShardingStrategy​(String externalLabelName,
                                        List<String> values)
    • Method Detail

      • getExternalLabelName

        public String getExternalLabelName()
        externalLabelName defines the name of the Prometheus external label used to communicate the topology zone assigned to the Prometheus instance. If not defined, it defaults to "zone". If set to the empty string, no external label is added to the Prometheus configuration.
      • setExternalLabelName

        public void setExternalLabelName​(String externalLabelName)
        externalLabelName defines the name of the Prometheus external label used to communicate the topology zone assigned to the Prometheus instance. If not defined, it defaults to "zone". If set to the empty string, no external label is added to the Prometheus configuration.
      • getValues

        public List<String> getValues()
        values defines the list of topology values (e.g. zone names) to be used for sharding. The configured number of shards must be greater than or equal to the number of values.
      • setValues

        public void setValues​(List<String> values)
        values defines the list of topology values (e.g. zone names) to be used for sharding. The configured number of shards must be greater than or equal to the number of values.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)