Giter Site home page Giter Site logo

erlang-rrdtool's Introduction

About

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

You should probably use https://github.com/archaelus/errd instead.

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

Rebar

To use rrdtool in your projects, add a dependency to your rebar.config:

{deps, [{rrdtool, ".*",
         {git, "git://github.com/Vagabond/erlang-rrdtool.git"", "master"}}]}.

erlang-rrdtool's People

Contributors

afternoon avatar vagabond avatar

Watchers

James Cloos avatar Mariah Yang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.