Ansible role for deploying high available monitoring docker stack with Prometheus + Thanos + Alertmanger + Grafana
Go to file
Digital Studium f4102fc437 first commit 2023-03-19 21:49:03 +03:00
roles/ha-monitoring first commit 2023-03-19 21:49:03 +03:00
LICENSE first commit 2023-03-19 21:49:03 +03:00
README.md first commit 2023-03-19 21:49:03 +03:00
hosts.ini first commit 2023-03-19 21:49:03 +03:00
playbook.yml first commit 2023-03-19 21:49:03 +03:00

README.md

Ansible role with docker stack with high available Prometheus + Alertmanager + Thanos

Prerequisites

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.

Installation

For deploying Grafana, Prometheus, Alertmanager and Thanos in HA mode do these actions:

  1. Clone repo
git clone https://github.com/digitalstudium/ha-prometheus.git
  1. Change hosts.ini file. You should have exactly two hosts under [servers] group and asbitrary number of hosts in exporters group.
  2. Add tg_bot_token and tg_chat_id variables if you want to get alerts to Telegram group.
  3. Deploy monitoring
ansible-playbook playbook.yml -i hosts.ini --user root

That's it!

After 5 minutes sor so you'll get Grafana installed on both hosts of servers group. Default user/password admin/admin