Hands-on task
TTFB as a metric
The service at http://localhost:9300/health takes suspiciously long to think before answering. Use curl to measure the time to first byte (TTFB) and write it as a Prometheus-format metric to /root/ttfb.prom — exactly one line probe_ttfb_seconds <seconds>, for example probe_ttfb_seconds 0.412.
- curl -w
- time_starttransfer
- TTFB
- Prometheus format
- request metrics