Almost working scirpt

This commit is contained in:
Jarne Clauw 2025-12-19 17:22:45 +01:00
parent edb0d0ec54
commit 395e7a8b43
4 changed files with 27 additions and 0 deletions

8
scripts/memory_used.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
while true; do
mem_used=$(free -m | grep 'Mem' | awk '{print $3}')
curl -X POST http://localhost:8080/api/v1/0dz8qhj68h7hqgvasoam/telemetry --header Content-Type:application/json --data "{mem_used:$mem_used}"
sleep 1
done