Rework prometheus blackbox monitoring configuration
* Use scrape_config_files correctly * Do not separate prometheus and blackbox exporter nodes * Add a http_2xx_selfsigned module for self-signed certs * Monitor missing services * Switch from CRLF to LF in prometheus.config.j2
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
- job_name: "blackbox"
|
||||
# managed by ansible
|
||||
|
||||
scrape_configs:
|
||||
|
||||
- job_name: "blackbox-public-https"
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx]
|
||||
@@ -9,10 +13,30 @@
|
||||
- https://mail.labolyon.fr
|
||||
- https://wiki.labolyon.fr
|
||||
- https://git.labolyon.fr
|
||||
- https://sso.labolyon.fr
|
||||
- https://chat.labolyon.fr
|
||||
- https://grafana.labolyon.fr
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: target
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: 127.0.0.1:9115 # The blackbox exporter's real hostname:port.
|
||||
|
||||
- job_name: "blackbox-internal-https"
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx_selfsigned]
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets:
|
||||
- https://octoprint.labolyon.dn42/login/
|
||||
- https://stickers.labolyon.dn42
|
||||
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 # The blackbox exporter's real hostname:port.
|
||||
|
||||
Reference in New Issue
Block a user