HUB
Sign inSign up
heartbeats-ping-sidecar logo

robocrax/heartbeats-ping-sidecar

By robocrax

•Updated 4 months ago

A vibe-coded utility to ping devices on your network and send BetterStack heartbeats

Image
0

228

robocrax/heartbeats-ping-sidecar repository overview

⁠Send heartbeats when your devices can't

image

A lightweight utility you can run alongside any device you want to monitor which runs on the same network. Periodically pings those devices and triggers external Heartbeat webhooks (e.g., BetterStack, Healthchecks.io).

This is only useful if the device itself does not have health checks, so you run this as a sidecar.

Obviously, this utility and the device you want to monitor have to be on the same network or atleast be able to ping each other via VPN.

⁠Features

  • Smart Throttling: Triggers external heartbeat webhooks immediately on failures/recoveries but rate-limits stable states to 60s.
  • Microservice Footprint: Zero heavy JS frameworks—embeds everything into a minimal Go binary running on Alpine Linux.
  • Yes, this was fully made with AI, including this description 🤦
  • When a device does not ping and goes down, it sends the heartbeat to another URL so you can be notified

⁠Running with Docker

Runs on port 8080 by default but you can change it.

I publish this using Cloudflare tunnels so I don't even have to expose ports.

docker run -d \
  -p 8080:8080 \
  -e PORT=8080 \
  -v heartbeats_data:/data \
  robocrax/heartbeats-ping-sidecar:latest

Tag summary

Content type

Image

Digest

sha256:38e400587…

Size

7.2 MB

Last updated

4 months ago

docker pull robocrax/heartbeats-ping-sidecar