feat(observability): add product metrics for API, outbox and delivery
This commit is contained in:
1 parent
560724e2aa
commit
94488e2b57
51 files changed
+3655
-68
No files matched your search
@@ -4,10 +4,11 @@
|
||||
|
||||
Configuration for collecting metrics and logs, with dashboards for service health.
|
||||
|
||||
- `prometheus/` configures metric collection and ML targets.
|
||||
- `prometheus/` configures metric collection and ML targets; `prometheus/rules/` holds the alert rules and `prometheus/tests/` their `promtool` unit tests.
|
||||
- `loki/` configures log storage; `alloy/` handles log collection and forwarding.
|
||||
- `grafana/` contains data sources and dashboards for Go, PostgreSQL, Redis, SeaweedFS, and the host.
|
||||
- `grafana/` contains data sources and dashboards for Go, PostgreSQL, Redis, SeaweedFS, the host, and the Lincodex product metrics: API latency and errors, outbox lag, consumers and scheduled jobs, mail deliveries and quota, and assessment answer saves.
|
||||
- `scripts/verify-product-metrics.sh` is the end-to-end check behind `make -C observability verify-product-metrics`.
|
||||
|
||||
From the repository root, `make -C observability check` validates configuration using Docker. Start monitoring separately after the core services with `make -C deploy monitoring-up`; its Compose file lives in `deploy/docker/`.
|
||||
From the repository root, `make -C observability check` validates configuration and runs the alert rule tests using Docker. `make -C observability verify-product-metrics` is an explicit end-to-end check, not part of `check`: it starts two separate throwaway Compose projects, core and monitoring, and checks the product metrics, the dashboard, and that a fixture address reaches neither metrics nor logs. Start monitoring separately after the core services with `make -C deploy monitoring-up`; its Compose file lives in `deploy/docker/`.
|
||||
|
||||
See the [deployment guide](../docs/en/DEPLOY.md).
|
||||
Reference in new issue
Block a user