go.d.plugin

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2019 License: GPL-3.0

README

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.

Directories

Path Synopsis
cmd
modules
pkg
matcher
Package matcher implements vary formats of string matcher.
Package matcher implements vary formats of string matcher.
stm
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL