From 901ab883ff580792cd90e87c647e21dda49f17ef Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Fri, 9 Jun 2017 18:10:47 -0500 Subject: [PATCH] Correct telegraf line format The telegrad line format is using > [name,tags metrics timestamp] as for the format. This change makes it so that we're now using the correct lineformat when exporting data to telegraf. Change-Id: I72d6eb45a2c734d92e2da08c5df1998e60266f75 Signed-off-by: Kevin Carter --- monitorstack/common/formatters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monitorstack/common/formatters.py b/monitorstack/common/formatters.py index 6737905..744438b 100644 --- a/monitorstack/common/formatters.py +++ b/monitorstack/common/formatters.py @@ -107,6 +107,7 @@ def write_telegraf(result): resultant = [result['measurement_name']] if 'meta' in result: resultant.append(_telegraf_line_format(sets=result['meta'])) + resultant = [','.join(resultant).strip(',')] resultant.append( _telegraf_line_format( sets=result['variables'],