mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
metrics: Use jq tool to pretty-print json metrics output
This PR enables the use of jq pretty-print feature to improve the formatting of metric results json files. Fixes: #8081 Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
This commit is contained in:
parent
a2159a6361
commit
8c498ef5ee
@ -147,7 +147,7 @@ done)
|
|||||||
EOF
|
EOF
|
||||||
)"
|
)"
|
||||||
|
|
||||||
echo "$json" > $json_filename
|
echo "${json}" | jq . > "${json_filename}"
|
||||||
|
|
||||||
# If we have a JSON URL or host/socket pair set up, post the results there as well.
|
# If we have a JSON URL or host/socket pair set up, post the results there as well.
|
||||||
# Optionally compress into a single line.
|
# Optionally compress into a single line.
|
||||||
|
Loading…
Reference in New Issue
Block a user