Support storing Netdata host labels, if they are passed to this json backend.
This commit is contained in:
parent
81f6ff4b69
commit
2980bff63e
1 changed files with 3 additions and 0 deletions
|
|
@ -190,6 +190,9 @@ proc parse_data( data: string ): seq[ JsonNode ] =
|
|||
pivot[ "hostname" ] = parsed[ "hostname" ]
|
||||
pivot[ "timestamp" ] = parsed[ "timestamp" ]
|
||||
pivot[ name ] = parsed[ "value" ]
|
||||
|
||||
if parsed.has_key( "labels" ):
|
||||
pivot[ "labels" ] = parsed[ "labels" ]
|
||||
except:
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue