From de64372c71fb3ee5570a0a9d9ffb224216f5e8ab Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Thu, 5 Sep 2013 07:59:21 +0200 Subject: [PATCH] organise metrics by plugin instance --- haproxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haproxy.py b/haproxy.py index 25f548c..7bd78ac 100644 --- a/haproxy.py +++ b/haproxy.py @@ -165,9 +165,9 @@ def read_callback(): continue key_root, val_type = METRIC_TYPES[key_root] - key_name = METRIC_DELIM.join([key_prefix, key_root]) val = collectd.Values(plugin=NAME, type=val_type) - val.type_instance = key_name + val.plugin_instance = key_prefix + val.type_instance = key_root val.values = [ value ] val.dispatch()