Skip to content

Commit

Permalink
Adding a readme file that gives a basic example of the libraries func…
Browse files Browse the repository at this point in the history
…tionality.
  • Loading branch information
archaelus committed Aug 8, 2007
1 parent c689502 commit 692834e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/README
@@ -0,0 +1,11 @@
The command below uses errd_command:create to generate a #rrd_create
command based on a filename, a data source name and a data source
type. It then turns this into a string that can be used to drive rrdtool.

erl -pa ebin -eval 'io:format("~s~n", [errd_command:format(errd_command:create("foo.rrd", "foos", counter))]).' -s init stop

"create foo.rrd --step 300 DS:foos:COUNTER:900:0:U "
"RRA:AVERAGE:0.5:1:288 RRA:AVERAGE:0.5:12:168 RRA:AVERAGE:0.5:288:365 "
"RRA:MIN:0.5:1:288 RRA:MIN:0.5:12:168 RRA:MIN:0.5:288:365 "
"RRA:MAX:0.5:1:288 RRA:MAX:0.5:12:168 RRA:MAX:0.5:288:365 "
"RRA:HWPREDICT:2016:0.1:0.0035:288"

0 comments on commit 692834e

Please sign in to comment.