Skip to content

Commit

Permalink
ci(launch-all): include prometheus exporters in compose
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Dec 23, 2023
1 parent 68ed04f commit 0202873
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
29 changes: 29 additions & 0 deletions server/docker/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,35 @@ services:
limits:
cpus: '0.5'

node-exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
command:
- '--path.rootfs=/host'
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
deploy:
resources:
limits:
cpus: '0.5'

process-exporter:
ports:
- "9256:9256"
privileged: true
volumes:
- /proc:/host/proc
- "./config:/config"
image: ncabatoff/process-exporter
command: --procfs /host/proc -config.path /config/process-exporter.yaml
deploy:
resources:
limits:
cpus: '0.5'

prometheus:
image: prom/prometheus:v2.24.0
ports:
Expand Down
3 changes: 0 additions & 3 deletions server/scripts/launch-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ printf "$START* Running at $(date)$RESET\n"

GRAFANA_COMPOSE_OVERRIDE=${GRAFANA_COMPOSE_OVERRIDE:-base}

echo
server/scripts/run-exporters.sh

# Start Grafana stack

printf "${SECTION}* Launching Grafana stack...$RESET\n\n"
Expand Down
25 changes: 0 additions & 25 deletions server/scripts/run-exporters.sh

This file was deleted.

0 comments on commit 0202873

Please sign in to comment.