Ansible playbooks for setting up Prometheus monitoring system and configuring monitoring nodes.
- Prometheus
- Alertmanager
- node_exporter
- blackbox_exporter
- TODO: postgres_exporter
The local setup provision a Prometheus server and another server with node_exporter
installed.
- Configure the prometheus server and test client server in
vagrant.default.yml
- Run
vagrant up
For remote setup, an Ubuntu 16.04 Xenial server is required for Prometheus server. Additional servers can be added to the node
group to install node_exporter
.
Besides that, remote servers also need to have at least Python installed for Ansible.
- Configure hosts in
hosts/production
- Configure variables in
group_vars/production
- Run playbook with
ansible-playbook --inventory-file=hosts/production --sudo -v playbook.yml