Eliezer Croitoru c8e9cc2cc9 1
2024-06-18 18:53:38 +03:00

79 lines
2.4 KiB
YAML

# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
- job_name: 'blackbox-tcp'
metrics_path: /probe
params:
module: [tcp_connect]
scrape_interval: 30s
scrape_timeout: 20s
http_sd_configs:
- url: "http://web/blackbox/blackbox-tcp.json"
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox:9115 # Blackbox exporter.
- job_name: 'blackbox-icmp'
metrics_path: /probe
params:
module: [icmp]
scrape_interval: 30s
scrape_timeout: 20s
http_sd_configs:
- url: "http://web/blackbox/blackbox-icmp.json"
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- source_labels: [hostname]
target_label: __param_target
- target_label: __address__
replacement: blackbox:9115 # Blackbox exporter.
- job_name: 'blackbox-http_2xx_3xx_403'
metrics_path: /probe
params:
module: [http_2xx_3xx_403]
scrape_interval: 30s
scrape_timeout: 20s
http_sd_configs:
- url: "http://web/blackbox/blackbox-http_2xx_3xx_403.json"
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox:9115 # Blackbox exporter.
- job_name: 'blackbox-tcp_connect_tls'
metrics_path: /probe
params:
module: [tcp_connect_tls]
scrape_interval: 30s
scrape_timeout: 20s
http_sd_configs:
- url: "http://web/blackbox/blackbox-tcp_connect_tls.json"
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox:9115 # Blackbox exporter.