-
Notifications
You must be signed in to change notification settings - Fork 19
Publish latency and failure metrics for cluster state applier thread #563
Publish latency and failure metrics for cluster state applier thread #563
Conversation
/** | ||
* Sum of total pending tasks throttled by master node. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a copy-paste miss? The comment seems to be unrelated.
AllMetrics.ClusterApplierServiceStatsValue.CLUSTER_APPLIER_SERVICE_LATENCY.toString(), | ||
new MetricAttributes( | ||
MetricUnits.MILLISECOND.toString(), EmptyDimension.values())); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to include failure metric as well in here?
ADMISSION_CONTROL_METRICS, | ||
SHARD_INDEXING_PRESSURE | ||
SHARD_INDEXING_PRESSURE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we replace ";" with "," to avoid future changes when adding new metric?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,25 @@ | |||
/* | |||
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change year to 2021 in the license header?
Fixes #, if available: 564
Description of changes: With this change we will start publishing metrics like Latency and failure for Cluster state applier thread.
1.Tested using Docker
Tmp file
Table created
Contents of the table