Quick tip: you can use Machines API to check volume usage and get alerts
- Choose ‘HTTP(s) - JSON Query’ as the monitor option
- Set ‘bytes_used < (bytes_total * 0.75)’ as the query (tweak however you want)
- Set ‘true’ as expected value
- Set URL as ‘https://api.machines.dev/v1/apps/__APP_NAME__/volumes/__VOLUME_ID__’
- Set headers as
{"Authorization": "Bearer ..."}(use your token) - Set retry number as 3+ (in case of some network error so you wont be getting false alarms)
