Skip to content

CICD-361 · Synthetic monitoring deployment ​

Encyclopedia · Observability and SRE pipelines · All snippets

Previous · CICD-360 · Next · CICD-362

1. Where it fits ​

  • Placement monitoring/blackbox.yaml.
  • Prerequisites staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes.
  • Platforms local-lab.

2. Copy the snippet ​

yaml
modules:
  http_health:
    prober: http
    timeout: 5s
    http:
      method: GET
      valid_status_codes: [200]

3. How it works ​

The Blackbox Exporter module defines an HTTP request and accepts only the selected status. Prometheus scrapes the exporter and interprets probe_success.

4. Verify the result ​

Mount this module into Blackbox Exporter and configure a Prometheus scrape job for the reviewed endpoint. Verify probe_success=1.

Validation syntax-validated (YAML parse). Status definitions.