[erlang-questions] Need help with folsom usage

André Graf andre@REDACTED
Wed Jan 23 18:42:10 CET 2013

Hi Max

I guess you've found out how to create a meter e.g.
folsom_metrics:new_meter({meter, my_cool_meter}).
as a next step you update the meter e.g.
folsom_metrics:notify({{meter, my_cool_meter}, 1}).
and for reading out the value you would use e.g.
In the case of the meter, folsom internally calculates the mean rates
and exponentially weighted moving averages of your meter that you can
read out with the call above. That's it, if you want to have snapshots
on your metrics you have to do that by yourself (same holds for
graphing the data).

Hope this helped

On 23 January 2013 18:27, Max Lapshin <max.lapshin@REDACTED> wrote:
> Frankly speaking, I'm feeling myself an idiot. Folsom looks like a mature
> and cool tool, but I don't understand how can I use it.
> For example I want to receive history of measurements: traffic was 1 Mbit/s
> one minute ago, 3 mbits 2 minutes ago, etc..
> Also I want to take a look at graphic of average/median request times, but I
> can't find any examples in open source.
> On Wed, Jan 23, 2013 at 9:14 PM, Alexander Zhuravlev <a.zhuravlev@REDACTED>
> wrote:
>> On Wed, Jan 23, 2013 at 07:54:47PM +0300, Max Lapshin wrote:
>> > Hi.
>> >
>> > I want to use folsom for measuring page hits: response time stats and
>> > hit
>> > count.
>> >
>> > Is there any good example of code how to fetch data from folsom and send
>> > it
>> > in JSON to web-page?
>> You may want to check out https://github.com/boundary/folsom_webmachine
>> --
>> Alexander Zhuravlev
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list