About 3 min

Shell install

Copy the code below into your app and send pings on the monitor interval.

Install steps

  1. 1

    Prepare the ping URL

    Put the URL from your dashboard into the `VIBEPULSE_PING_URL` environment variable.

  2. 2

    Paste the code

    Add the code below to your main loop or server startup.

  3. 3

    Match the interval

    Set the sleep/interval in code to match your monitor check interval.

  4. 4

    Deploy and verify

    After deploy, check that the last ping time updates on the dashboard.

Code

Shell install
#!/usr/bin/env bash
set -euo pipefail

: "${VIBEPULSE_PING_URL?Set VIBEPULSE_PING_URL in the environment}"

INTERVAL_SEC=600  # match your monitor interval

while true; do
  curl -fsS -m 10 --retry 3 "$VIBEPULSE_PING_URL"
  sleep "$INTERVAL_SEC"
done