My version of function logstashHits() for graphite. Original: https://gist.github.com/jordansissel/3760225
My fix is needed if you have values = 0 between start and end time.
E.g: nginx access log, and for certain period of time there aren't any request: should be: