We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e422cc commit 3e73a99Copy full SHA for 3e73a99
crates/audit/src/archiver.rs
@@ -69,6 +69,7 @@ where
69
let archive_start = Instant::now();
70
if let Err(e) = writer.archive_event(event).await {
71
error!(error = %e, "Failed to write event");
72
+ metrics.failed_archive_tasks.increment(1);
73
} else {
74
metrics
75
.archive_event_duration
crates/audit/src/metrics.rs
@@ -48,4 +48,8 @@ pub struct Metrics {
48
/// Number of in-flight archive tasks.
49
#[metric(describe = "Number of in-flight archive tasks")]
50
pub in_flight_archive_tasks: Gauge,
51
+
52
+ /// Number of failed archive tasks.
53
+ #[metric(describe = "Number of failed archive tasks")]
54
+ pub failed_archive_tasks: Counter,
55
}
0 commit comments