Skip to content

Conversation

@mrmizz
Copy link
Contributor

@mrmizz mrmizz commented Aug 12, 2025

Added a new "epoch_percentage" field (already used elsewhere), in creating new alerts for Merkle Root Uploads and MEV/PF Claims.

Three new alerts:

  1. "Tip Router -- Merkle Root Upload Timer" https://jitolabs.grafana.net/alerting/grafana/beub9k1y9dfcwd/view
    Alerts if the number of failed MR uploads has not reached zero after 10% of the epoch.

  2. "Tip Router -- Claims Timer" https://jitolabs.grafana.net/alerting/grafana/beub9k1y9dfcwd/view
    Alerts if the number of remaining claims has not reached zero after 33% of the epoch.

  3. "Tip Router -- Claims Have Stalled" https://jitolabs.grafana.net/alerting/grafana/fetnet1krxatcf/view
    Checks the num remaining claims now vs an hour ago, and alerts if those values are the same.

.await?;

if validators_processed {
let epoch_percentage = epoch_percentage::get(&rpc_client).await.unwrap_or(0f64);
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we'd want to not emit in the event of the unwrap failing so that we're not erroneously writing 0% in the event of a 429 or timeout. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm with that. Best to avoid erroneous alerts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,10 @@
use anyhow::Result;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: would prefer this as just a helper in lib.rs than adding another file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mrmizz mrmizz merged commit b9639ac into master Aug 13, 2025
6 checks passed
@mrmizz mrmizz deleted the ab/alerts branch August 13, 2025 02:43
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.

5 participants