docs: simplify project guides and add GPLv3
This commit is contained in:
1 parent
e4de6d0f9a
commit
76d32bb79f
59 files changed
+2267
-8843
No files matched your search
@@ -2,13 +2,19 @@
|
||||
|
||||
[Русский](README.md) | English
|
||||
|
||||
Configuration for collecting metrics and logs, with dashboards for service health.
|
||||
Prometheus, Loki, Grafana, and Grafana Alloy configuration. The stack starts separately from the application, after core.
|
||||
|
||||
- `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, 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`.
|
||||
- `prometheus/` - metric collection, alert rules, and rule tests.
|
||||
- `loki/` - log storage.
|
||||
- `alloy/` - container logs through a restricted Docker socket proxy.
|
||||
- `grafana/` - data sources and service and product dashboards.
|
||||
- `scripts/` - integration checks for metrics and log privacy.
|
||||
|
||||
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/`.
|
||||
```sh
|
||||
make -C observability check
|
||||
make -C deploy monitoring-up
|
||||
```
|
||||
|
||||
See the [deployment guide](../docs/en/DEPLOY.md).
|
||||
Grafana listens on `127.0.0.1:3000`; other services stay on internal networks. Alert notifications and the React telemetry SDK are not connected yet. Treat Alloy's Docker API access as privileged even when writes are disabled.
|
||||
|
||||
`make -C observability verify-product-metrics` checks metrics, the dashboard, and the absence of fixture personal data in telemetry on disposable stands. Access, exporter, and retention settings: [DEPLOYMENT.md](../docs/en/DEPLOYMENT.md#separate-monitoring-compose-project).
|
||||
Reference in new issue
Block a user