[erlang-questions] exometer: per-client connection counts
Alex Shneyderman
a.shneyderman@REDACTED
Wed May 21 17:30:15 CEST 2014
>
>
> Is this something that exometer (or something else) could help with?
>
> Alternatively, we're already using folsom+folsomite+graphite. Could I
> do this using those?
>
yes, you can:
5> folsom_metrics:new_counter(<<"test.0">>).
6> folsom_metrics:notify(<<"test.0">>, {inc, 1}).
7> folsom_metrics:notify(<<"test.0">>, {inc, 1}).
8> folsom_metrics:notify(<<"test.0">>, {inc, 1}).
9> folsom_metrics:get_metric_value(<<"test.0">>). 3
10> folsom_metrics:new_counter(<<"test.0">>).
{error,<<"test.0">>,metric_already_exists}
11> folsom_metrics:get_metric_value(<<"test.0">>).
3
so if you know how to identify your clients it is pretty easy to collect
the stats
with graphite you can qury for "test.*" to get all the counts
You can do pretty much teh same thing with exometer.
Cheers,
Alex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140521/52ca5c64/attachment.htm>
More information about the erlang-questions
mailing list