ansible/group_vars/monitoring.yaml
2024-12-02 21:57:47 +01:00

53 lines
1.5 KiB
YAML

monitoring_domain: dashboard.bitlair.nl
monitoring_bootstrap_cert: no
acme_san_domains:
- ["{{ monitoring_domain }}"]
group_nft_input:
- "tcp dport { http, https } accept # Allow web-traffic from world"
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"
- "blockchain.bitlair.nl:9100"
- "bank.bitlair.nl:9100"
- "lights.bitlair.nl:9100"
- "music.bitlair.nl:9100"
- "service.bitlair.nl:9100"
- "user.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
- https://user.bitlair.nl
# Legacy
- https://wiki.bitlair.nl
- https://portal.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 }}"
nginx_sites:
- server_name: "dashboard.bitlair.nl"
localproxy: "9000"
snippets:
- "prometheus-nginx.j2"