Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
StatsD erlang client.
Erlang
tree: ca76585e88

Optimization for random seeding

Only seed when no good seed is present in the process calling.
latest commit ca76585e88
@ferd authored
Failed to load latest commit information.
src Optimization for random seeding
.gitignore Adding support for basekey
LICENSE Initial commit
Makefile Initial commit
README.md Added support for gauges
rebar Initial commit

README.md

Statsderl

Installation

$ make

Usage

application:start(statsderl).

Increment

statsderl:increment("test.increment", 1, 0.5).

Decrement

statsderl:decrement("test.decrement", 1, 0.5).

Timing

statsderl:timing("test.timing", 5, 0.5).

Timing now

Timestamp = erlang:now(),
statsderl:timing_now("test.timing", Timestamp, 0.5).

Gauge

statsderl:gauge("test.gauge", 333, 1.0).

Base Key

For multi-node setups, it might be useful to be able to define a basic key based on the current node name, for example. Statsderl supports doing so by setting the app variable base_key to some iolist:

application:set_env(statsderl, base_key, "my_node_name")

No need to split the keys -- the . as a separator is added automatically.

Something went wrong with that request. Please try again.