Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add rebar.config example to README.markdown

  • Loading branch information...
commit e4e272aa5ddb1da953e65a8421f8b797fac7e76b 1 parent 3786d7c
Ben Godfrey afternoon authored
Showing with 17 additions and 14 deletions.
  1. +17 −14 README.markdown
31 README.markdown
View
@@ -9,21 +9,24 @@ Usage
Creating a rrd (example #1 from the rrdcreate manpage):
-<pre>
-1> {ok, Pid} = rrdtool:start().
-{ok,<0.221.0>}
-2> rrdtool:create(Pid, "temperature.rrd", [{"temp", 'GAUGE', [600, -273, 5000]}],
- [{'AVERAGE', 0.5, 1, 1200}, {'MIN', 0.5, 12, 2400}, {'MAX', 0.5, 12, 2400},
- {'AVERAGE', 0.5, 12, 2400}]).
-ok
-</pre>
+ 1> {ok, Pid} = rrdtool:start().
+ {ok,<0.221.0>}
+ 2> rrdtool:create(Pid, "temperature.rrd", [{"temp", 'GAUGE', [600, -273, 5000]}],
+ [{'AVERAGE', 0.5, 1, 1200}, {'MIN', 0.5, 12, 2400}, {'MAX', 0.5, 12, 2400},
+ {'AVERAGE', 0.5, 12, 2400}]).
+ ok
Updating a RRD:
-<pre>
-3> rrdtool:update(Pid, "temperature.rrd", [{"temp", 50}]).
-ok
-4> rrdtool:update(Pid, "temperature.rrd", [{"temp", 75}], now()).
-ok
-</pre>
+ 3> rrdtool:update(Pid, "temperature.rrd", [{"temp", 50}]).
+ ok
+ 4> rrdtool:update(Pid, "temperature.rrd", [{"temp", 75}], now()).
+ ok
+Rebar
+=====
+
+To use rrdtool in your projects, add a dependency to your rebar.config:
+
+ {deps, [{rrdtool, ".*",
+ {git, "git@github.com:afternoon/erlang-rrdtool.git"", "master"}}]}.
Please sign in to comment.
Something went wrong with that request. Please try again.