You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2022/09/11 05:52:22 UTC
[kudu] 02/03: [consensus] fix units for log_reader_read_batch_latency metric
This is an automated email from the ASF dual-hosted git repository.
alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
commit 6d6cdd3524b7a57ecf0f05ea23874f1bfb890217
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Fri Sep 9 17:05:37 2022 -0700
[consensus] fix units for log_reader_read_batch_latency metric
This is a follow-up to 9689272e45bdeabe89fdbf675d2e49e71837feb8.
Change-Id: Ie769021a3ab21a5447b682443ebc756d7ff0cb1a
Reviewed-on: http://gerrit.cloudera.org:8080/18961
Reviewed-by: Yifan Zhang <ch...@163.com>
Tested-by: Kudu Jenkins
---
src/kudu/consensus/log_reader.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/kudu/consensus/log_reader.cc b/src/kudu/consensus/log_reader.cc
index 24a4739be..40743e0bc 100644
--- a/src/kudu/consensus/log_reader.cc
+++ b/src/kudu/consensus/log_reader.cc
@@ -22,6 +22,7 @@
#include <memory>
#include <mutex>
#include <ostream>
+#include <type_traits>
#include <glog/logging.h>
@@ -51,7 +52,7 @@ METRIC_DEFINE_counter(tablet, log_reader_entries_read, "Entries Read From Log",
kudu::MetricLevel::kDebug);
METRIC_DEFINE_histogram(tablet, log_reader_read_batch_latency, "Log Read Latency",
- kudu::MetricUnit::kBytes,
+ kudu::MetricUnit::kMicroseconds,
"Microseconds spent reading log entry batches",
kudu::MetricLevel::kInfo,
60000000LU, 2);