Home

Awesome

Cloud Alchemy demo monitoring site

Build Status License IRC

DEPRECATION NOTICE

This site is deprecated in favor of demo.prometheus.io. Repository with current code is available at github.com/prometheus/demo-site.

All code stored here worked flawlessly as of 11 Jan 2020 and is left for historical purposes.

demo.cloudalchemy.org

This repository provides an integration testing suite for our ansible roles as well as a demo site for grafana, prometheus, alertmanager and node_exporter (possibly more in the future). Site is provisioned with ansible running every day and on almost 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 the configuration file group_vars/all/vars.

Applications

All applications should be running on their default ports.

App nameAddress (HTTP)Address (HTTPS)StatusUptime
node_exporterdemo.cloudalchemy.org:9100node.demo.cloudalchemy.orgnode_exporter_statusnode_exporter_uptime
snmp_exporterdemo.cloudalchemy.org:9116snmp.demo.cloudalchemy.orgsnmp_exporter_statussnmp_exporter_uptime
blackbox_exporterdemo.cloudalchemy.org:9115blackbox.demo.cloudalchemy.orgblackbox_exporter_statusblackbox_exporter_uptime
prometheusdemo.cloudalchemy.org:9090prometheus.demo.cloudalchemy.orgprometheus_statusprometheus_uptime
alertmanagerdemo.cloudalchemy.org:9093alertmanager.demo.cloudalchemy.orgalertmanager_statusalertmanager_uptime
grafanademo.cloudalchemy.org:3000grafana.demo.cloudalchemy.orggrafana_statusgrafana_uptime

Important notice

This repository consists of two playbooks:

Such setup causes that mose of services can be accessed in two ways. As an example, prometheus can be accessed via:

This workaround was needed to solve issue #13 and still provide a playbook which could be used by everyone - site.yml.

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 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, or influxdb.

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/all/vault with following content:

vault_grafana_password: <<INSERT_YOUR_GRAFANA_PASSWORD>>
vault_influxdb_password: <<INSERT_YOUR_INFLUXDB_PASSWORD>>

You need to specify both even if you don't use grafana nor influxdb. You can look over group_vars/all/vault to find why.

Run as usual Ansible playbook

# Download roles
ansible-galaxy install -r roles/requirements.yml

# Run playbook
ansible-playbook site.yml
# or when using vault encrypted variables
ansible-playbook --vault-id @prompt site.yml

DigitalOcean