Skip to content

Ansible playbook for deploying Prometheus monitoring host as well as exit node monitoring agents

License

Notifications You must be signed in to change notification settings

noisetor/monitoring

Repository files navigation

Setting up with Ansible

Start by getting ansible on your host:

http://docs.ansible.com/ansible/intro_installation.html#installing-the-control-machine

Add some ansible galaxy packages (may require sudo to install on your machine)

ansible-galaxy install antoiner77.caddy

Setup the ENV if you want to operate outside of the repo:

export ANSIBLE_REPO="$(git rev-parse --show-toplevel)"
export ANSIBLE_CONFIG="${ANSIBLE_REPO}/ansible/ansible.cfg"
export ANSIBLE_INVENTORY="${ANSIBLE_REPO}/ansible/hosts"
ls -l "${ANSIBLE_CONFIG}" "${ANSIBLE_INVENTORY}"

Check the connectivity

ansible all -m ping

Deploy

ansible-playbook site.yml

Setup hosts file

Setup a hosts file

[prometheus]
prometheus-server

[grafana]
grafana-server

Optional variables that you might need

node ansible_host=X.X.X.X go_arch=arm64

Submodules

This repo includes git submodules to vendor external source. You need to update them with this helper command.

./update-submodules.sh

About

Ansible playbook for deploying Prometheus monitoring host as well as exit node monitoring agents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages