mirror of
https://github.com/netdata/netdata.git
synced 2025-05-17 22:52:21 +00:00
python.d.plugin update (#4936)
<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Summary Fix: #4756 `python.d.plugin` updates: * remove `retries` option * make `penalty` configurable (enabled by default, max is 10 minutes) > penalty indicates whether to apply penalty to update_every in case of failures. > Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes. > penalty: yes ##### Component Name `python.d.plugin` ##### Additional Information
This commit is contained in:
parent
e096424786
commit
5286dae8eb
117 changed files with 282 additions and 465 deletions
collectors/python.d.plugin/postgres
|
@ -19,7 +19,6 @@ from bases.FrameworkServices.SimpleService import SimpleService
|
|||
# default module values
|
||||
update_every = 1
|
||||
priority = 60000
|
||||
retries = 60
|
||||
|
||||
METRICS = {
|
||||
'DATABASE': [
|
||||
|
|
|
@ -27,11 +27,9 @@
|
|||
# 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: 60
|
||||
# penalty indicates whether to apply penalty to update_every in case of failures.
|
||||
# Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
|
||||
# penalty: yes
|
||||
|
||||
# autodetection_retry sets the job re-check interval in seconds.
|
||||
# The job is not deleted if check fails.
|
||||
|
@ -58,7 +56,7 @@
|
|||
# # 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: 60 # the JOB's number of restoration attempts
|
||||
# penalty: yes # the JOB's penalty
|
||||
# autodetection_retry: 0 # the JOB's re-check interval in seconds
|
||||
#
|
||||
# A single connection is required in order to pull statistics.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue