Add new roles for monitoring
This commit is contained in:
18
ansible/roles/prometheus/templates/scrape-blackbox.yml
Normal file
18
ansible/roles/prometheus/templates/scrape-blackbox.yml
Normal file
@ -0,0 +1,18 @@
|
||||
- job_name: "blackbox"
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx]
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets:
|
||||
- https://labolyon.fr
|
||||
- https://mail.labolyon.fr
|
||||
- https://wiki.labolyon.fr
|
||||
- https://git.labolyon.fr
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: target
|
||||
- target_label: __address__
|
||||
replacement: 127.0.0.1:9115 # The blackbox exporter's real hostname:port.
|
Reference in New Issue
Block a user