Add monitoring role
This commit is contained in:
parent
dca17d5750
commit
d06406c9f4
17 changed files with 539 additions and 0 deletions
37
group_vars/monitoring.yaml
Normal file
37
group_vars/monitoring.yaml
Normal file
|
@ -0,0 +1,37 @@
|
|||
monitoring_domain: monitoring.bitlair.nl
|
||||
monitoring_bootstrap_cert: no
|
||||
acme_domains:
|
||||
- "{{ monitoring_domain }}"
|
||||
|
||||
prometheus_scrape_configs:
|
||||
- job_name: "node"
|
||||
static_configs:
|
||||
- targets:
|
||||
- "localhost:9100"
|
||||
- "bitlair.nl:9100"
|
||||
- "git.bitlair.nl:9100"
|
||||
- "mqtt.bitlair.nl:9100"
|
||||
- "pad.bitlair.nl:9100"
|
||||
- job_name: "mqtt"
|
||||
static_configs:
|
||||
- targets: [ "localhost:9883" ]
|
||||
- job_name: "blackbox"
|
||||
scrape_interval: 5m
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx] # Look for a HTTP 200 response.
|
||||
static_configs:
|
||||
- targets:
|
||||
- https://bitlair.nl
|
||||
- https://git.bitlair.nl
|
||||
- https://pad.bitlair.nl
|
||||
# Legacy
|
||||
- https://dashboard.bitlair.nl
|
||||
- https://wiki.bitlair.nl
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: "{{ blackbox_exporter_web_listen_address }}"
|
Loading…
Add table
Add a link
Reference in a new issue