David Santos
|
113eee0b97
|
feat(obs): add Loki ruler alert rules and MONITORING.md Loki section (BIT-19957)
- deploy/loki/rules/fake/errors_hub_alerts.yaml: four LogQL-based Loki ruler
alert rules (error rate per service, fatal detection, ingest-api sustained
errors, collector-worker stall detection)
- deploy/loki/loki.yaml: add explicit ruler.storage (local), rule_path, and
enable_api/enable_alertmanager_v2 so Loki loads rules from /loki/rules
- docker-compose.yml: mount deploy/loki/rules → /loki/rules:ro in the loki
service (observability profile)
- docs/MONITORING.md: add Loki section with label table, alert rule summary,
config file index, and LXC deployment note
Paperclip-Issue: BIT-19957
Paperclip-Agent: cto
|
2026-05-14 09:31:31 +00:00 |
|
David Santos
|
c74e05b844
|
feat(obs): add Loki/Promtail LXC config for central production stack (BIT-21663)
- deploy/loki/promtail-lxc.yaml: journald-based Promtail config for native
LXC/systemd deployment; unit filter on bitreport-error-reporting-*.service;
LOKI_PUSH_URL via env var expansion (-config.expand-env=true)
- deploy/loki/systemd/promtail.service: systemd unit; loopback-only binding;
EnvironmentFile=/etc/promtail/env for secrets
- docs/deployment/loki-lxc-runbook.md: full operational runbook — Loki on
central obs CT, Promtail on app LXC, firewall, smoke LogQL queries
- docs/OBSERVABILITY_LOKI.md: document production topology divergence vs
lab compose; update configuration files table
Paperclip-Task: BIT-21663
Paperclip-Agent: tiago-neves
|
2026-05-11 22:18:58 +00:00 |
|
 David SantosandClaude Sonnet 4.6
|
8bb49ce32b
|
feat(observability): integrate Loki for centralised log aggregation (BIT-14248)
Adds Grafana Loki + Promtail to the Docker Compose observability profile,
enabling structured-log collection from all errors.bitreport.pt services.
- deploy/loki/loki.yaml: Loki server (filesystem storage, TSDB v13, 30-day retention)
- deploy/loki/promtail.yaml: Docker SD auto-discovery, JSON parse, Pino level normalisation
- deploy/grafana/loki-logs-dashboard.json: Grafana log dashboard (uid er-loki-logs)
- docs/OBSERVABILITY_LOKI.md: setup, key LogQL queries, troubleshooting runbook
- docker-compose.yml: loki + promtail services under --profile observability; LOG_LEVEL env
- .env.example / ingest-api/.env.example: LOG_LEVEL + ER_PUBLISH_LOKI_PORT documented
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
2026-04-27 08:03:20 +00:00 |
|