From a4af3945c6ae167b48daafae56bafb7ecda4f3b0 Mon Sep 17 00:00:00 2001 From: paulfantom Date: Wed, 22 Jun 2016 13:48:32 +0200 Subject: [PATCH] unset update_every --- conf.d/python.d/phpfpm.conf | 4 ++-- python.d/phpfpm.chart.py | 6 +++--- python.d/python_modules/base.py | 14 ++++++++------ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/conf.d/python.d/phpfpm.conf b/conf.d/python.d/phpfpm.conf index 798d6a52..df3e5df9 100644 --- a/conf.d/python.d/phpfpm.conf +++ b/conf.d/python.d/phpfpm.conf @@ -1,4 +1,4 @@ -update_every: 3 +#update_every: 3 local: - url: "http://localhost/status" \ No newline at end of file + url: "http://localhost/status" diff --git a/python.d/phpfpm.chart.py b/python.d/phpfpm.chart.py index 7b34542f..01efc576 100755 --- a/python.d/phpfpm.chart.py +++ b/python.d/phpfpm.chart.py @@ -5,9 +5,9 @@ from base import UrlService # default module values (can be overridden per job in `config`) -update_every = 2 -priority = 60000 -retries = 5 +#update_every = 2 +#priority = 60000 +#retries = 5 # default job configuration (overridden by python.d.plugin) config = {'local': { diff --git a/python.d/python_modules/base.py b/python.d/python_modules/base.py index 2d275bec..1b958dec 100644 --- a/python.d/python_modules/base.py +++ b/python.d/python_modules/base.py @@ -100,17 +100,19 @@ class UrlService(BaseService): charts = {} # charts definitions in format: # charts = { - # 'chart_name_in_netdata': ( - # "parameters defining chart (passed to CHART statement)", - # [ # dimensions (lines) definitions - # ("dimension_name", "dimension parameters (passed to DIMENSION statement)") - # ]) + # 'chart_name_in_netdata': { + # 'options': "parameters defining chart (passed to CHART statement)", + # 'lines': [ + # { 'name': 'dimension_name', + # 'options': 'dimension parameters (passed to DIMENSION statement)" + # } + # ]} # } order = [] definitions = {} # definitions are created dynamically in create() method based on 'charts' dictionary. format: # definitions = { - # 'chart_name_in_netdata' : (charts['chart_name_in_netdata'][1], charts['chart_name_in_netdata'][0]) + # 'chart_name_in_netdata' : [ charts['chart_name_in_netdata']['lines']['name'] ] # } url = "" -- 2.39.2