Support storing Netdata host labels, if they are passed to this json backend.

This commit is contained in:
Mahlon E. Smith 2020-12-12 21:46:39 -08:00
parent 81f6ff4b69
commit 2980bff63e

View file

@ -190,6 +190,9 @@ proc parse_data( data: string ): seq[ JsonNode ] =
pivot[ "hostname" ] = parsed[ "hostname" ] pivot[ "hostname" ] = parsed[ "hostname" ]
pivot[ "timestamp" ] = parsed[ "timestamp" ] pivot[ "timestamp" ] = parsed[ "timestamp" ]
pivot[ name ] = parsed[ "value" ] pivot[ name ] = parsed[ "value" ]
if parsed.has_key( "labels" ):
pivot[ "labels" ] = parsed[ "labels" ]
except: except:
continue continue