tuupola / terraform-ansible-swarm

Deploying Docker swarm with Terraform and Ansible
0 stars 0 forks source link

Add monitoring stack #11

Closed tuupola closed 1 year ago

tuupola commented 1 year ago

Domain defaults to localhost which can be used when testing. Otherwise set to your own domain. You most likely also want to install node exporter to all nodes.

$ DOMAIN=example.com docker stack deploy -c monitoring.yaml monitoring
$ ansible-playbook -v node_exporter.yaml

https://prometheus.example.com/ https://grafana.example.com/

Dashboards are not automatically installed. You should install at least Node Exporter Full dashboard.

https://grafana.com/grafana/dashboards/1860-node-exporter-full/