how-to · watch Open this in the console

Run a script only when a Docker app is unhealthy.

Alerts › scripts. Docker apps is the kind for an app that is unhealthy or stuck restarting. A container that stopped on purpose during a deploy is not this kind.

An empty key still means every app. One app is a narrower key.
01

Downtime starts ticked

Open Alerts › scripts and press new trigger. Name it and choose Who is signed in. Downtime is already ticked. Docker apps is clear, so an unhealthy app would not start this draft. Disk, checks, reboots, network path and custom metric are clear too.

New alert script trigger with downtime ticked and Docker apps clear
New trigger. Downtime is ticked. Docker apps is clear. Nothing is saved yet.
02

Tick Docker apps and clear downtime

Tick Docker apps and clear downtime. The label names an app that is unhealthy or in a restart loop. Accounts server's disk at 92% is a disk alert, so it would not. old-web on that machine has exited, and an exit during a deploy is not this kind. The key box stays empty, so every unhealthy or restarting app matches. The alert is a warning, and the floor is warn and above, so it matches. Press save when this is the one you want. This shot stops before that. Cancel drops the draft. Run on is still these machines, and none is ticked, so a save would also need a target.

Alert script trigger with only the Docker apps kind ticked
Docker apps is ticked. Downtime is clear. Save has not been pressed.

Telling a person, with no script, is Only tell them about a Docker app. The apps on one machine are See Docker apps on a machine. A check that one app is running is Check that a Docker app is running. Restarting one by hand is Restart a Docker app.