Skip to content

Commit

Permalink
feat: add process-exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Nov 9, 2023
1 parent fd605e7 commit 9a6309d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/scripts/launch-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 14 additions & 0 deletions server/scripts/run-exporters.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 9a6309d

Please sign in to comment.