Merge "Fix load plugin dimension"

This commit is contained in:
Jenkins 2017-05-24 17:35:31 +00:00 committed by Gerrit Code Review
commit c2b9008230
2 changed files with 3 additions and 2 deletions

View File

@ -5,3 +5,6 @@ init_config:
instances:
# Load check only supports one configured instance
- name: load_stats
# (optional) Additional dimensions to dimensions each metric with
# dimensions:
# dim1: value1

View File

@ -49,8 +49,6 @@ class Load(checks.AgentCheck):
# Split out the 3 load average values
load = [res.replace(',', '.') for res in re.findall(r'([0-9]+[\.,]\d+)', uptime)]
dimensions = self._set_dimensions(None)
#
# Normalize the load averages by number of cores
# so the metric is useful for alarming across