• This repository has been archived on 27/Mar/2024
  • Stars
    star
    161
  • Rank 225,896 (Top 5 %)
  • Language
    Go
  • License
    GNU General Publi...
  • Created about 6 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

netdata go.d.plugin

go.d.plugin

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.

Bug reports, feature requests, and questions

Are welcome! We are using netdata/netdata repository for bugs, feature requests, and questions.

Install

Go.d.plugin is shipped with Netdata.

Required Linux capabilities

All capabilities are set automatically during Netdata installation using the official installation method. No further action required. If you have used a different installation method and need to set the capabilities manually, see the appropriate collector readme.

Capability Required by
CAP_NET_RAW Ping
CAP_NET_ADMIN Wireguard

Available modules

Name Monitors
activemq ActiveMQ
apache Apache
bind ISC Bind
cassandra Cassandra
chrony Chrony
cockroachdb CockroachDB
consul Consul
coredns CoreDNS
couchbase Couchbase
couchdb CouchDB
dnsdist Dnsdist
dnsmasq Dnsmasq DNS Forwarder
dnsmasq_dhcp Dnsmasq DHCP
dns_query DNS Query RTT
docker Docker Engine
docker_engine Docker Engine
dockerhub Docker Hub
elasticsearch Elasticsearch/OpenSearch
energid Energi Core
envoy Envoy
example -
filecheck Files and Directories
fluentd Fluentd
freeradius FreeRADIUS
haproxy HAProxy
hdfs HDFS
httpcheck Any HTTP Endpoint
isc_dhcpd ISC DHCP
k8s_kubelet Kubelet
k8s_kubeproxy Kube-proxy
k8s_state Kubernetes cluster state
lighttpd Lighttpd
logind systemd-logind
logstash Logstash
mongoDB MongoDB
mysql MySQL
nginx NGINX
nginxplus NGINX Plus
nginxvts NGINX VTS
ntpd NTP daemon
nvme NVMe devices
openvpn OpenVPN
openvpn_status_log OpenVPN
pgbouncer PgBouncer
phpdaemon phpDaemon
phpfpm PHP-FPM
pihole Pi-hole
pika Pika
ping Any network host
prometheus Any Prometheus Endpoint
portcheck Any TCP Endpoint
postgres PostgreSQL
powerdns PowerDNS Authoritative Server
powerdns_recursor PowerDNS Recursor
proxysql ProxySQL
pulsar Apache Pulsar
rabbitmq RabbitMQ
redis Redis
scaleio Dell EMC ScaleIO
SNMP SNMP
solr Solr
squidlog Squid
springboot2 Spring Boot2
supervisord Supervisor
systemdunits Systemd unit state
tengine Tengine
traefik Traefik
unbound Unbound
vcsa vCenter Server Appliance
vernemq VerneMQ
vsphere VMware vCenter Server
web_log Apache/NGINX
wireguard WireGuard
whoisquery Domain Expiry
windows Windows
x509check Digital Certificates
zookeeper ZooKeeper

Configuration

Edit the go.d.conf configuration file using edit-config from the Netdata config directory, which is typically at /etc/netdata.

cd /etc/netdata # Replace this path with your Netdata config directory
sudo ./edit-config go.d.conf

Configurations are written in YAML.

Enable a collector

To enable a collector you should edit go.d.conf to uncomment the collector in question and change it from no to yes.

For example, to enable the example plugin you would need to update go.d.conf from something like:

modules:
#  example: no 

to

modules:
  example: yes

Then restart netdata for the change to take effect.

Contributing

If you want to contribute to this project, we are humbled. Please take a look at our contributing guidelines and don't hesitate to contact us in our forums.

How to develop a collector

Read how to write a Netdata collector in Go.

Troubleshooting

Plugin CLI:

Usage:
  orchestrator [OPTIONS] [update every]

Application Options:
  -m, --modules=    module name to run (default: all)
  -c, --config-dir= config dir to read
  -w, --watch-path= config path to watch
  -d, --debug       debug mode
  -v, --version     display the version and exit

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

To debug specific module:

# 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.

Netdata Community

This repository follows the Netdata Code of Conduct and is part of the Netdata Community.

More Repositories

1

netdata

The open-source observability platform everyone needs!
C
67,926
star
2

helmchart

Helm chart for kubernetes deployments
Mustache
159
star
3

dashboard

Netdata Agent v1 Dashboard (deprecated)
JavaScript
66
star
4

community

Netdata-powered applications and examples. For the community, by the community.
Jupyter Notebook
64
star
5

go-statsd

A simple, efficient StatsD Client for Go.
Go
59
star
6

kernel-collector

Linux Kernel eBPF Collectors
C
58
star
7

netdata-cloud

The public repository of Netdata Cloud. Contribute with bug reports and feature requests.
37
star
8

netdata-ui

netdata-uikit
JavaScript
33
star
9

learn

A public site to learn about Netdata built on Docusaurus 2
JavaScript
31
star
10

netdata-grafana-datasource-plugin

Netdata Grafana Datasource Plugin
TypeScript
27
star
11

netdata-demo-site

Scripts to create a netdata-demo-site
Shell
21
star
12

libjudy

Fork of the Judy C library for dynamic array originally imported from the SF project https://sourceforge.net/projects/judy/ with patches applied for build and bug fixes.
C
20
star
13

msi-installer

Netdata installer for Windows using WSL2
PowerShell
18
star
14

go-orchestrator

Go
15
star
15

agent-service-discovery

Go
13
star
16

ansible

Official Ansible playbook for installing Netdata.
Jinja
12
star
17

binary-packages

Shell
12
star
18

localization

Translation files
Shell
10
star
19

ebpf-co-re

CO-RE code for the Netdata eBPF plugin.
C
10
star
20

charts

Netdata frontend SDK and chart utilities
JavaScript
10
star
21

helper-images

Docker base, builder and package- builder images for Netdata
Shell
7
star
22

blog

Netdata's Blog!
MDX
6
star
23

netdata-pandas

A helper library to pull data from the netdata rest api into a pandas dataframe.
Jupyter Notebook
6
star
24

go-recaptcha

A simple reCaptcha v3 client for Go
Go
6
star
25

posthog-netdata-event-processing

A Posthog plugin to do some data processing on our Posthog events as they arrive.
JavaScript
4
star
26

netdata-gitbook

4
star
27

custom-dashboard

UI for custom dashboards, used in Dashboard and Cloud
TypeScript
3
star
28

.github

Community health files for the @netdata organization
3
star
29

cloud-iframes

sidebar/SSO iframes for Dashboard
TypeScript
3
star
30

netdata-storage-calculator

Netdata Storage Calculator
Jupyter Notebook
2
star
31

developer-relations

The documents, tools, and processes used by the Developer Relations team at Netdata. Open-sourced, for everyone, for free.
2
star
32

eslint-config-netdata

Netdata eslint configuration
JavaScript
2
star
33

discourse-netdata-theme

The main theme of the Discourse instance that powers the Netdata Community
HTML
2
star
34

aclk-schemas

Protobuf schemas used in ACLK connection
Makefile
1
star
35

netdata-nightlies

Nightly builds of the Netdata Agent
1
star
36

netdata-portage-overlay

The gentoo portage overlay repo for Netdata
Shell
1
star
37

terraform-provider-netdata

Netdata Cloud provider for Terraform
Go
1
star