fix: MetricsCollectorService does not track APPROVED or retry-pending batches

This commit is contained in:
voltsrage
2026-06-27 20:58:57 +08:00
parent 903cd54a51
commit 5db60f46eb
3 changed files with 47 additions and 4 deletions
@@ -94,4 +94,16 @@ public static class DiagnosticsMetrics
{
LabelNames = new[] { "outcome" }
});
public static readonly Gauge PromotionPendingRetries = Metrics.CreateGauge(
"digitization_promotion_pending_retries",
"Count of promotion attempts with a scheduled retry that have not yet succeeded.");
public static readonly Gauge PromotionExhaustedTotal = Metrics.CreateGauge(
"digitization_promotion_exhausted_total",
"Count of APPROVED batches where all retry attempts are exhausted.");
public static readonly Gauge ApprovalQueueAgeSeconds = Metrics.CreateGauge(
"digitization_approval_queue_age_seconds",
"Age in seconds of the oldest batch in APPROVED status awaiting promotion retry.");
}