Git Product home page Git Product logo

resourced-master's Introduction

GoDoc license Imgur Album

ResourceD Master receives server data from ResourceD agents and serves them as HTTP+JSON.

NOTE: This README provides a quick start guide. For comprehensive documentation, checkout the main website.

Signup

Hosts

Installation for users

  1. Install PostgreSQL 9.5.x

  2. Create PostgreSQL databases.

    # This example shows you how to create databases under resourced user.
    # Make sure user, password, and pg_hba.conf are configured correctly.
    sudo su - postgres
    createuser -P -e resourced
    createdb --owner=resourced resourced-master
    createdb --owner=resourced resourced-master-hosts
    createdb --owner=resourced resourced-master-ts-checks
    createdb --owner=resourced resourced-master-ts-events
    createdb --owner=resourced resourced-master-ts-executor-logs
    createdb --owner=resourced resourced-master-ts-logs
    createdb --owner=resourced resourced-master-ts-metrics
    
  3. Download the tar.gz, unpack it, and run the binary using init/systemd/supervisord. You can follow the examples of init scripts here.

Installation for developers/contributors

See INSTALL.md and BUILD.md

Configuration

ResourceD Master needs to know path to its configuration directory.

You can set it via -c flag or RESOURCED_MASTER_CONFIG_DIR environment variable.

The .tar.gz file provides you with a default config directory. In there, you will see the following files:

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

  • hosts.toml All settings related to storing hosts data.

  • metrics.toml All settings related to storing metrics data.

  • events.toml All settings related to storing events data.

  • logs.toml All settings related to storing logs data.

  • checks.toml All settings related to storing checks data.

RESTful Endpoints

Every HTTP request requires AccessToken passed as user. Example:

# Notice the double colon at the end of Access Token.
curl -u 0b79bab50daca910b000d4f1a2b675d604257e42: https://localhost:55655/api/hosts

For a comprehensive list of API endpoints, visit: resourced.io/docs

Querying

ResourceD offers SQL-like language to query your data. You can use it to query various data:

  • Hosts: by hostname, by tags, or by JSON path (Docs).

  • Logs: by hostname, by tags, or by full-text search (Docs).

Check out the docs for more info, visit: resourced.io/docs.

resourced-master's People

Contributors

didip avatar ldngo avatar poblahblahblah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

resourced-master's Issues

Could not start resourced-master

When i download resourced-master binary and try start

ERROR 42704: type "jsonb" does not exist in line 24, column 10:

20: CREATE TABLE hosts (
21: id BIGSERIAL PRIMARY KEY NOT NULL,
22: access_token_id bigint REFERENCES access_tokens (id),
23: name TEXT NOT NULL,
24: tags JSONB,
25: data JSONB
26: );
27:
28: CREATE INDEX idx_name on hosts (name);
29:

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.