ripienaar / graphite-graph-dsl

A small DSL to describe graphite graphs
http://www.devco.net/
Apache License 2.0
167 stars 43 forks source link

specify output format #17

Open jaredcurtis opened 12 years ago

jaredcurtis commented 12 years ago

Graphite supports multiple output formats as a administrator I should be able to specify the format I want my data displayed in. The list of formats can be found at http://graphite.readthedocs.org/en/0.9.10/render_api.html#format.

It would be nice to specify the default in config/gdash.yaml. Having the ability to override the default at the graph level would be even nicer.

Possible DSL title "CPU Usage" vtitle "percent" area :stacked description "CPU Usage" format :svg

ripienaar commented 12 years ago

presumably you're using the API? you can specify an output format when you call the url you can ask for a format:

% ruby -r rubygems -r graphite_graph -e 'p GraphiteGraph.new("basic.graph").url(:json)'

but per graph default might be interesting indeed

jaredcurtis commented 12 years ago

I'm actually not using the API just the DSL to create my various dashboards.

ripienaar commented 12 years ago

ah ok