summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2022-09-30 10:26:26 +0300
committerGitHub <noreply@github.com>2022-09-30 10:26:26 +0300
commit209e2c0caffa415cbd2ba18e2490491a0eeeb1e7 (patch)
treeeb782ff3436bde6a0faeacf9e28ce7f3ba8ee0a9 /collectors
parent95b9336c46fc62352dd8c58451bd608a779338c2 (diff)
fix(python.d): set correct label source for _collect_job label (#13746)
Diffstat (limited to 'collectors')
-rw-r--r--collectors/python.d.plugin/python_modules/bases/charts.py4
1 files changed, 3 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 d8a205c381..d9458b21a6 100644
--- a/collectors/python.d.plugin/python_modules/bases/charts.py
+++ b/collectors/python.d.plugin/python_modules/bases/charts.py
@@ -26,9 +26,11 @@ DIMENSION_SET = "SET '{id}' = {value}\n"
CHART_VARIABLE_SET = "VARIABLE CHART '{id}' = {value}\n"
+# 1 is label source auto
+# https://github.com/netdata/netdata/blob/cc2586de697702f86a3c34e60e23652dd4ddcb42/database/rrd.h#L205
RUNTIME_CHART_CREATE = "CHART netdata.runtime_{job_name} '' 'Execution time' 'ms' 'python.d' " \
"netdata.pythond_runtime line 145000 {update_every} '' 'python.d.plugin' '{module_name}'\n" \
- "CLABEL '_collect_job' '{actual_job_name}' '0'\n" \
+ "CLABEL '_collect_job' '{actual_job_name}' '1'\n" \
"CLABEL_COMMIT\n" \
"DIMENSION run_time 'run time' absolute 1 1\n"