项目作者: sbouii

项目描述 :
set up a sever equiped with a monitoring solution Grafana + Prometheus + Cadvisor for monitoring the server infrastructure and the deployed containers on it.
高级语言:
项目地址: git://github.com/sbouii/monitoring_platform.git
创建时间: 2016-11-10T02:47:25Z
项目社区:https://github.com/sbouii/monitoring_platform

开源协议:Apache License 2.0

下载


monitoring_platform

Description

Spin up a production server using Vagrant and Docker for the automation of setting up the infrastructure and Ansible for the provisioning of the infrastructure.
the sever is equiped with a monitoring solution based on Grafana + Prometheus + Cadvisor for monitoring the production infrastructure and the running containers deployed on it.

For more informations about how to create Grafana Dashboards with prometheus and cadvisor https://logz.io/blog/prometheus-monitoring/

Workflow ( we will stick only to the slack notification)

image

Requirements

Software requirements

  • Python 3.5

  • Ansible 2.2 or higher

  • Vagrant 1.7 or higher

  • Virtualbox 5.1

    Necessary Ansible roles

All the necessary ansible roles that are used for the server configuration are indicated in the requirements.yml file.
I have developed the ansible roles responsible for the required monitoring goals, precisely Grafana role and Prometheus role .

Supported systems

  • centos 7
  • ubuntu 16.04

Usage

the vagrantfile describes the configuration of the virtual machines to set up .

to use vagrantafile you have to do the following :

  1. Download and Install VirtualBox
  2. Download and Install Vagrant
  3. Install Ansible version >= 2.3.
  4. Open a shell prompt and cd into the folder containing the Vagrantfile
  5. Run the following command to install the necessary Ansible roles for this profile: $ ansible-galaxy install -r requirements.yml

then you can simply setup the server by typing vagrant up.

Final Docker-Host-Containers Dashboard