mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
feat(telemetry): add 7-day agreement window to validation_agreement gauge
Add agreement_pct_7d, agreements_7d, missed_7d labels to the rippled_validation_agreement observable gauge, matching the external xrpl-validator-dashboard's 7-day tracking. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1005,6 +1005,12 @@ MetricsRegistry::registerAsyncGauges()
|
||||
"agreements_24h",
|
||||
static_cast<double>(self->validationTracker_.agreements24h()));
|
||||
observe("missed_24h", static_cast<double>(self->validationTracker_.missed24h()));
|
||||
|
||||
// 7-day window (matches external xrpl-validator-dashboard).
|
||||
observe("agreement_pct_7d", self->validationTracker_.agreementPct7d());
|
||||
observe(
|
||||
"agreements_7d", static_cast<double>(self->validationTracker_.agreements7d()));
|
||||
observe("missed_7d", static_cast<double>(self->validationTracker_.missed7d()));
|
||||
}
|
||||
catch (...) // NOLINT(bugprone-empty-catch)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user