Skip to content

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
FieldDefaultDescription
url(required)HTTP endpoint URL
methodGETHTTP method (GET, POST, PUT)
headersMap of additional request headers
bodyRequest body string
auth.strategybasic or bearer
auth.user / auth.passwordCredentials for basic auth
auth.tokenToken for bearer auth
scrape_interval_secondsPolling interval; omit for one-shot
scrape_timeout_seconds5Request timeout

Namespace: http.{url_host}

CLI

bash
skippr connect source http-client \
  --url https://api.example.com/data \
  --method GET \
  --scrape-interval-seconds 60
FlagDescription
--urlHTTP endpoint URL
--methodHTTP method (default: GET)
--scrape-interval-secondsPolling interval in seconds (omit for one-shot)