1.3 KiB
1.3 KiB
Monitoring
Русский | English
Configuration for collecting metrics and logs, with dashboards for service health.
prometheus/configures metric collection and ML targets;prometheus/rules/holds the alert rules andprometheus/tests/theirpromtoolunit tests.loki/configures log storage;alloy/handles log collection and forwarding.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.shis the end-to-end check behindmake -C observability verify-product-metrics.
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.