Git Product home page Git Product logo

demo-site's Introduction

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.

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 name Address (HTTP) Address (HTTPS) Status Uptime
node_exporter demo.cloudalchemy.org:9100 node.demo.cloudalchemy.org node_exporter_status node_exporter_uptime
snmp_exporter demo.cloudalchemy.org:9116 snmp.demo.cloudalchemy.org snmp_exporter_status snmp_exporter_uptime
blackbox_exporter demo.cloudalchemy.org:9115 blackbox.demo.cloudalchemy.org blackbox_exporter_status blackbox_exporter_uptime
prometheus demo.cloudalchemy.org:9090 prometheus.demo.cloudalchemy.org prometheus_status prometheus_uptime
alertmanager demo.cloudalchemy.org:9093 alertmanager.demo.cloudalchemy.org alertmanager_status alertmanager_uptime
grafana demo.cloudalchemy.org:3000 grafana.demo.cloudalchemy.org grafana_status grafana_uptime

Important notice

This repository consists of two playbooks:

  • site.yml - which deploys basic prometheus/grafana stack without additional http proxies and with software listening on default ports
  • extras.yml - installs python, caddy http proxy, and setups random_exporter. This will allow HTTPS connections to services like prometheus. Before running it, golang is required to be installed on deployer machine.

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

  • http://demo.cloudalchemy.org:9090 - default way
  • https://prometheus.demo.cloudalchemy.org - workaround which in backgroud communicates with prometheus via insecure, "default" channel mentioned above

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

demo-site's People

Contributors

berekuk avatar lucab avatar paulfantom avatar porkepix avatar rdemachkovych avatar sachavg avatar superq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.