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 |
||
|---|---|---|
| .. | ||
| CLAUDE.md | ||
| clavis-telemetry | ||
| go.mod | ||
| go.sum | ||
| kuma.go | ||
| main.go | ||
| main_test.go | ||
| metrics.go | ||