0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-27 22:26:21 +00:00
netdata_netdata/collectors/python.d.plugin
Fotis Voutsas e9af618081
Make the title metadata H1 in all markdown files ()
* make the title metadta the H1

* Update collectors/python.d.plugin/zscores/README.md

* Update libnetdata/ebpf/README.md

* Update ml/README.md

* Update libnetdata/string/README.md

---------

Co-authored-by: Chris Akritidis <43294513+cakrit@users.noreply.github.com>
2023-02-28 06:52:53 -08:00
..
adaptec_raid Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
alarms Make the title metadata H1 in all markdown files () 2023-02-28 06:52:53 -08:00
am2320 Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
anomalies fix python version check to work for 3.10 and above () 2023-02-28 12:24:41 +02:00
beanstalk Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
bind_rndc Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
boinc Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
ceph Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
changefinder Make the title metadata H1 in all markdown files () 2023-02-28 06:52:53 -08:00
dovecot Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
example Make the title metadata H1 in all markdown files () 2023-02-28 06:52:53 -08:00
exim Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
fail2ban Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
gearman Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
go_expvar Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
haproxy Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
hddtemp Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
hpssa Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
icecast Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
ipfs Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
litespeed Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
megacli Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
memcached Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
monit Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
nsd Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
nvidia_smi Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
openldap Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
oracledb Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
pandas pandas collector add read_sql() support () 2023-02-20 21:39:04 +00:00
postfix Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
puppet Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
python_modules feat(python.d): respect NETDATA_INTERNALS_MONITORING () 2022-10-10 15:01:21 +03:00
rethinkdbs Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
retroshare Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
riakkv Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
samba Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
sensors Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
smartd_log Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
spigotmc Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
squid Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
tomcat Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
tor Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
traefik Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
uwsgi Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
varnish Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
w1sensor Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
zscores Include troubleshooting section in the docs of python.d modules () 2023-02-20 06:56:42 -08:00
Makefile.am remove deprecated python.d collectors announced in v1.38.0 () 2023-02-08 10:51:55 +02:00
python.d.conf remove deprecated python.d collectors announced in v1.38.0 () 2023-02-08 10:51:55 +02:00
python.d.plugin.in chore(python.d): rename dockerd job on lock registration () 2022-08-18 20:53:16 +03:00
README.md Update learn path of python plugin readme () 2023-02-16 14:13:44 -08:00

python.d.plugin

python.d.plugin is a Netdata external plugin. It is an orchestrator for data collection modules written in python.

  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 one or more data collection jobs
  6. Each job is collecting one or more metrics from a single data source

Disclaimer

All third party libraries should be installed system-wide or in python_modules directory. Module configurations are written in YAML and pyYAML is required.

Every configuration file must have one of two formats:

  • Configuration for only one job:
update_every : 2 # update frequency
priority     : 20000 # where it is shown on dashboard

other_var1   : bla  # variables passed to module
other_var2   : alb
  • Configuration for many jobs (ex. mysql):
# module defaults:
update_every : 2
priority     : 20000

local:  # job name
  update_every : 5 # job update frequency
  other_var1   : some_val # module specific variable

other_job:
  priority     : 5 # job position on dashboard
  other_var2   : val # module specific variable

update_every and priority are always optional.

How to debug a python module

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

Depending on where Netdata was installed, execute one of the following commands to trace the execution of a python module:

# execute the plugin in debug mode, for a specific module
/opt/netdata/usr/libexec/netdata/plugins.d/python.d.plugin <module> debug trace
/usr/libexec/netdata/plugins.d/python.d.plugin <module> debug trace

Where [module] is the directory name under https://github.com/netdata/netdata/tree/master/collectors/python.d.plugin

Note: If you would like execute a collector in debug mode while it is still running by Netdata, you can pass the nolock CLI option to the above commands.

How to write a new module

See develop a custom collector in Python.