GithubHelp home page GithubHelp logo

kovetskiy / go.d.plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netdata/go.d.plugin

0.0 2.0 0.0 4.72 MB

netdata go.d.plugin

License: GNU General Public License v3.0

Shell 0.49% Makefile 0.14% Go 99.26% Dockerfile 0.04% Java 0.08%

go.d.plugin's Introduction

go.d.plugin

CircleCI

go.d.plugin is a netdata external plugin. It is an orchestrator for data collection modules written in go.

  1. It runs as an independent process ps fax shows it.
  2. It is started and stopped automatically by netdata.
  3. It communicates with netdata via a unidirectional pipe (sending data to the netdata daemon).
  4. Supports any number of data collection modules.
  5. Allows each module to have any number of data collection jobs.

Install

Shipped with netdata.

Contributing

If you have time and willing to help, there are a lof of ways to contribute:

Available modules

* - disabled by default.

Why disabled? How to enable?

We are in process of migrating collectors from python to go.

Configurations are incompatible. All rewritten in go modules are disabled by default. This is a temporary solution, we are working on it.

To enable module please do the following:

  • explicitly disable python module in python.d.conf
  • explicitly enable go module in go.d.conf
  • move python module jobs to go module configuration file (change syntax, see go module configuration file for details).
  • restart netdata.service

If case of problems:

  • check error.log for module related errors (grep <module name> error.log)
  • run plugin in debug mode

Configuration

go.d.plugin itself can be configured using the configuration file /etc/netdata/go.d.conf (to edit it on your system run /etc/netdata/edit-config go.d.conf). This file is a BASH script.

Configurations are written in YAML.

How to debug a go module

Plugin CLI:

Usage:
  go.d.plugin [OPTIONS] [update every]

Application Options:
  -d, --debug    debug mode
  -m, --modules= modules name (default: all)
  -c, --config=  config dir

Help Options:
  -h, --help     Show this help message

Specific module debug:

# become user netdata
sudo su -s /bin/bash netdata

# run plugin in debug mode
./go.d.plugin -d -m <module name>

Change <module name> to the module name you want to debug. See the whole list of available modules.

go.d.plugin's People

Contributors

ilyam8 avatar wing924 avatar paulfantom avatar cakrit avatar kovetskiy avatar kataras avatar paulkatsoulakis avatar tru2dagame avatar

Watchers

James Cloos avatar  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.