Slug: sparklines-from-graphite Date: 2012-02-16 layout: post Title: Sparklines from Graphite date: 2012-02-16 14:25 comments: true categories:

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)
Edit on Github