What Add to Pulso creates for Fly.io
Fly Machines not running
API, every 5 minutes
High priority
A machine of the app failed to start, or stopped: it crashed, ran out of memory or was stopped by hand. Machines in the middle of a deploy, suspended ones and standbys are left out. For an app whose machines stop on their own when idle, add a filter on state not equal to stopped.
Sends
GET https://api.machines.dev/v1/apps/{{settings.app}}/machines
every 5 minutes, with the connection's headers.
Each item of the answer is a row. How HTTP monitors work
Filters
statenot containsingstatenot equalsstartedstatenot equalscreatedstatenot equalssuspendedstatenot equalsarchivedstatenot equalsreplacedstatenot equalsmigratedstatenot equalsdestroyedconfig.standbysnot contains"
Uniq by
id
updated_at
Signal title
{{settings.app}}: {{signal.name}} ({{signal.config.metadata.fly_process_group}}) is {{signal.state}}
Playbook
The steps each signal brings. Its tasks go to whoever has the signal; edit them in the playbook editor once the monitor exists.