This repository provides a demo site for prometheus, alertmanager, prometheus exporters, and grafana.
Site is provisioned with ansible running every day and on all commits to master branch. Everything is fully automated with travis ci pipeline. If you want to check ansible-playbook output, go to last build.
Have a look at configuration files in group_vars/.
Applications
All applications should be running on their default ports.
You can easily run such setup yourself without much knowledge how any part of this works. You just need to do two things:
Change ansible inventory
First of all you need to configure your inventory, ours is located in hosts file. Here you set up your target hosts by changing value of ansible_host variable. Also here you can exclude parts of this demo site, so if you don’t need our website, you just remove this part:
[web]
demo
Accordingly you can exclude grafana, prometheus.
Change passwords
For security measures we encrypted some of our passwords, but it is easy to use yours! You can do it by replacing a file located at group_vars/grafana/vault with following content:
Prometheus monitoring demo site
demo.prometheus.io
This repository provides a demo site for prometheus, alertmanager, prometheus exporters, and grafana. Site is provisioned with ansible running every day and on all commits to master branch. Everything is fully automated with travis ci pipeline. If you want to check
ansible-playbookoutput, go to last build.Have a look at configuration files in group_vars/.
Applications
All applications should be running on their default ports.
Important notice
Before running, golang is required to be installed on deployer machine (necessary to install random_exporter).
Most services can be accessed in two ways (links in Applications section. As an example, prometheus can be accessed via:
This workaround was needed to solve issue cloudalchemy/demo-site#13.
Run yourself
You can easily run such setup yourself without much knowledge how any part of this works. You just need to do two things:
Change ansible inventory
First of all you need to configure your inventory, ours is located in
hostsfile. Here you set up your target hosts by changing value ofansible_hostvariable. Also here you can exclude parts of this demo site, so if you don’t need our website, you just remove this part:Accordingly you can exclude grafana, prometheus.
Change passwords
For security measures we encrypted some of our passwords, but it is easy to use yours! You can do it by replacing a file located at
group_vars/grafana/vaultwith following content:Download the ‘random’ exporter binary
You will have to manually run
gocommand to download & copy therandomexporter binary toplaybooks/filesdirectory.GOPATHlocation. The value ofGOPATHcan be found by runninggo env|grep GOPATHcommand on your system.Run as usual Ansible playbook
demo site is deployed using Prometheus Community ansible roles.