Skip to main content

network health checks

Network Health Checks

Date: 2026-01-07
Purpose: Automated network monitoring and alerting


GitLab CI Health Check Job

Location: .gitlab/ci/network-health.yml

network-health: stage: health script: # Check Cloudflare tunnel - curl -fsS https://mesh.bluefly.internal/health || exit 1 # Check Tailscale devices - tailscale ping -c 2 bluefly-m4.tailcf98b3.ts.net || exit 1 - tailscale ping -c 2 glinet-router.tailcf98b3.ts.net || echo "Router offline" # Check service availability - curl -fsS http://bluefly-m4.tailcf98b3.ts.net:3005/health || exit 1 # Check DNS resolution - dig +short mesh.bluefly.internal @1.1.1.1 || exit 1 only: - schedules schedule: "*/15 * * * *" # Every 15 minutes

Health Check Metrics

Critical Checks:

  • Cloudflare tunnel connectivity
  • Tailscale device online status
  • Service health endpoints
  • DNS resolution

Warning Checks:

  • High latency (> 200ms)
  • Packet loss (> 5%)
  • Service response time (> 1s)