Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Home

ripienaar edited this page · 17 revisions

Overview

This is a DSL that makes it easier for you to create URLs for the Graphite URL API

The point of this is to facilitate the creation of Dashboards and such where you need to interact with the URL API. Your users can describe graphs using the DSL rather than type URLs.

This DSL will eventually have many helper functions that can automatically create complex graphs. For example one line in the graph definition can create a graph with 4 items on it using the Holt Winters Forecast method. More helpers will be added over time. This is significantly simpler than creating these multi element graphs by hand using the normal API.

This DSL is in use in my GDash dashboard where you can describe graphs for display on dashboards using it. Using a framework like this in your dashboard will make it easier to have a consistent look and feel over your graphs, something that is very important in complex visualizations.

A quick example is in order, to create a complex multi part graph like below:

example.png

you only need to create a simple description like below:

title          "Male Site Users - Aberration"
vtitle         "users"
from           "-12hours"
hide_legend    true

forecast :male, :data => "sumSeries(*.site.users.male)",
                :alias => "Male",
                :aberration_line => true,
                :aberration_second_y => true

This framework will create the URLs you need to access to produce the graphs.

Reference

Basic Graphs:

Graph Item Creation Helpers:

Monitoring

Ruby Usage

Something went wrong with that request. Please try again.