Skip to content

Instantly share code, notes, and snippets.

@muhamad-ridwant-tech
Created January 27, 2026 07:00
Show Gist options
  • Select an option

  • Save muhamad-ridwant-tech/70fa9a3bb26f224222a0dd8a4a9c5018 to your computer and use it in GitHub Desktop.

Select an option

Save muhamad-ridwant-tech/70fa9a3bb26f224222a0dd8a4a9c5018 to your computer and use it in GitHub Desktop.
Prometheus config for Blacbox-Exporter
scrape_configs:
- job_name: 'blackbox' ## Backbox-Exporter Config
metrics_path: /probe
params:
module: [http_2xx] # Module defined in blackbox.yml
static_configs:
- targets:
- https://i-3.co.id/ # Website 01
- https://fake-json-api.mock.beeceptor.com/users # Function 01
- https://fake-json-api.mock.beeceptor.com/companies # Function 02
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9115 # Blackbox exporter address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment