Git Product home page Git Product logo

GoDoc license

ResourceD: A single binary daemon that collects and report your server data with ease.

NOTE: This documentation refers to master branch. For stable release, checkout the main website.

Installation

  1. Download the binary release here.

  2. Use supervisor/upstart/systemd to daemonize. Click here for examples.

Running the Server

RESOURCED_CONFIG_DIR=$GOPATH/src/github.com/resourced/resourced/tests/resourced-configs \
$GOPATH/bin/resourced

Once you executed the command above, open this URL: http://localhost:55555/paths.

curl -X GET -H "Content-type: application/json" http://localhost:55555/r/load-avg

Configuration

ResourceD requires only 1 environment variable to run.

RESOURCED_CONFIG_DIR: Path to root config directory. If directory does not exist, it will be created.

In there, you will see the following subdirectories or files:

  • readers/ Put all the TOML configurations for readers here (Example).

  • writers/ Put all the TOML configurations for writers here (Example).

  • executors/ Put all the TOML configurations for executors here (Example).

  • tags/ Each line in each file will be parsed as key=value tag (Example).

  • general.toml All default settings are defined in general.toml.

Data Gathering

ResourceD readers gather data on your server. The easiest way to create a reader is to use a scripting language.

  1. Write the script following this one requirement: Output the JSON data through STDOUT

  2. Write config file. Click here for examples.

For more info, follow this link.

RESTful Endpoints

  • GET / Displays full JSON data of all readers and writers.

  • GET /paths Displays paths to all readers and writers data.

  • GET /r Displays full JSON data of all readers.

  • GET /r/paths Displays paths to all readers data.

  • GET /w Displays full JSON data of all writers.

  • GET /w/paths Displays paths to all writers data.

Third Party Data Source

Here are list of 3rd party data source that ResourceD use. Big thanks to these authors, without whom this project would not be possible.

Contributors

Are you a contributor, or looking to be one? Go here!

ResourceD's Projects

resourced icon resourced

A single binary daemon that collects and report your server data with ease.

tail icon tail

This is a fork of github.com/hpcloud/tail

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.