Giter VIP home page Giter VIP logo

fluentd_dstat's Introduction

fluentd_dstat

Use dstat(docker) and fluentd(docker) to monitor system

Currently uses infoslack/dstat as input and a fluentd regex filter to parse the dstat output. The data is saved in elasticsearch and sent to kibana.

How to use

To clone this repository and run the docker-compose use the following commands

git clone https://github.com/akailash/fluentd_dstat.git
docker-compose up

This will spawn 4 docker containers locally:

infoslack/dstat 
    - Runs dstat command with the option "-tcm 5" collecting cpu and memory metrics every 5 seconds to fluentd logging driver)
fluentd
    - Builds and runs fluentd Dockerfile in ./fluentd/Dockerfile with the fluentd conf file ./fluentd/conf/fluent.conf
elasticsearch
kibana

If you want to change the dstat options to get a different output, please be sure to make corresponding changes to the regex filter in the fluentd conf file to parse the new output.

Note:

To connect to RabbitMQ server remotely, do not use the guest/guest login/passwd that is created by default. Make a new user with the following commands:

sudo rabbitmqctl add_user test test
sudo rabbitmqctl set_user_tags test administrator
sudo rabbitmqctl set_permissions -p / test ".*" ".*" ".*"

Also note that the elasticsearch and kibana containers have not been configured to limit memory usage. resource_limits should be set in the docker-compose as well as the corresponding env options if intending to use it for long periods of time.

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.