I use Graphite and Collectd to monitor my server. In particular, I use the tail pluggin to count failed SSH logins. I use a counter for this metric, so expect to see 1, 2, 3, 0, etc. For data points. However, what I see is 0.1, 0.2, 0.3, 0, etc. It seems to me that Graphite provides the number of seconds per second. I say this because my storage policy is one data point every 10 seconds for two hours. Thus, 1 failed entry in 10 seconds = 0.1 per second. I look at it on the chart. It looks like this:

Also, when I scale to the next retention level, the numbers are adjusted accordingly: so 1 bad login, which was shown as 0.1, is now shown as much less than that: 0.017 or something.
I do not think that this is due to the aggregation method used: even the finest data is disabled. How to get Graphite to treat this metric as a clean, raw counter?
Here is my storage-schemas.conf (storage policy):
[my_server] pattern = .* retentions = 10s:2h,1m:2d,30m:400d
Here is my prefab tail plugin configuration:
<Plugin "tail"> <File "/var/log/auth.log"> Instance "auth" <Match> Regex "sshd[^:]*: Failed password" DSType "CounterInc" Type "counter" Instance "sshd-invalid_user" </Match> </File> </Plugin>
And here is my write_graphite pluggin configuration (which sends data to graphite):
<Plugin write_graphite> <Node "my_server_name"> Host "localhost" Port "2003" Protocol "tcp" LogSendErrors true Prefix "collectd." #Postfix "" StoreRates true AlwaysAppendDS false EscapeCharacter "_" </Node> </Plugin>
I tried to set StoreRates false for write_graphite pluggin, but this did not work. This changed the behavior: when I performed one unsuccessful SSH input, this metric shows as 1. However, it did not fall to 0. When I made two more unsuccessful inputs, the metric appears to 3.
Also interesting: I also downloaded the pluggin users, which simply shows the number of registered users, and it works fine: shows 1 when I am connected to SSH, two when I reconnect to SSH, and back to 1 when I exit one SSH. For both StoreRates settings. So it seems that I want something. Maybe not with a tail pluggin, though.
These graphs show SSH logins with StoreRates false and the correct behavior for users.

Any ideas? Thanks,