Raspberry-Pi-IaC/roles/monitoring/vars/main/defaults.yml
Thomas Kleinendorst ca3da210d2 Enable processes node collector
I downloaded a Grafana dashboard which makes use
of the metrics collected here. After applying the change
this works wonderfully.
2024-09-18 15:34:24 +02:00

33 lines
976 B
YAML

---
# Prometheus
prometheus_version: "2.54.1"
prometheus_targets:
node:
- targets:
- raspberry-pi-1.kleinendorst.info:9100
prometheus_alertmanager_config:
- static_configs:
- targets:
- raspberry-pi-1.kleinendorst.info:9093
# Node exporter
node_exporter_version: "1.8.2"
node_exporter_enabled_collectors:
- systemd
- {"textfile": {"directory": "{{ node_exporter_textfile_dir }}"}}
- processes
# Alertmanager
alertmanager_version: "0.27.0"
# Telegram configuration inspired by this source:
# https://www.stranatesta.eu/tech/how-to-configure-prometheus-alertmanager-to-send-alerts-to-telegram/#configure-alertmanager
alertmanager_receivers:
- name: telegram
telegram_configs:
- bot_token: "{{ telegram_bot_token }}"
api_url: 'https://api.telegram.org'
chat_id: "{{ telegram_chat_id }}"
parse_mode: ''
alertmanager_route:
receiver: telegram
# Grafana
grafana_version: "11.2.0"
grafana_username: grafana