Quanlong Huang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20560


Change subject: IMPALA-12492: Add metrics for total pending events and lag time 
of the event-processor
......................................................................

IMPALA-12492: Add metrics for total pending events and lag time of the 
event-processor

We have last-synced-event-time and latest-event-time on the catalogd
WebUI. It's tedious for users to calculate their difference to get the
lag time. This patch addes the lag in the WebUI directly. The unit is
set to TIME_S so it's shown in a human readable format. Also adds the
total pending events in the same page.

Tests
 - Manually verify the metrics by generating lots of HMS events,
   hard-code the EVENTS_BATCH_SIZE_PER_RPC to 5 and add some sleeps in
   event processing. So it's more easy to show lags.

Change-Id: Id329879bfacba9c8415f920b57939dc571d1aad9
---
M be/src/util/event-metrics.cc
M be/src/util/event-metrics.h
M common/thrift/metrics.json
3 files changed, 61 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/60/20560/1
--
To view, visit http://gerrit.cloudera.org:8080/20560
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id329879bfacba9c8415f920b57939dc571d1aad9
Gerrit-Change-Number: 20560
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <huangquanl...@gmail.com>

Reply via email to