Skip to content

Commit f0b475e

Browse files
Zaid Salemclaude
authored andcommitted
fix(wb-alerts): surface Phase-0 telemetry counters in /health
The /health handler builds its "monitor" payload from an explicit field list, so the new _stats counters added in 3b20b4c (security_discarded_today, cp_messages_seen_today, cp_whitelist_miss_today) were never exposed even though get_stats() returns them. Map the three into the response. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3b20b4c commit f0b475e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • services/westbank-alerts/app

services/westbank-alerts/app/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,10 @@ async def health():
483483
"messages_today": monitor_stats.get("messages_today", 0),
484484
"alerts_today": monitor_stats.get("alerts_today", 0),
485485
"cp_updates_today": monitor_stats.get("cp_updates_today", 0),
486+
# Phase-0 telemetry: the otherwise-invisible drops.
487+
"security_discarded_today": monitor_stats.get("security_discarded_today", 0),
488+
"cp_messages_seen_today": monitor_stats.get("cp_messages_seen_today", 0),
489+
"cp_whitelist_miss_today": monitor_stats.get("cp_whitelist_miss_today", 0),
486490
},
487491
"checkpoints": {
488492
"last_update": cp_last,

0 commit comments

Comments
 (0)