docs: reconcile Prometheus implementation status #362

Merged
arnaud.dartois merged 1 commits from docs/prometheus-status-361 into main 2026-11-13 10:05:02 +01:00
2 changed files with 3 additions and 1 deletions

No files matched your search

+1 -1
View File
@@ -506,7 +506,7 @@ Le client natif a été retiré. Voir [l’audit PWA](pwa.md) et les [issues Git
## À faire
- [ ] Serilog + Seq/GlitchTip
- [ ] Métriques Prometheus
- [x] Export des métriques Prometheus Central/Agent (`/metrics`); le scraping externe et les seuils d'alerte en exploitation restent à configurer et valider par l'opérateur.
- [ ] Backup PostgreSQL automatisé
- [ ] Backup RustFS (S3 → S3)
- [ ] Tests de charge (k6)
+2
View File
@@ -16,6 +16,8 @@ Use this workflow when changing `Dockerfile` health checks, Central Compose heal
For a Central scrape check, the source-built server image exposes GET /metrics as Prometheus text and includes ASP.NET Core instrumentation after a request. Use the same disposable Compose isolation and an explicitly empty Sentry DSN; scrape the host loopback port, assert HTTP 200 plus Prometheus # HELP/# TYPE and an ASP.NET request metric, then remove the project and verify zero containers, volumes, and networks. Remove and verify absence of that recipe's unique server image tag afterward.
When updating implementation-status documentation, verify both `src/Heimdall.Web/Program.cs` and `src/Heimdall.Agent/Program.cs` for exporter registration and `/metrics` mapping, then compare the documented signal inventory with `docs/metrics.md` and example alert rules with `deploy/prometheus/heimdall-alerts.yml`. Mark exporter implementation separately from an operator's Prometheus scrape, deployed alerting, or threshold validation; local or CI evidence does not establish those external states.
On 5 November 2026, project hmd-metrics-scrape-1793874584 reused the prior source-built OCR Central image (no code changes between that image and this scrape). It returned HTTP 200 with Prometheus exposition and ASP.NET metrics; Sentry DSN was empty and teardown verified 0/0/0. This is a partial Docker recipe result: it did not build a unique image for this scrape, so no exact-tag image removal was performed. Repeat the check with a fresh project-unique source-built tag before treating the Docker acceptance as complete. This local check does not validate a deployed Prometheus server or alert thresholds.
PostgreSQL readiness regression checks were also rerun locally on 5 November 2026: HealthControllerTests passed 5/5 with the disposable Testcontainers database. The Testcontainers reaper and database stopped after the run; unrelated labeled database services were left untouched.