feat(observability): implement global database error logging, Prometheus error metrics, and max 3-panel Grafana dashboard

This commit is contained in:
mamad
2026-08-27 22:42:19 +03:30
parent f7c80b68d2
commit 8eb5ca0a3f
8 changed files with 268 additions and 123 deletions
+6
View File
@@ -46,6 +46,12 @@ POSTS_PUBLISHED_TOTAL = Counter(
["target_channel_id"]
)
ERRORS_TOTAL = Counter(
"copykar_errors_total",
"Total exceptions and errors caught across services",
["service", "error_type"]
)
# Histograms
AI_LATENCY_SECONDS = Histogram(
"copykar_ai_latency_seconds",