Giter Club home page Giter Club logo

csit-mon's Introduction

Purpose

This set of ansible playbooks deploy the components necessary to collect and visualize resource usage from servers using:

  • collectd
  • influxdb
  • grafana

It also deploys a log collection and query platform using:

  • logstash
  • elasticsearch
  • kibana

Playbooks organization

├── README.md
└── ansible
    ├── inventory
    │   └── static
    └── playbooks
        ├── collectd.yml
        ├── common.yml
        ├── elasticsearch.yml
        ├── fluentd.yml
        ├── grafana.yml
        ├── group_vars
        │   ├── common
        │   └── grafana
        ├── influxdb.yml
        ├── kibana.yml
        ├── logstash.yml
        ├── mon.yml
        ├── ntp.yml
        ├── roles
        │   ├── collectd
        │   │   ├── handlers
        │   │   │   └── main.yml
        │   │   ├── tasks
        │   │   │   └── main.yml
        │   │   └── templates
        │   │       └── collectd.conf.j2
        │   ├── collectd.retry
        │   ├── common
        │   │   ├── tasks
        │   │   │   └── main.yml
        │   │   └── templates
        │   │       └── hosts.j2
        │   ├── elasticsearch
        │   │   ├── handlers
        │   │   │   └── main.yml
        │   │   ├── tasks
        │   │   │   └── main.yml
        │   │   └── templates
        │   │       └── elasticsearch.yml.j2
        │   ├── fluentd
        │   │   ├── tasks
        │   │   │   └── main.yml
        │   │   └── templates
        │   │       └── td-agent.conf.j2
        │   ├── grafana
        │   │   ├── tasks
        │   │   │   └── main.yml
        │   │   └── templates
        │   │       └── grafana.ini.j2
        │   ├── influxdb
        │   │   ├── handlers
        │   │   │   └── main.yml
        │   │   ├── tasks
        │   │   │   └── main.yml
        │   │   └── templates
        │   │       └── influxdb.conf.j2
        │   ├── kibana
        │   │   ├── handlers
        │   │   │   └── main.yml
        │   │   ├── tasks
        │   │   │   └── main.yml
        │   │   └── templates
        │   │       └── kibana.yml.j2
        │   ├── logstash
        │   │   ├── files
        │   │   │   ├── logstash.repo
        │   │   │   ├── logstash.yml
        │   │   │   └── syslog.conf
        │   │   ├── handlers
        │   │   │   └── main.yml
        │   │   ├── tasks
        │   │   │   └── main.yml
        │   │   └── templates
        │   │       └── openstack.conf.j2
        │   ├── ntp
        │   │   ├── files
        │   │   │   └── ntp.conf
        │   │   ├── handlers
        │   │   │   └── main.yml
        │   │   └── tasks
        │   │       └── main.yml
        │   └── virl
        │       ├── handlers
        │       │   └── main.yml
        │       └── tasks
        │           └── main.yml
        └── virl.yml

roles

The roles are enclosed in the ansible/playbooks/roles directory. The provided roles are:

  • common: common applies to every hosts.
  • collectd: installs and configures collectd to collect metrics and ship them to influxdb
  • elasticsearch: installs and configures elasticsearch for indexing the platform logs
  • grafana: installs and configures grafana to query and visualize metrics
  • influxdb: installs and configures influxdb to store and query collected metrics
  • kibana: installs and configure kibana to query or browse logs stored and indexed by elasticsearch
  • logstash: installs and configures logstash to collect logs and ship them to elasticsearch
  • ntp: (Optional) installs ntp to synchronize clocks
  • virl: (Optional) customize virl installation (i.e. openstack services logs and verbosity)

Usage

the inventory file will be populated with the required targeted hosts information. Gathering hosts facts is a way to check the hosts connectivity from ansible.

$ ansible -i inventory/static -m setup all

Should return facts from every host in the inventory

The main playbook for an overall deployment across every hosts is the 'mon' playbook. It can be triggered as follows:

$ ansible-playbook -i inventory/static playbooks/mon.yml

This playbook will apply the following roles to the targeted servers

  • common
  • influxdb
  • collectd
  • grafana
  • elasticsearch
  • kibana

csit-mon's People

Contributors

krickwix 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.