Fix load plugin dimension

This change removes a line that set the dimension to be None. In
that way, the dimensions of the measurement can be set through the
plugin configuration file.

Change-Id: I038ee56f58426a79c27f65427de6d58ca4d0952e
This commit is contained in:
Flávio Ramalho 2017-05-19 09:31:28 -03:00
parent 50ca49b7a0
commit d2c6bedf36
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