HTTP Client
Fetches data from an HTTP endpoint. Supports one-shot or periodic polling.
Configuration
yaml
source:
kind: http_client
url: "https://api.example.com/data"
method: GET
scrape_interval_seconds: 60| Field | Default | Description |
|---|---|---|
url | (required) | HTTP endpoint URL |
method | GET | HTTP method (GET, POST, PUT) |
headers | Map of additional request headers | |
body | Request body string | |
auth.strategy | basic or bearer | |
auth.user / auth.password | Credentials for basic auth | |
auth.token | Token for bearer auth | |
scrape_interval_seconds | Polling interval; omit for one-shot | |
scrape_timeout_seconds | 5 | Request timeout |
Namespace: http.{url_host}
CLI
bash
skippr connect source http-client \
--url https://api.example.com/data \
--method GET \
--scrape-interval-seconds 60| Flag | Description |
|---|---|
--url | HTTP endpoint URL |
--method | HTTP method (default: GET) |
--scrape-interval-seconds | Polling interval in seconds (omit for one-shot) |
