![]() |
1 год назад | |
---|---|---|
.. | ||
adaptec_raid | 1 год назад | |
alarms | 1 год назад | |
am2320 | 1 год назад | |
anomalies | 1 год назад | |
beanstalk | 1 год назад | |
bind_rndc | 1 год назад | |
boinc | 1 год назад | |
ceph | 1 год назад | |
changefinder | 1 год назад | |
dovecot | 1 год назад | |
example | 1 год назад | |
exim | 1 год назад | |
fail2ban | 1 год назад | |
gearman | 1 год назад | |
go_expvar | 1 год назад | |
haproxy | 1 год назад | |
hddtemp | 1 год назад | |
hpssa | 1 год назад | |
icecast | 1 год назад | |
ipfs | 1 год назад | |
litespeed | 1 год назад | |
megacli | 1 год назад | |
memcached | 1 год назад | |
monit | 1 год назад | |
nsd | 1 год назад | |
nvidia_smi | 1 год назад | |
openldap | 1 год назад | |
oracledb | 1 год назад | |
pandas | 1 год назад | |
postfix | 1 год назад | |
puppet | 1 год назад | |
python_modules | 2 лет назад | |
rethinkdbs | 1 год назад | |
retroshare | 1 год назад | |
riakkv | 1 год назад | |
samba | 1 год назад | |
sensors | 1 год назад | |
smartd_log | 1 год назад | |
spigotmc | 1 год назад | |
squid | 1 год назад | |
tomcat | 1 год назад | |
tor | 1 год назад | |
traefik | 1 год назад | |
uwsgi | 1 год назад | |
varnish | 1 год назад | |
w1sensor | 1 год назад | |
zscores | 1 год назад | |
Makefile.am | 2 лет назад | |
README.md | 2 лет назад | |
python.d.conf | 2 лет назад | |
python.d.plugin.in | 1 год назад |
python.d.plugin
is a Netdata external plugin. It is an orchestrator for data collection modules written in python
.
ps fax
shows itnetdata
daemon)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.
# 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.