netdata_tsrelay.nim
changeset 22 4250addd706f
parent 21 a2fe9ec4cdf2
child 23 89ba1d73b232
child 24 af18a10710be
equal deleted inserted replaced
21:a2fe9ec4cdf2 22:4250addd706f
   188 
   188 
   189             var name = parsed[ "chart_id" ].get_str & "." & parsed[ "id" ].get_str
   189             var name = parsed[ "chart_id" ].get_str & "." & parsed[ "id" ].get_str
   190             pivot[ "hostname" ] = parsed[ "hostname" ]
   190             pivot[ "hostname" ] = parsed[ "hostname" ]
   191             pivot[ "timestamp" ] = parsed[ "timestamp" ]
   191             pivot[ "timestamp" ] = parsed[ "timestamp" ]
   192             pivot[ name ] = parsed[ "value" ]
   192             pivot[ name ] = parsed[ "value" ]
       
   193 
       
   194             if parsed.has_key( "labels" ):
       
   195                 pivot[ "labels" ] = parsed[ "labels" ]
   193         except:
   196         except:
   194             continue
   197             continue
   195 
   198 
   196     for timestamp, sample in pivoted_data:
   199     for timestamp, sample in pivoted_data:
   197         result.add( sample )
   200         result.add( sample )