This is an automated email from the ASF dual-hosted git repository.
spricoder pushed a commit to branch rel/1.2
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/1.2 by this push:
new e4bdd13c2fd [To rel/1.2][Metric] Fix missing IoTConsensus metric items
e4bdd13c2fd is described below
commit e4bdd13c2fd70f7858cf759a935b04e92efea07b
Author: Potato <[email protected]>
AuthorDate: Sat Jun 17 16:48:12 2023 +0200
[To rel/1.2][Metric] Fix missing IoTConsensus metric items
Signed-off-by: OneSizeFitQuorum <[email protected]>
---
.../logdispatcher/LogDispatcherThreadMetrics.java | 38 ++++++++++++----------
1 file changed, 20 insertions(+), 18 deletions(-)
diff --git
a/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcherThreadMetrics.java
b/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcherThreadMetrics.java
index 130c35041a6..bcfc8382eeb 100644
---
a/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcherThreadMetrics.java
+++
b/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcherThreadMetrics.java
@@ -91,24 +91,26 @@ public class LogDispatcherThreadMetrics implements
IMetricSet {
}
private void bindStageHistogram(AbstractMetricService metricService) {
- metricService.getOrCreateHistogram(
- Metric.STAGE.toString(),
- MetricLevel.IMPORTANT,
- Tag.NAME.toString(),
- Metric.IOT_CONSENSUS.toString(),
- Tag.TYPE.toString(),
- "constructBatch",
- Tag.REGION.toString(),
- peerGroupId);
- metricService.getOrCreateHistogram(
- Metric.STAGE.toString(),
- MetricLevel.IMPORTANT,
- Tag.NAME.toString(),
- Metric.IOT_CONSENSUS.toString(),
- Tag.TYPE.toString(),
- "syncLogTimePerRequest",
- Tag.REGION.toString(),
- peerGroupId);
+ constructBatchHistogram =
+ metricService.getOrCreateHistogram(
+ Metric.STAGE.toString(),
+ MetricLevel.IMPORTANT,
+ Tag.NAME.toString(),
+ Metric.IOT_CONSENSUS.toString(),
+ Tag.TYPE.toString(),
+ "constructBatch",
+ Tag.REGION.toString(),
+ peerGroupId);
+ syncLogTimePerRequestHistogram =
+ metricService.getOrCreateHistogram(
+ Metric.STAGE.toString(),
+ MetricLevel.IMPORTANT,
+ Tag.NAME.toString(),
+ Metric.IOT_CONSENSUS.toString(),
+ Tag.TYPE.toString(),
+ "syncLogTimePerRequest",
+ Tag.REGION.toString(),
+ peerGroupId);
}
private void unbindStageHistogram(AbstractMetricService metricService) {