Giter VIP home page Giter VIP logo

deploy_monitor's Introduction

Despliegue de Grafana en host Bastion (+InfluxDB + CollectD + Plugins)

Descripcion

  • Este documento explica el proceso para ejecutar la instalación completa de un sistema de monitorización y alarmado basados en Grafana.
  • Empleamos CollectD desplegado en todos los nodos para la recolección de metricas
  • Las metricas son almacenadas en una base de datos de series en el bastion (InfluxDB)

(ver TODO.txt )

Pre-requisitos

El sistema operativo del nodo bastion debe ser CentOS/7

En este nodo bastion debemos instalar el repositorio EPEL y Ansible (ansible 2.7.10 o posterior)

[root@BASTION ~]# yum -y install epel-release
[root@BASTION ~]# yum -y install ansible

Debemos generar y distribuir la clave SSH en todos los nodos

[root@BASTION ~]# ssh-keygen -t rsa
[root@BASTION ~]# ssh-copy-id -i /root/.ssh/id_rsa root@<NODO>

Una vez configurado el inventario de hosts debemos probar la conexión con todos ellos

[root@BASTION ansible]# ansible all -i ./inventories/hosts.yml -m ping -o
BASTION | SUCCESS => {"changed": false, "ping": "pong"}
PROWEB02 | SUCCESS => {"changed": false, "ping": "pong"}
PROAPP02 | SUCCESS => {"changed": false, "ping": "pong"}
PROWEB01 | SUCCESS => {"changed": false, "ping": "pong"}
PROAPP01 | SUCCESS => {"changed": false, "ping": "pong"}
PROMSQL01 | SUCCESS => {"changed": false, "ping": "pong"}

Diagrama

alt text

Detalles

Inventario:

Debemos indicar los interfases de red que generarán métricas en InfluxDB para todos los hosts.

[bastion]
BASTION ansible_host=192.168.0.99 host_name=BASTION net_iface=eth1

Descarga de este proyecto

git clone https://github.com/antoniohernan/deploy_monitor.git

Despliegue

ansible-playbook -i ./inventories/hosts.yml ./install_monitoring.yml

Acceso a consola de Grafana

http://bastionhostip:3000

Usuario : admin

Clave : admin!

deploy_monitor's People

Contributors

antoniohernan avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

shefirot

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.