X-Git-Url: https://git.xandkar.net/?p=beam_stats.git;a=blobdiff_plain;f=README.md;h=8c1ec4c75a91373cca9fc42678ce296c3c472b30;hp=09d28d3a736bb01ed053f8ee9902bc46389a1d23;hb=875ffc3ab4ea693fac1f3278b4c6429012158a89;hpb=b545475b0a1ae7d01648ba5798a803c97bf28582 diff --git a/README.md b/README.md index 09d28d3..8c1ec4c 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,35 @@ Essentially like `folsomite`, but better. Better in the following ways: conversions, as opposed to the nearly-arbitrary term-to-string conversions used in `folsomite` - Spec'd, tested and Dialyzed + +#### Configure consumers + +```erlang +{env, + [ {production_interval , 30000} + , {consumers, + [ {beam_stats_consumer_statsd, + [ {consumption_interval , 60000} + , {dst_host , "localhost"} + , {dst_port , 8125} + , {src_port , 8124} + ]} + , {beam_stats_consumer_graphite, + [ {consumption_interval , 60000} + , {host , "localhost"} + , {port , 2003} + , {timeout , 5000} + ]} + , {beam_stats_consumer_csv, + [ {consumption_interval , 60000} + , {path , "beam_stats.csv"} + ]} + + , {some_custom_consumer_module, + [ {foo, "abc"} + , {bar, 123} + ]} + + ]} + ]} +```