add Prometheus metrics endpoint and push script
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

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>
This commit is contained in:
wes
2026-04-09 07:35:51 -04:00
co-authored by Claude Opus 4.6
parent 98e04a7b31
commit d3d672c4f1
5 changed files with 258 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/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