This role deploys the Prometheus monitoring package on a device. The devices added to the monitoring list in prometheus.yml
are collected from the Ansible inventory file. The default groups are monitoring
and databases
. Customise these to suit your needs.
- A Slack API key
prometheus_user: prometheus
prometheus_group: prometheus
prometheus_release_version: latest
prometheus_config_dir: /etc/prometheus
prometheus_db_dir: /var/lib/prometheus
alert_manager_url: https://alerts.example.com
slack_alert_webhook_url: https://hooks.slack.com/services/WEBHOOK_HASH
---
- hosts: prometheus
roles:
- deploy-prometheus
GNUv3
This role was created by Dan Hand.