-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoverview.edoc
44 lines (27 loc) · 1.18 KB
/
overview.edoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
** this is the overview.doc file for the application 'ecount' **
@author Maxim Fedorov
@copyright Maxim Fedorov <maximfca@gmail.com>
@version 0.1.0
@title ecount: Simple Erlang counters, dynamically named.
@doc
This application is supposed to be used as a part of another project that requires counters/gauges support.
== ecount ==
Simple Erlang counters, dynamically named.
Build with rebar3:
rebar3 compile
OTP versions support: 21.2 and above.
== Usage ==
This application is supposed to be used as a part of another project that requires counters/gauges support.
In rebar.config file, add depdency to ```{deps, [ecount]}'''.
To bump the counter, use
ecount:count(CounterName).
To get a single counter, use
ecount:get(CounterName).
To fetch full map of counters with names and values, use
ecount:all().
## Planned features
This application is merely an example, missing many features needed for proper integration. There are plans to add:
* name normalisation (e.g. 'counter.name', <<"counter.name">> and "counter.name" should be one counter)
* composite names and aggregation ({aggregate, counter})
* gauges
* integration with external systems