Giter VIP home page Giter VIP logo

graph-index's Introduction

Graph Index

If you are using Graphite & Diamond, graph-index will help you to build a wonderful index view !

  • support regex search
  • some pre-defined dashboard
  • easily hack and a few lines of code

Screenshot

Screenshot Screenshot Screenshot

#Running

First:

git clone https://github.com/douban/graph-index.git
cd graph-index

edit the config.py to modify graphite_url, in our case it is http://graphite.intra.douban.com

then:

as a dependency, you should add a cron to update metrics like this: crontab -e, and put */5 * * * * python /path/to/update-metrics.py in it

finally:

now everything is ready, we can run it by:

./graph-index.py

graph-index also supports multi-workers with tools like gunicorn, In my case, I started it like this:

cd graph-index
/usr/bin/gunicorn -w 5 app:'default_app()' -b 0.0.0.0:8808

Grammar

regex will draw a graph for each metric, for example: servers.[^\.]+.loadavg.01$

plugin:server:regex will display a graph with all metrics on hostname,for example: plugin:cpu:hostname

merge:regex will merge matched metrics in a single graph, for example: merge:.*loadavg\.01$

group\s*by\s*\-?\d+ will draw multiple graphs group by the \-?\d+-th field, for example: loadavg\.01$ groupby1

graph-index's People

Contributors

sykp241095 avatar dongweiming avatar yaogangqiang avatar

Watchers

jlong ma 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.