Provision a complete Graphite, StatsD & Grafana install using Ansible and (optionally) Vagrant
MIT License
This playbook makes it really easy to setup Graphite, StatsD(aemon) and Grafana on a server (VPS or Dedicated). You can also optionally install it on a Virtual Machine using Vagrant so you can play around with it. It uses Ansible, a great configuration management tool written in Python, to automatically install the applications and all dependencies and configure everything to work optimally.
What gets installed:
If you want to install Graphite on a VM using Vagrant, you first need to install Vagrant and a Virtual Machine provider of choice (VirtualBox is free and works out of the box with Vagrant).
You can configure your install by modifying the variables in the monitoring.yml file before provisioning.
Then:
$ git clone https://github.com/DandyDev/graphite-statsd-ansible-vagrant
$ cd /path/to/graphite-statsd-ansible-vagrant
$ vagrant up
By default, the Vagrant box runs Ubuntu 16.04, but the playbook supports Debian 8 and CentOS 7 as well! To try those out, uncomment the appropriate lines in the Vagrantfile and comment out the Ubuntu lines.
You can of course also use the playbook without Vagrant. In that case you must provide your own inventory file specifying the host on which to install Sentry. The playbook has been tested on Ubuntu 16.04, Debian 8 and CentOS 7. Other flavors of Linux might work as well.
On production environments you will want to set the secret_key
setting under the graphite
namespace to a unique key that acts as a signing token. Generate a secret key for here
The playbook will automatically create a superuser for Graphite with credentials admin / admin
. Don't forget to change those!
If you have any suggestions, feel free to create an issue here on Github and/or fork this repo, make changes and submit a pull request!