feat(alerting): add Telegram callback ingress sensor
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-18 18:02:06 +08:00
parent 5f8f89c97b
commit f493fe8dcb
10 changed files with 730 additions and 0 deletions

View File

@@ -54,6 +54,14 @@ TELEGRAM_NOTIFICATIONS_TOTAL = Counter(
["source", "status"], # status: success/failed
)
TELEGRAM_CALLBACK_INGRESS_LAST_RECEIPT_TIMESTAMP = Gauge(
"awoooi_telegram_callback_ingress_last_receipt_timestamp_seconds",
(
"Unix timestamp of the latest durable Telegram callback ingress receipt; "
"zero means no durable receipt has been observed by this API process"
),
)
# =============================================================================
# Anomaly Counter Metrics (ADR-037)
# =============================================================================