Sample project to explore monitoring Vault and Consul with telegraf/influxdb/grafana
This project uses Vagrant and VirtualBox to spin up a Vault cluster and a Consul cluster on your own machine, with telemetry collected by Telegraf and forwarded to InfluxDB and Grafana for analysis.
Make sure you have the enterprise binaries for Vault and Consul. The filenames should look similar to this:
consul-enterprise_1.0.5+ent_linux_amd64.zip
vault-enterprise_0.9.3+prem_linux_amd64.zip
Clone this project from Github.
Place the Consul and Vault binaries into the project folder.
Install the vagrant-hosts
plugin: vagrant plugin install vagrant-hosts
Run vagrant up
and wait a while.
Log into one of the Vault servers and initialize the cluster:
$ vagrant ssh vault0
export VAULT_ADDR=http://localhost:8200
vault operator init
vault operator unseal ...
vault_cluster_health.json
and
import it. Do the same for consul_cluster_health.json
.