# blackbox_exporter modules for Gurubase Siper availability probes.
modules:
  # Public health endpoint of the API address. No key needed.
  gurubase_health:
    prober: http
    timeout: 5s
    http:
      method: GET
      valid_status_codes: [200]
      fail_if_not_ssl: true

  # A real masking call with your own API key. It uses a few characters of your quota per
  # probe (about 14 characters every 60 s). The text is a synthetic test number, not
  # personal data; the probe fails unless it comes back masked.
  gurubase_mask:
    prober: http
    timeout: 10s
    http:
      method: POST
      headers:
        Content-Type: application/json
      body: '{"text":"TC 10000000214"}'
      valid_status_codes: [200]
      fail_if_not_ssl: true
      # The response must carry masked text, and the test number must not come back.
      fail_if_body_not_matches_regexp:
        - '"masked_text"'
      fail_if_body_matches_regexp:
        - '10000000214'
      authorization:
        type: Bearer
        credentials_file: /etc/blackbox/gurubase-api.key
