Module org.elasticsearch.server
Class WriteLoadMetrics
java.lang.Object
org.elasticsearch.cluster.routing.allocation.WriteLoadMetrics
Publishes metrics about write loads: the distribution of shard write loads per node, and the
average write load (utilisation × thread-pool size) for each node's WRITE thread pool.
Shard write-load data comes from ClusterInfo.getShardWriteLoads(); node write-load data
comes from ClusterInfo.getNodeUsageStatsForThreadPools(). Both are made available via the
ClusterInfoService listener on the master node.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWriteLoadMetrics(MeterRegistry meterRegistry, ClusterService clusterService) WriteLoadMetrics(MeterRegistry meterRegistry, ClusterService clusterService, int numberOfSignificantDigits, int... trackedPercentiles) -
Method Summary
Modifier and TypeMethodDescriptionvoidonNewInfo(ClusterInfo clusterInfo) static StringshardWriteLoadDistributionMetricName(int percentile) Get the metric name for the shard write load distribution metric for the specified percentile.
-
Field Details
-
WRITE_LOAD_PRIORITISATION_THRESHOLD_METRIC_NAME
- See Also:
-
WRITE_LOAD_PRIORITISATION_THRESHOLD_PERCENTILE_RANK_METRIC_NAME
- See Also:
-
WRITE_LOAD_SUM_METRIC_NAME
- See Also:
-
NODE_WRITE_LOAD_METRIC_NAME
- See Also:
-
SHARD_WRITE_LOAD_METRICS_ENABLED_SETTING
-
-
Constructor Details
-
WriteLoadMetrics
-
WriteLoadMetrics
public WriteLoadMetrics(MeterRegistry meterRegistry, ClusterService clusterService, int numberOfSignificantDigits, int... trackedPercentiles)
-
-
Method Details
-
onNewInfo
-
shardWriteLoadDistributionMetricName
Get the metric name for the shard write load distribution metric for the specified percentile.- Parameters:
percentile- The desired percentile- Returns:
- The metric name
-