Giter VIP home page Giter VIP logo

monitoring-cpang's Introduction

monitoring-cpang

cAdvisor, Prometheus, Alertmanager, Node-Exporter, Grafana

How to use this

Note: Dependent service Traefik is required, if you don't use traefik, you can find a deploy without traefik

Get the sources:

$ git clone https://github.com/bekkerstacks/monitoring-cpang
$ cd monitoring-cpang

Dependency: Traefik

Get Traefik, by default it uses SSL

See all configuration options here:

  • requires your domain name as env var DOMAIN="" defaults to localhost
$ wget -O docker-compose.traefik.yml https://raw.githubusercontent.com/bekkerstacks/traefik/master/docker-compose.yml

Authentication

Services that do not come with authentication endpoints, is protected by basic auth and by default is (admin/admin).

To override:

$ htpasswd -c htpasswd <username>

Deploy Traefik and CPANG

This will deploy Traefik and a Fresh CPANG stack:

$ export DOMAIN="localhost" # services will use traefik.localhost in this case
$ docker stack deploy -c docker-compose.traefik.yml proxy
$ docker stack deploy -c docker-compose.yml mon

Alternative Versions:

a Stack with HTTP Endpoints:

# traefik needs to be running
$ docker stack deploy -c alt_versions/docker-compose_http.yml http_mon

a Stack without Traefik:

$ docker stack deploy -c alt_versions/docker-compose_no_traefik.yml notraefik_mon

If you want a stack with prepopulated dashboards::

# traefik needs to be running
$ docker stack deploy -c alt_versions/docker-compose_with_dashboards.yml dash_mon

CPANG Stack with MySQL, MySQL Exporter and Dashboards:

# traefik needs to be running
$ docker stack deploy -c alt_versions/docker-compose_http_with_dbs.yml dbs_mon

Endpoints:

  • Grafana: grafana.${DOMAIN}
  • Alertmanager: alertmanager.${DOMAIN}
  • Prometheus: prometheus.${DOMAIN}
  • Traefik: traefik.${DOMAIN}

Configuration

Look at the wiki for tutorials on how to add datasources and dashboards

Extra Dashboard Links:

Traefik:

Docker:

monitoring-cpang's People

Contributors

bekkerstacks avatar ruanbekker 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.