You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/metrics.rs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
//! Self-observability: a tiny std-only metrics + health endpoint so an operator can ALARM on the
2
2
//! signals that matter for a *fail-open* security control — chiefly `overload_degraded` (escalations
3
-
//! that silently fell through to the fail mode because the worker queue was full) and `enforce_failed`
4
-
//! (a block whose deny-write errored, i.e. a block that did not land). Opt-in via
5
-
//! `A3S_SENTRY_METRICS_ADDR`; nothing is bound otherwise. No framework, no async — one accept thread.
3
+
//! rejected by the worker queue) and `enforce_failed` (a block whose deny-write errored, i.e. a block
4
+
//! that did not land). Opt-in via `A3S_SENTRY_METRICS_ADDR`; nothing is bound otherwise. No
5
+
//! framework, no async — one accept thread.
6
6
7
7
use std::io::{Read,Write};
8
8
use std::net::{TcpListener,TcpStream};
@@ -30,7 +30,7 @@ impl Metrics {
30
30
# HELP sentry_blocked_total Events blocked (a deny-file write was attempted).\n\
31
31
# TYPE sentry_blocked_total counter\n\
32
32
sentry_blocked_total {}\n\
33
-
# HELP sentry_overload_degraded_total Escalations degraded to the fail mode (worker queue full) — a fail-OPEN bypass; alarm on rate > 0.\n\
33
+
# HELP sentry_overload_degraded_total Escalations rejected by the full worker queue; complete evidence uses the fail mode, incomplete evidence remains unresolved — alarm on rate > 0.\n\
34
34
# TYPE sentry_overload_degraded_total counter\n\
35
35
sentry_overload_degraded_total {}\n\
36
36
# HELP sentry_enforce_failed_total Deny-file writes that errored (a block that did NOT land) — alarm on rate > 0.\n\
0 commit comments