monkinetic weblog

Steve Ivy's Weblog - Since 1999 - XII Ed.

Sparklines From Graphite

I decided I wanted sparklines for an app dashboard I’m working on, and wondered if I could get them straight from Graphite’s URL API. Turns out you can:

Data Courtesy of Etsy

http://your.graphite.example.com/render\
?from=-2hours\
&height=20\
&until=now\
&width=120\
&hideGrid=true\
&hideLegend=true\
&hideAxes=true\
&bgcolor=white
&fgcolor=black\
&margin=0\
&colorList=black\
&target=alias(stats.your.metric.here)

My name is Steve Ivy and I write about technology, the open web, social software, and general nerdity on monkinetic.com. You should follow me on Twitter or subscribe to this blog if you like what you're reading. I spend my days hacking Movable Type, python, Django, and various other efforts at Wallrazer. This is my personal site.