Cannot use Metricbeat Prometheus module to scrape Blackbox Exporter

I am trying to use Metricbeat’s Prometheus module to collect results from the Blackbox Exporter (prom/blackbox-exporter), which probes services using the /probe endpoint.

I want to probe internal service health endpoints (e.g., /health) using Blackbox and then collect the resulting metrics (probe_success, probe_duration_seconds, etc.) using Metricbeat, and send them to Elasticsearch.

In Prometheus, we added the following scrape config:

scrape_configs:

This setup worked perfectly.
But now I want to scrape the metrics using Metricbeat instead of Prometheus.

I tried to configure Metricbeat’s prometheus module like this:

metricbeat.modules:

Actual behavior: Metricbeat either:

  • Ignores the params: field entirely (query string not included in the request)
  • Fails with errors or timeouts (as it tries to scrape /probe without required target param)

Any suggestions?