servomac / oculus

A flask frontend for the stats provided by Docker API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oculus

A simple monitoring system for Docker. A dockerized small app (publisher) will consume periodically stats about resource usage of the running docker containers, polling the Docker API and storing the results in a redis container as a temporary storage. Flask, bootstrap and c3.js (a d3 wrapper) add some colour.

This is obviously still a work in progress. Docker API stats will 'only work when using the libcontainer exec-driver'[1].

preview

Architecture

pass

Configuration

pass

Set Up The Environment

Run Redis (to store stats timeseries):

 docker run --name redis -p 6379:6379 -d redis:3

Run Publisher (docker container with a cron that polls docker API every minute):

 docker run --rm -v /var/run/docker.sock:/var/run/docker.sock --link redis:db --name oculus_publisher oculus/publisher

Run Oculus web front:

(still working in a dockerized solution) python run.py

Then go to http://localhost:5000/

About

A flask frontend for the stats provided by Docker API


Languages

Language:HTML 45.4%Language:Python 43.0%Language:JavaScript 9.6%Language:Makefile 1.8%Language:CSS 0.2%