2 VMs with docker installed. Also you should have ansible installed on your PC.
You should copy your ssh key to these servers under root user.
It can be done with ssh-copy-id command.
For deploying Grafana, Prometheus, Alertmanager and Thanos in HA mode do these actions:
- Clone repo
git clone https://github.com/digitalstudium/ha-prometheus.git
- Change
hosts.inifile. You should have exactly two hosts under[servers]group and asbitrary number of hosts inexportersgroup. - Add
tg_bot_tokenandtg_chat_idvariables if you want to get alerts to Telegram group. - Deploy monitoring
ansible-playbook playbook.yml -i hosts.ini --user rootThat's it!
After 5 minutes sor so you'll get Grafana installed on both hosts of servers group.
Default user/password admin/admin