Using statsd, configured with flushInterval: 1000
and communicating with graphite's carbon-cache. I wish I can see very occasional counters.
I have the following configuration for carbon:
storage-schemas.conf:
[carbon]
pattern = ^carbon\.
retentions = 60:90d
[default_30s_for_1day]
pattern = .*
retentions = 30s:1d
Sending a unique counter that way:
$ echo "foobar:1|c" > /dev/udp/127.0.0.1/8125
I can see the packet received by statsd:
9 Jul 14:43:05 - DEBUG: foobar:1|c
as well as the data sent to carbon-cache (tcpdump extract):
stats.foobar 1 1404909785
In graphite, looking at data for "foobar" I can see that something happened at that moment (thin line, see red circle in picture), but the result is always on "0":
Am I missing something?
If there is much more frequent results, then I can see numbers that looks correct.
Is there a minimum amount of stats to be sent to be taken into account? Is it configurable?
Note: Maybe for such occasional data StatsD / Graphite is not worth but since there are other very frequent data collected for the same project, those will be used anyway and hope one unique solution can be used, even for rare counters.