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).
|
||||
+13
-7
@@ -2,13 +2,19 @@
|
||||
|
||||
Русский | [English](README.en.md)
|
||||
|
||||
Настройки сбора метрик и логов, а также готовые дашборды для технического состояния сервисов.
|
||||
Конфигурации Prometheus, Loki, Grafana и Grafana Alloy. Стек запускается отдельно от приложения, после core.
|
||||
|
||||
- `prometheus/` - сбор метрик и список ML-targets; `prometheus/rules/` - правила alerts, `prometheus/tests/` - их unit-тесты для `promtool`.
|
||||
- `loki/` - хранение логов; `alloy/` - их сбор и отправка.
|
||||
- `grafana/` - источники данных и дашборды Go, PostgreSQL, Redis, SeaweedFS, хоста и продуктовых метрик Lincodex: задержка и ошибки API, отставание outbox, обработчики и задания по сроку, доставки и квоты почты, сохранение ответов теста.
|
||||
- `scripts/verify-product-metrics.sh` - сквозная проверка за `make -C observability verify-product-metrics`.
|
||||
- `prometheus/` - сбор метрик, alert rules и их тесты.
|
||||
- `loki/` - хранение логов.
|
||||
- `alloy/` - сбор логов контейнеров через ограниченный Docker socket proxy.
|
||||
- `grafana/` - источники данных и дашборды сервисов и продукта.
|
||||
- `scripts/` - интеграционная проверка метрик и приватности логов.
|
||||
|
||||
Из корня: `make -C observability check` проверяет конфигурации и запускает тесты правил alerts через Docker. `make -C observability verify-product-metrics` - явная сквозная проверка, не входящая в `check`: она поднимает два отдельных одноразовых Compose проекта, core и monitoring, и проверяет продуктовые метрики, dashboard и то, что fixture адрес не попадает ни в метрики, ни в логи. Сам стек запускается отдельно после основных сервисов командой `make -C deploy monitoring-up`; его Compose-файл находится в `deploy/docker/`.
|
||||
```sh
|
||||
make -C observability check
|
||||
make -C deploy monitoring-up
|
||||
```
|
||||
|
||||
Подробнее: [развертывание](../docs/ru/DEPLOY.md).
|
||||
Grafana слушает `127.0.0.1:3000`; остальные сервисы остаются во внутренних сетях. Уведомления по alerts и React SDK телеметрии пока не подключены. Доступ Alloy к Docker API считается привилегированным, даже когда запись запрещена.
|
||||
|
||||
`make -C observability verify-product-metrics` проверяет метрики, дашборд и отсутствие тестовых персональных данных в телеметрии на одноразовых стендах. Настройки доступа, exporter и хранения: [DEPLOYMENT.md](../docs/ru/DEPLOYMENT.md#отдельный-monitoring-compose).
|
||||
Reference in new issue
Block a user