TLDR Martin shared a snippet of code. Hengfei indicated that the API required a JSON array, and suggested another API to use. Martin managed to fix their issue and thanked Hengfei for their help.
this api needs a json array.
maybe you can try this api
Finally I fixed it. I didn't realized that an array was expected. Thanks for your help and patient with people that don't read documentations enough! :smile:
Finally got metrics loaded
Martin
Tue, 12 Sep 2023 14:34:15 UTC`json=$(top -bn1 | awk -F':' '/load average/ {print $4}' | awk -F', ' '{print "{\"cpu_load\":"$1"}"}' | sed 's/,/./g'); curl -u:s3cretP4ss -k -d $json`