fix: MetricsCollectorService does not track APPROVED or retry-pending batches
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
Reference in New Issue
Block a user