Skip to content

Stack monitoring via Prometheus, Graphite, ELK, Grafana

Notifications You must be signed in to change notification settings

gmoshiko/stack-monitoring

Repository files navigation

Monitor-Stack

Monitor-Stack build on Vagrant & Docker.

Description

THIS IS FOR DEMO ONLY.
it can be done in many ways. for example, you can use ansible_local with vagrant.
stack tool was build for internal use to check the stack while I was building it.
the stack tool is only checking some response code and regex. it can be edit and add more tests as needed.

in this stack you will find:

  • ELK Stack
  • Grafana Dashboard
  • Prometheus Server
  • Graphite

everything will be provisioned using the stacktool.py included in this repo.
The stack builds on top Ubuntu VM using Vagrant to provision, docker & Docker Swarm to run the services.
after installing the stack you can access it via http://localhost:port

Getting Started

Before starting, please install the dependencies

Dependencies

pip install requirements.txt
or
pip install requests

Installing & Executing program

to start working with the stack, you simply need to run stacktool.py up

git clone https://github.com/gmoshiko/stack-monitoring
cd stack-monitoring
chmod +x stacktool.py
./stacktool.py up

Help

  • check the interpreter on the script
  • grafana user|password admin|foobar
  • ports:
    9000 -> Grafana Dashboard
    9001 -> Prometheus Server
    9003 -> Graphite
    9005 -> Kibana Dashboard
    9006 -> ElasticSearch

in the end of the provision, you will get a message with everything you need.

./stacktool.py -h
./stacktool.py status
which python

Stacktool

Stacktool is built to maintaining and monitoring the stack.
for example, you can send any docker command and control the stack with '--cmd'

./stacktool.py docker --cmd ps

it can do even more advanced commands like that:

./stacktool.py docker --cmd 'logs 60cbbccec46d'

Options:

  • up - bring the stack up.
  • purge - deleting the stack.
  • status - health check the stack.
  • docker - using for docker commands.
  • vagrant - using for vagrant commands.

Authors

Moshiko Gueta [email protected]

Version History

  • 0.1
    • Initial Release

Acknowledgments

Reference

About

Stack monitoring via Prometheus, Graphite, ELK, Grafana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published