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:
parent
6eae6ea8db
commit
901ab883ff
|
@ -107,6 +107,7 @@ def write_telegraf(result):
|
||||||
resultant = [result['measurement_name']]
|
resultant = [result['measurement_name']]
|
||||||
if 'meta' in result:
|
if 'meta' in result:
|
||||||
resultant.append(_telegraf_line_format(sets=result['meta']))
|
resultant.append(_telegraf_line_format(sets=result['meta']))
|
||||||
|
resultant = [','.join(resultant).strip(',')]
|
||||||
resultant.append(
|
resultant.append(
|
||||||
_telegraf_line_format(
|
_telegraf_line_format(
|
||||||
sets=result['variables'],
|
sets=result['variables'],
|
||||||
|
|
Loading…
Reference in New Issue