diff --git a/server/scripts/launch-all.sh b/server/scripts/launch-all.sh index 101250c..ccec22c 100755 --- a/server/scripts/launch-all.sh +++ b/server/scripts/launch-all.sh @@ -28,7 +28,7 @@ fi printf "${SECTION}* Launching Grafana stack...$RESET\n\n" # Here we only care about stderr -(cd server/docker && docker compose -f grafana.yaml -f "grafana.$GRAFANA_COMPOSE_OVERRIDE.yaml" up --wait -d) > /dev/null +(cd server/docker && docker compose -f grafana.yaml -f "grafana.$GRAFANA_OVERRIDE.yaml" up --wait -d) > /dev/null # Update and launch server diff --git a/server/scripts/run-exporters.sh b/server/scripts/run-exporters.sh new file mode 100755 index 0000000..c59b4f3 --- /dev/null +++ b/server/scripts/run-exporters.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +mkdir -p /var/log/prometheus-exporters + +tmux kill-session -t prometheus-exporters 2>/dev/null && echo "Killed existing Prometheus Exporters tmux session" + +tmux new-session -d -s "Prometheus Exporters" + +tmux new-window -n "node_exporter" -c "$(pwd)" './node_exporter 2>&1 | tee /var/log/prometheus-exporters/node_exporter.log' +echo "Started new tmux session for node_exporter" + +tmux new-window -d -n "process-exporter" -c "$(pwd)" 'process-exporter 2>&1 | tee /var/log/prometheus-exporters/process-exporter.log' +echo "Started new tmux session for process-exporter" +