Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexer processor metrics improvements. #469

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Conversation

sitalkedia
Copy link
Contributor

  • Fix some latency counters for indexer processor
  • Add batch size metrics

@sitalkedia sitalkedia requested review from rtso, banool and grao1991 July 18, 2024 21:53
@sitalkedia sitalkedia requested a review from bowenyang007 July 23, 2024 17:36
@@ -147,6 +147,15 @@ pub static PROCESSED_BYTES_COUNT: Lazy<IntCounterVec> = Lazy::new(|| {
.unwrap()
});

pub static BATCH_SIZE: Lazy<HistogramVec> = Lazy::new(|| {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have a metric like this. it's NUM_TRANSACTIONS_PROCESSED_COUNT

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a slight semantic difference because this is batch_end-batch_start but for all practical purpose, this is good. Removed the counter for now.

@sitalkedia sitalkedia enabled auto-merge (squash) July 25, 2024 22:19
@sitalkedia sitalkedia merged commit b11e05a into main Jul 25, 2024
7 checks passed
@sitalkedia sitalkedia deleted the skedia/indexer_metrics branch July 25, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants