Browse Source

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>
Kevin Carter 1 year ago
parent
commit
901ab883ff
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      monitorstack/common/formatters.py

+ 1
- 0
monitorstack/common/formatters.py View File

@@ -107,6 +107,7 @@ def write_telegraf(result):
107 107
     resultant = [result['measurement_name']]
108 108
     if 'meta' in result:
109 109
         resultant.append(_telegraf_line_format(sets=result['meta']))
110
+    resultant = [','.join(resultant).strip(',')]
110 111
     resultant.append(
111 112
         _telegraf_line_format(
112 113
             sets=result['variables'],

Loading…
Cancel
Save