node-exporter, prometheus, grafana and friends.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

services:
node-exporter:
container_name: node-exporter
image: prom/node-exporter:latest
network_mode: bridge
ports:
- "9100:9100"
grafana:
container_name: grafana
image: grafana/grafana:latest
network_mode: bridge
ports:
- "9080:3000"
data-generator:
container_name: data-generator
build:
context: ../prometheus-data-generator/
network_mode: bridge
ports:
- "9000:9000"
volumes:
# - ../prometheus-data-generator/config.yml:/config.yml
- /home/f2256342/forge/prometheus-data-generator/config.yml:/config.yml
command: --no-collector.rapl
prometheus:
container_name: prometheus
image: prom/prometheus:latest
depends_on:
- node-exporter
- data-generator
network_mode: bridge
ports:
- "9090:9090"
env_file:
- ./.env
volumes:
# - /home/yutsuo/forge/monitor/prometheus.yml:/etc/prometheus/prometheus.yml
- /home/f2256342/forge/monitor/prometheus.yml:/etc/prometheus/prometheus.yml
# command: --enable-feature=expand-external-labels --config.file=/etc/prometheus/prometheus.yml