HTTP Availability Probe (`http_probe`)
inputs.http_probe provides lightweight, zero-dependency HTTP/HTTPS endpoint availability checks with DNS, TLS, and TTFB timing breakdowns across multiple independent targets.
Configuration
Section titled “Configuration”inputs: http_probe: - id: api_prod url: https://api.example.com/health method: GET interval: 10s timeout: 5s expected_status: 200 headers: Authorization: "Bearer xxx" follow_redirects: false insecure_skip_verify: false| Field | Type | Default | Description |
|---|---|---|---|
id |
string | required | Probe instance ID; metrics register as http_probe.<id>.* |
url |
string | required | Target URL to probe |
method |
string | GET |
HTTP request method |
interval |
duration | global.interval |
Probe cadence |
timeout |
duration | 5s |
Per-request timeout |
expected_status |
int | 200 |
Expected HTTP status code |
headers |
map | {} |
Custom request headers |
follow_redirects |
bool | false |
Whether to follow 3xx redirects |
insecure_skip_verify |
bool | false |
Whether to skip TLS certificate verification |
Metrics Reference
Section titled “Metrics Reference”Each <id> instance emits six metrics:
| Metric | Unit | Description |
|---|---|---|
http_probe.<id>.up |
0/1 |
1 if request succeeds with expected_status, else 0 |
http_probe.<id>.status_code |
- | HTTP status code (0 on network or timeout failure) |
http_probe.<id>.latency_ms |
ms |
Total request duration |
http_probe.<id>.dns_ms |
ms |
DNS lookup duration |
http_probe.<id>.tls_ms |
ms |
TLS handshake duration |
http_probe.<id>.ttfb_ms |
ms |
Time To First Byte |
Alert Rule Examples
Section titled “Alert Rule Examples”alerts: # Captures only http_probe/api_prod curves with no unrelated host data - id: api_prod_down severity: critical for: 10s expr: 'last("http_probe.api_prod.up") == 0'
# Slow-response alert with local host/default context attached - id: api_prod_slow severity: warning for: 15s expr: 'avg("http_probe.api_prod.latency_ms", 60) > 1500' attach: ["host/default"]