Skip to content

Instantly share code, notes, and snippets.

View spireblockchain's full-sized avatar

Jordan | Spire spireblockchain

View GitHub Profile
@spireblockchain
spireblockchain / rosen-watcher-prometheus.sh
Last active January 1, 2024 23:08
Rosen Bridge Watcher - Prometheus Metrics Bash Script
#!/bin/bash
#============================================================================================
# Must have prometheus-node-exporter installed
# This script will add metrics to the host Prometheus endpoint by creating a file in /var/lib/prometheus/node-exporter
# Run this script periodically via cron, i.e. every 5 minutes
# Set watcher URL
watcherUrl='http://127.0.0.1:3030'