Skip to content

feat: Add metric to track if recovery deferral cancelled a recovery#3132

Open
sadhansood wants to merge 2 commits intomainfrom
sadhan/recovery_logging
Open

feat: Add metric to track if recovery deferral cancelled a recovery#3132
sadhansood wants to merge 2 commits intomainfrom
sadhan/recovery_logging

Conversation

@sadhansood
Copy link
Contributor

Description

If a recovery deferral stopped a recovery from happening, it is useful to track it.

Test plan

How did you test the new or updated feature?


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that
a user might notice and any actions they must take to implement updates. (Add release notes after the colon for each item)

  • Storage node:
  • Aggregator:
  • Publisher:
  • CLI:

Comment on lines +594 to +604
if waited_for_deferral {
this.node
.metrics
.live_upload_deferral_avoided_recovery_total
.inc();
walrus_utils::with_label!(
this.node.metrics.live_upload_deferral_outcome_total,
LIVE_UPLOAD_DEFERRAL_OUTCOME_AVOIDED_RECOVERY
)
.inc();
}
Copy link
Collaborator

@shuowang12 shuowang12 Mar 16, 2026

Choose a reason for hiding this comment

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

I was wondering if there is difference between live_upload_deferral_avoided_recovery_total and live_upload_deferral_outcome_total[LIVE_UPLOAD_DEFERRAL_OUTCOME_AVOIDED_RECOVERY].

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.

2 participants