This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |