Revise observability features by introducing new health and liveness endpoints (/livez and /readyz), updating Prometheus metrics to track NATS consumer pending messages, and enhancing telemetry integration for better monitoring. Update documentation to reflect these changes and ensure consistency in metric naming conventions.

This commit is contained in:
windyboy
2025-11-16 13:14:46 +08:00
parent 3d8572a69f
commit e27328378a
17 changed files with 582 additions and 154 deletions
+4
View File
@@ -11,6 +11,7 @@ import (
"caatsm/internal/infra/monitoring"
"caatsm/internal/infra/nats"
"caatsm/internal/infra/postgres"
"caatsm/internal/observability/telemetry"
"github.com/google/wire"
)
@@ -49,6 +50,9 @@ var runtimeSet = wire.NewSet(
// Parser
parser.ProvideParser,
// Telemetry
telemetry.ProvideRecorder,
// App
app.NewMessageProcessor,