Files
skyweave/skyweave-push.sh
T
wesandClaude Opus 4.6 d3d672c4f1
Skyweave Test, Lint, and Deploy Ritual / Test and Lint Code (push) Has been cancelled
Skyweave Test, Lint, and Deploy Ritual / Deploy to Roof Unit (push) Has been cancelled
add Prometheus metrics endpoint and push script
New /metrics endpoint exposes WiFi signal, bitrate, gateway,
system uptime/load/memory, and ping reachability in Prometheus
exposition format. skyweave-push.sh loops every 30s pushing
metrics to the pushgateway on deltrian.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 07:35:51 -04:00

10 lines
330 B
Bash
Executable File

#!/bin/sh
# Push skyweave metrics to Prometheus pushgateway every 30 seconds.
PUSHGW="http://192.168.88.44:9091/metrics/job/rvlink/instance/rvlink"
METRICS_URL="http://127.0.0.1:42069/cgi-bin/skyweave.lua/metrics"
while true; do
curl -sf "$METRICS_URL" | curl -sf --data-binary @- "$PUSHGW" >/dev/null 2>&1
sleep 30
done