Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An erlang interface to rrdtool
Erlang
tree: 3786d7c0a3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ebin
src
.gitignore
README.markdown
Rakefile

README.markdown

About

Erlang-rrdtool is a simple module to allow rrdtool to be treated like an erlang port via its 'remote control' mode (rrdtool -).

Usage

Creating a rrd (example #1 from the rrdcreate manpage):

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:

3> rrdtool:update(Pid, "temperature.rrd", [{"temp", 50}]).
ok
4> rrdtool:update(Pid, "temperature.rrd", [{"temp", 75}], now()).
ok
Something went wrong with that request. Please try again.