diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2021-04-21 15:06:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 15:06:37 +0300 |
commit | c15e0fef00784293ba4f15dade972677e74ab190 (patch) | |
tree | 5e5d00d0d375bc2f3782ca26e62176e8568e191f /collectors | |
parent | 542bc1e27f2ee93906bcfa42fd7f096b6f556dad (diff) |
python.d: add plugin and module names to the runtime charts (#11007)
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/python.d.plugin/python_modules/bases/charts.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/python_modules/bases/charts.py b/collectors/python.d.plugin/python_modules/bases/charts.py index 93be43d149..2526af8ce4 100644 --- a/collectors/python.d.plugin/python_modules/bases/charts.py +++ b/collectors/python.d.plugin/python_modules/bases/charts.py @@ -24,7 +24,7 @@ DIMENSION_SET = "SET '{id}' = {value}\n" CHART_VARIABLE_SET = "VARIABLE CHART '{id}' = {value}\n" RUNTIME_CHART_CREATE = "CHART netdata.runtime_{job_name} '' 'Execution time for {job_name}' 'ms' 'python.d' " \ - "netdata.pythond_runtime line 145000 {update_every}\n" \ + "netdata.pythond_runtime line 145000 {update_every} '' 'python.d.plugin' '{module_name}'\n" \ "DIMENSION run_time 'run time' absolute 1 1\n" @@ -45,6 +45,7 @@ def create_runtime_chart(func): chart = RUNTIME_CHART_CREATE.format( job_name=self.name, update_every=self._runtime_counters.update_every, + module_name=self.module_name, ) safe_print(chart) ok = func(*args, **kwargs) |