clavitor/clavis/clavis-telemetry
James fe9f98a69e telemetry: add Prometheus metrics endpoint
Adds /metrics endpoint that returns Prometheus-format metrics for monitoring:

- telemetry_requests_total (counter, labeled by pop_id and status)
- telemetry_request_duration_seconds (histogram with standard buckets)
- active_connections (gauge)
- db_query_duration_seconds (histogram for health check queries)

Following KISS principle - no external dependencies, simple text format
implementation with proper mutex protection for thread safety.

All error paths handled with unique error codes per Cardinal Rule.

fixes #8
2026-04-09 03:29:32 -04:00
..
CLAUDE.md telemetry: verify dispatcher agent spawning for Hans 2026-04-09 03:14:27 -04:00
clavis-telemetry Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
go.mod Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
go.sum Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
kuma.go telemetry: fix CRITICAL silent failures (Cardinal Rule #1) 2026-04-09 01:20:08 -04:00
main.go telemetry: add Prometheus metrics endpoint 2026-04-09 03:29:32 -04:00
main_test.go telemetry: add Prometheus metrics endpoint 2026-04-09 03:29:32 -04:00
metrics.go telemetry: add Prometheus metrics endpoint 2026-04-09 03:29:32 -04:00