Skip to content

Commit

Permalink
[HUDI-4873] Report number of messages to be processed via metrics (ap…
Browse files Browse the repository at this point in the history
…ache#6271)

Co-authored-by: Volodymyr Burenin <volodymyr.burenin@cloudkitchens.com>
Co-authored-by: Y Ethan Guo <ethan.guoyihua@gmail.com>
  • Loading branch information
3 people authored and voonhous committed Oct 7, 2022
1 parent 08dac22 commit c4a66db
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -101,6 +101,12 @@ public void updateDeltaStreamerSyncMetrics(long syncEpochTimeInMs) {
}
}

public void updateDeltaStreamerKafkaMessageInCount(long totalNewMsgCount) {
if (config.isMetricsOn()) {
Metrics.registerGauge(getMetricsName("deltastreamer", "kafkaMessageInCount"), totalNewMsgCount);
}
}

public long getDurationInMs(long ctxDuration) {
return ctxDuration / 1000000;
}
Expand Down

0 comments on commit c4a66db

Please sign in to comment.