# Configuring Graphite Charts

## Generally good info

[How to configure statsd and Graphite](https://matt.aimonetti.net/posts/2013/06/26/practical-guide-to-graphite-monitoring/)

## Bar Charts of Counts

To aggregate events over time in Graphite you can combine the usage of group(), sumSeries(), and summarize(). The group function pulls metrics into a single series, then sumSeries adds them up, then summarize aggregates them for an interval.

For example:

1 hour sums:

summarize(sumSeries(group(\*.in.count)),"1h") or

1 day sums

summarize(sumSeries(group(\*.in.count)),"1d") Then, to get the graph to look like you want (i.e. like a bar chart), you should set the "Line Mode" to Staircase Line and "Area Mode" to Stacked or All.
