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 <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2017-06-09 18:10:47 -05:00
parent 6eae6ea8db
commit 901ab883ff
1 changed files with 1 additions and 0 deletions

View File

@ -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'],