Skip to main content
HTTP monitors support a wide range of configuration options for request construction, TLS behavior, and authentication.
Define this in code. YAML format · Terraform

Required fields

FieldTypeDescription
namestring (max 255)Human-readable name for this monitor
typestringMust be HTTP
config.urlstringTarget URL to send requests to
config.methodstringHTTP method: GET, POST, PUT, PATCH, DELETE, HEAD

Config fields

FieldTypeDefaultDescription
config.urlstringTarget URL (required)
config.methodstringHTTP method (required)
config.customHeadersobjectnullKey-value map of extra headers to include
config.requestBodystringnullRequest body for POST, PUT, PATCH methods
config.contentTypestringnullContent-Type header for the request body
config.verifyTlsbooleantrueWhether to verify TLS certificates

Monitor-level fields

FieldTypeDefaultDescription
frequencySecondsinteger60Check frequency in seconds (30–86,400)
enabledbooleantrueWhether the monitor is active
regionsarray of stringall regionsProbe regions to run checks from
environmentIdUUIDnullEnvironment to associate with this monitor
managedBystringDASHBOARD, CLI, or TERRAFORM

Custom headers

Add custom headers for API authentication, content negotiation, or any request metadata:
monitors:
  - name: API with headers
    type: HTTP
    config:
      url: https://api.example.com/data
      method: GET
      customHeaders:
        Accept: application/json
        X-Custom-Header: my-value

Request body

For POST, PUT, and PATCH methods, include a request body:
monitors:
  - name: POST endpoint
    type: HTTP
    config:
      url: https://api.example.com/submit
      method: POST
      contentType: application/json
      requestBody: '{"test": true}'

TLS verification

By default, HTTP monitors verify TLS certificates. Disable verification for self-signed certificates in staging environments:
monitors:
  - name: Staging API
    type: HTTP
    config:
      url: https://staging.example.com/health
      method: GET
      verifyTls: false
Disabling TLS verification means the monitor won’t detect certificate issues. Only disable this for internal or staging endpoints with self-signed certificates.

Authentication

HTTP monitors support four authentication methods via vault secrets. Credentials are stored encrypted and referenced by vaultSecretId.
Auth typeHeader sentConfig fields
bearerAuthorization: Bearer <secret>vaultSecretId
basicAuthorization: Basic <base64>vaultSecretId
header<headerName>: <secret>headerName, vaultSecretId
api_key<headerName>: <secret>headerName, vaultSecretId

Setup

  1. Create a vault secret:
devhelm secrets set API_TOKEN=your-secret-value
  1. Reference the secret in your monitor:
monitors:
  - name: Authenticated API
    type: HTTP
    config:
      url: https://api.example.com/protected
      method: GET
    auth:
      type: bearer
      vaultSecretId: <secret-uuid>
See Secrets for vault management and the authenticated endpoints guide for patterns.

Incident policy

Every monitor has an incident policy. If you don’t specify one, the defaults apply:
SettingDefault
Trigger rule2 consecutive failures per region → severity down
Confirmation1 region failing, wait up to max(60, frequency × 2) seconds
Recovery2 consecutive successes from 2 regions, 5-minute cooldown
Override the defaults:
monitors:
  - name: API Health
    type: HTTP
    config:
      url: https://api.example.com/health
      method: GET
    incidentPolicy:
      triggerRules:
        - type: consecutive_failures
          count: 3
          scope: per_region
          severity: down
      confirmation:
        type: multi_region
        minRegionsFailing: 2
        maxWaitSeconds: 120
      recovery:
        consecutiveSuccesses: 3
        minRegionsPassing: 2
        cooldownMinutes: 10
See Incident policies for full details.

Next steps

HTTP assertions

All 11 assertion types with examples.

Authenticated endpoints

Patterns for monitoring private APIs.

Multi-region monitoring

Reduce false positives with multi-region checks.

Incident policies

Trigger rules, confirmation, and recovery.