Skip to content

Commit

Permalink
python.d configuration files updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou committed Jul 13, 2016
1 parent 0334af0 commit 3c4f299
Show file tree
Hide file tree
Showing 14 changed files with 1,098 additions and 98 deletions.
45 changes: 27 additions & 18 deletions conf.d/python.d.conf
Original file line number Original file line Diff line number Diff line change
@@ -1,22 +1,31 @@
# This is the configuration for python.d.plugin # netdata python.d.plugin configuration
#
# This file is in YaML format.
# Generally the format is:
#
# name: value
#


# Disable all python modules # Enable / disable the whole python.d.plugin (all its modules)
enabled: no enabled: no


# By default python.d.plugin enables all modules stored in python.d # ----------------------------------------------------------------------
# Modules can be disabled with setting "module_name = no" # Enable / Disable python.d.plugin modules
apache: yes #
apache_cache: yes # The default for all modules is enabled (yes).
cpufreq: yes # Setting any of these to no will disable it.
example: yes
exim: yes
hddtemp: yes
mysql: yes
nginx: yes
phpfpm: yes
postfix: yes
redis: yes
sensors: yes
squid: yes
tomcat: yes


# apache: yes
# apache_cache: yes
# cpufreq: yes
example: no
# exim: yes
# hddtemp: yes
# mysql: yes
# nginx: yes
# phpfpm: yes
# postfix: yes
# redis: yes
# sensors: yes
# squid: yes
# tomcat: yes
84 changes: 79 additions & 5 deletions conf.d/python.d/apache.conf
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,80 @@
# Example configuration of apache.chart.py # netdata python.d.plugin configuration for apache
# YAML format #
# This file is in YaML format. Generally the format is:
#
# name: value
#
# There are 2 sections:
# - global variables
# - one or more JOBS
#
# JOBS allow you to collect values from multiple sources.
# Each source will have its own set of charts.
#
# JOB parameters have to be indented (using spaces only, example below).


local: # ----------------------------------------------------------------------
url: "http://localhost/server-status?auto" # Global Variables
retries: 10 # These variables set the defaults for all JOBs, however each JOB
# may define its own, overriding the defaults.

# update_every sets the default data collection frequency.
# If unset, the python.d.plugin default is used.
# update_every: 1

# priority controls the order of charts at the netdata dashboard.
# Lower numbers move the charts towards the top of the page.
# If unset, the default for python.d.plugin is used.
# priority: 60000

# retries sets the number of retries to be made in case of failures.
# If unset, the default for python.d.plugin is used.
# Attempts to restore the service are made once every update_every
# and only if the module has collected values in the past.
# retries: 5

# ----------------------------------------------------------------------
# JOBS (data collection sources)
#
# The default JOBS share the same *name*. JOBS with the same name
# are mutually exclusive. Only one of them will be allowed running at
# any time. This allows autodetection to try several alternatives and
# pick the one that works.
#
# Any number of jobs is supported.
#
# All python.d.plugin JOBS (for all its modules) support a set of
# predefined parameters. These are:
#
# job_name:
# name: myname # the JOB's name as it will appear at the
# # dashboard (by default is the job_name)
# # JOBs sharing a name are mutually exclusive
# update_every: 1 # the JOB's data collection frequency
# priority: 60000 # the JOB's order on the dashboard
# retries: 5 # the JOB's number of restoration attempts
#
# Additionally to the above, apache also supports the following:
#
# url: 'URL' # the URL to fetch apache's mod_status stats
#
# if the URL is password protected, the following are supported:
#
# user: 'username'
# pass: 'password'

# ----------------------------------------------------------------------
# AUTO-DETECTION JOBS
# only one of them will run (they have the same name)

localhost:
name : 'local'
url : 'http://localhost/server-status?auto'

localipv4:
name : 'local'
url : 'http://127.0.0.1/server-status?auto'

localipv6:
name : 'local'
url : 'http://::1/server-status?auto'
78 changes: 75 additions & 3 deletions conf.d/python.d/apache_cache.conf
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,76 @@
# Example configuration of apache_cache.chart.py # netdata python.d.plugin configuration for apache cache
# YAML format #
# This file is in YaML format. Generally the format is:
#
# name: value
#
# There are 2 sections:
# - global variables
# - one or more JOBS
#
# JOBS allow you to collect values from multiple sources.
# Each source will have its own set of charts.
#
# JOB parameters have to be indented (using spaces only, example below).


path: "/var/log/apache2/cache.log" # ----------------------------------------------------------------------
# Global Variables
# These variables set the defaults for all JOBs, however each JOB
# may define its own, overriding the defaults.

# update_every sets the default data collection frequency.
# If unset, the python.d.plugin default is used.
# update_every: 1

# priority controls the order of charts at the netdata dashboard.
# Lower numbers move the charts towards the top of the page.
# If unset, the default for python.d.plugin is used.
# priority: 60000

# retries sets the number of retries to be made in case of failures.
# If unset, the default for python.d.plugin is used.
# Attempts to restore the service are made once every update_every
# and only if the module has collected values in the past.
# retries: 5

# ----------------------------------------------------------------------
# JOBS (data collection sources)
#
# The default JOBS share the same *name*. JOBS with the same name
# are mutually exclusive. Only one of them will be allowed running at
# any time. This allows autodetection to try several alternatives and
# pick the one that works.
#
# Any number of jobs is supported.
#
# All python.d.plugin JOBS (for all its modules) support a set of
# predefined parameters. These are:
#
# job_name:
# name: myname # the JOB's name as it will appear at the
# # dashboard (by default is the job_name)
# # JOBs sharing a name are mutually exclusive
# update_every: 1 # the JOB's data collection frequency
# priority: 60000 # the JOB's order on the dashboard
# retries: 5 # the JOB's number of restoration attempts
#
# Additionally to the above, apache_cache also supports the following:
#
# path: 'PATH' # the path to apache's cache.log
#

# ----------------------------------------------------------------------
# AUTO-DETECTION JOBS
# only one of them will run (they have the same name)

apache:
name: 'local'
path: '/var/log/apache/cache.log'

apache2:
name: 'local'
path: '/var/log/apache2/cache.log'

httpd:
name: 'local'
path: '/var/log/httpd/cache.log'
64 changes: 63 additions & 1 deletion conf.d/python.d/example.conf
Original file line number Original file line Diff line number Diff line change
@@ -1 +1,63 @@
update_every : 2 # netdata python.d.plugin configuration for example
#
# This file is in YaML format. Generally the format is:
#
# name: value
#
# There are 2 sections:
# - global variables
# - one or more JOBS
#
# JOBS allow you to collect values from multiple sources.
# Each source will have its own set of charts.
#
# JOB parameters have to be indented (using spaces only, example below).

# ----------------------------------------------------------------------
# Global Variables
# These variables set the defaults for all JOBs, however each JOB
# may define its own, overriding the defaults.

# update_every sets the default data collection frequency.
# If unset, the python.d.plugin default is used.
# update_every: 1

# priority controls the order of charts at the netdata dashboard.
# Lower numbers move the charts towards the top of the page.
# If unset, the default for python.d.plugin is used.
# priority: 60000

# retries sets the number of retries to be made in case of failures.
# If unset, the default for python.d.plugin is used.
# Attempts to restore the service are made once every update_every
# and only if the module has collected values in the past.
# retries: 5

# ----------------------------------------------------------------------
# JOBS (data collection sources)
#
# The default JOBS share the same *name*. JOBS with the same name
# are mutually exclusive. Only one of them will be allowed running at
# any time. This allows autodetection to try several alternatives and
# pick the one that works.
#
# Any number of jobs is supported.
#
# All python.d.plugin JOBS (for all its modules) support a set of
# predefined parameters. These are:
#
# job_name:
# name: myname # the JOB's name as it will appear at the
# # dashboard (by default is the job_name)
# # JOBs sharing a name are mutually exclusive
# update_every: 1 # the JOB's data collection frequency
# priority: 60000 # the JOB's order on the dashboard
# retries: 5 # the JOB's number of restoration attempts
#
# Additionally to the above, example also supports the following:
#
# - none
#
# ----------------------------------------------------------------------
# AUTO-DETECTION JOBS
# only one of them will run (they have the same name)
69 changes: 66 additions & 3 deletions conf.d/python.d/exim.conf
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,67 @@
# Example configuration of exim.chart.py # netdata python.d.plugin configuration for postfix
# YAML format #
# This file is in YaML format. Generally the format is:
#
# name: value
#
# There are 2 sections:
# - global variables
# - one or more JOBS
#
# JOBS allow you to collect values from multiple sources.
# Each source will have its own set of charts.
#
# JOB parameters have to be indented (using spaces only, example below).


update_every : 8 # executing `exim -bpc` can be very slow # ----------------------------------------------------------------------
# Global Variables
# These variables set the defaults for all JOBs, however each JOB
# may define its own, overriding the defaults.

# update_every sets the default data collection frequency.
# If unset, the python.d.plugin default is used.
# exim is slow, so once every 10 seconds
update_every: 10

# priority controls the order of charts at the netdata dashboard.
# Lower numbers move the charts towards the top of the page.
# If unset, the default for python.d.plugin is used.
# priority: 60000

# retries sets the number of retries to be made in case of failures.
# If unset, the default for python.d.plugin is used.
# Attempts to restore the service are made once every update_every
# and only if the module has collected values in the past.
# retries: 5

# ----------------------------------------------------------------------
# JOBS (data collection sources)
#
# The default JOBS share the same *name*. JOBS with the same name
# are mutually exclusive. Only one of them will be allowed running at
# any time. This allows autodetection to try several alternatives and
# pick the one that works.
#
# Any number of jobs is supported.
#
# All python.d.plugin JOBS (for all its modules) support a set of
# predefined parameters. These are:
#
# job_name:
# name: myname # the JOB's name as it will appear at the
# # dashboard (by default is the job_name)
# # JOBs sharing a name are mutually exclusive
# update_every: 1 # the JOB's data collection frequency
# priority: 60000 # the JOB's order on the dashboard
# retries: 5 # the JOB's number of restoration attempts
#
# Additionally to the above, postfix also supports the following:
#
# command: 'exim -bpc' # the command to run
#

# ----------------------------------------------------------------------
# AUTO-DETECTION JOBS

local:
command: 'exim -bpc'
Loading

1 comment on commit 3c4f299

@netdata-community-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Netdata Community. There might be relevant details there:

https://community.netdata.cloud/t/override-config-files/1342/8

Please sign in to comment.