This site practises what it teaches: observability. Each visit sends a single anonymous beacon with five performance measurements; they are aggregated into histograms in Redis, exposed in Prometheus format on /metrics and viewable in Grafana.
What is measured
No cookie, no stored IP address, no identifier: only the page type (home, course, lesson, article…) and durations. No consent is required for these anonymous measurements.
- LCP (Largest Contentful Paint)
- INP (Interaction to Next Paint)
- CLS (Cumulative Layout Shift)
- FCP (First Contentful Paint)
- TTFB (Time To First Byte)
Current state (75th percentile)
| Page | Samples | LCP | INP | CLS | FCP | TTFB |
|---|---|---|---|---|---|---|
| Home | 304 | 🟠 ≤ 4000 ms | 🟢 ≤ 100 ms | 🔴 ≤ 1.00 | 🔴 ≤ 5000 ms | 🟠 ≤ 1800 ms |
| Catalogues | 591 | 🟢 ≤ 1500 ms | 🟢 ≤ 100 ms | 🟢 ≤ 0.05 | 🟢 ≤ 1800 ms | 🟢 ≤ 800 ms |
| Courses | 1048 | 🟢 ≤ 2500 ms | 🟢 ≤ 100 ms | 🟢 ≤ 0.05 | 🟠 ≤ 3000 ms | 🟠 ≤ 1800 ms |
| Lessons | 3221 | 🟢 ≤ 2500 ms | 🟢 ≤ 100 ms | 🟢 ≤ 0.05 | 🟢 ≤ 1800 ms | 🟠 ≤ 1800 ms |
| Articles | 2463 | 🟠 ≤ 4000 ms | 🟢 ≤ 100 ms | 🟢 ≤ 0.05 | 🟠 ≤ 3000 ms | 🟠 ≤ 1800 ms |
| Other | 1820 | 🟢 ≤ 1000 ms | 🟢 ≤ 100 ms | 🟢 ≤ 0.05 | 🟢 ≤ 1000 ms | 🟢 ≤ 800 ms |
🟢 Good · 🟠 Needs improvement · 🔴 Poor
Architecture
PerformanceObserver (navigateur) → sendBeacon → /rum.php → Redis (histogrammes) → /metrics → Grafana Alloy → Prometheus / Mimir → Grafana.
How to reproduce it
// Grafana Alloy : scraper les métriques du site
prometheus.scrape "rtm" {
targets = [{"__address__" = "elearning.rousseltm.fr:443"}]
scheme = "https"
metrics_path = "/metrics"
forward_to = [prometheus.remote_write.cloud.receiver]
}
# PromQL : LCP p75 par type de page
histogram_quantile(0.75, sum by (le, page) (rate(rtm_rum_lcp_bucket[1h])))