netdata_netdata/src/go/collectors/go.d.plugin
Ilya Mashchenko 5de0a08d71
go.d dyncfg rm space yaml contentType (#17698)
2024-05-17 21:03:01 +03:00
..
agent go.d dyncfg rm space yaml contentType (#17698) 2024-05-17 21:03:01 +03:00
cli Include Go plugin sources in main repository. (#16997) 2024-02-13 06:56:20 -05:00
cmd/godplugin go.d update config dirs (#17661) 2024-05-15 10:51:41 +03:00
config go.d sd fix rspamd classify match (#17686) 2024-05-16 21:45:18 +03:00
docs fix links in go.d.plugin (#17108) 2024-03-05 17:37:41 +02:00
examples/simple go.d.plugin dyncfgv2 (#17064) 2024-03-05 16:40:19 +02:00
hack go.d: set User-Agent automatically when creating HTTP req (#17286) 2024-03-29 09:27:51 +02:00
logger go.d/python.d respect all netdata log levels (#17587) 2024-05-03 14:32:48 +03:00
modules go.d dyncfg add userconfig action (#17684) 2024-05-17 18:44:15 +03:00
pkg go.d dyncfg add userconfig action (#17684) 2024-05-17 18:44:15 +03:00
README.md add go.d/rspamd (#17679) 2024-05-16 16:21:57 +03:00
go.mod Bump github.com/vmware/govmomi from 0.37.1 to 0.37.2 in /src/go/collectors/go.d.plugin (#17644) 2024-05-13 09:49:52 +03:00
go.sum Bump github.com/vmware/govmomi from 0.37.1 to 0.37.2 in /src/go/collectors/go.d.plugin (#17644) 2024-05-13 09:49:52 +03:00

README.md

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
CAP_DAC_READ_SEARCH Filecheck

Available modules

Name Monitors
adaptec_raid Adaptec Hardware RAID
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
envoy Envoy
example -
fail2ban Fail2Ban Jails
filecheck Files and Directories
fluentd Fluentd
freeradius FreeRADIUS
haproxy HAProxy
hddtemp Disks temperature
hdfs HDFS
hpssa HPE Smart Array
httpcheck Any HTTP Endpoint
intelgpu Intel integrated GPU
isc_dhcpd ISC DHCP
k8s_kubelet Kubelet
k8s_kubeproxy Kube-proxy
k8s_state Kubernetes cluster state
lighttpd Lighttpd
litespeed Litespeed
logind systemd-logind
logstash Logstash
lvm LVM logical volumes
megacli MegaCli Hardware Raid
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
rspamd Rspamd
scaleio Dell EMC ScaleIO
sensors Hardware Sensors
SNMP SNMP
squidlog Squid
smartctl S.M.A.R.T Storage Devices
storcli Broadcom Hardware RAID
supervisord Supervisor
systemdunits Systemd unit state
tengine Tengine
traefik Traefik
upsd UPSd (Nut)
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
zfspool ZFS Pools
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.

Netdata Community

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