Make it work with graphite, add possibility to specify counter path and format