Last active
December 6, 2025 14:00
-
-
Save NotYusta/d61c7093ce01dda15b794011934b3bae to your computer and use it in GitHub Desktop.
install_game_exporters.sh
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/sh | |
| set -e | |
| TMP_DIR="/tmp/exporter_installers" | |
| mkdir -p "$TMP_DIR" | |
| NODE_EXPORTER_URL="https://gist.githubusercontent.com/NotYusta/7f0121db2fb01c60edb3d64ad1b9cd27/raw/3be376455f4ffce7e5e8018cd32254cef9595ff0/install_node_exporter.sh" | |
| CADVISOR_URL="https://gist.githubusercontent.com/NotYusta/412c55b1d712bd717ccc310c7c48328b/raw/3300f55c6284be7d743a2b516c6c246f95cebeca/install_cadvisor.sh" | |
| download_and_run() { | |
| NAME="$1" | |
| URL="$2" | |
| DEST="$TMP_DIR/$NAME.sh" | |
| echo "Downloading $NAME installer..." | |
| curl -sL "$URL" -o "$DEST" | |
| chmod +x "$DEST" | |
| echo "Running $NAME installer..." | |
| sh "$DEST" | |
| } | |
| download_and_run "node_exporter" "$NODE_EXPORTER_URL" | |
| download_and_run "cadvisor" "$CADVISOR_URL" | |
| echo "All exporters installed successfully." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment