version: "3.9" services: prometheus: image: prom/prometheus:v2.53.1 container_name: llm_prometheus command: - --config.file=/etc/prometheus/prometheus.yml - --storage.tsdb.path=/prometheus volumes: - ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro - prometheus_data:/prometheus ports: - "9090:9090" restart: unless-stopped grafana: image: grafana/grafana:11.1.0 container_name: llm_grafana environment: - GF_SECURITY_ADMIN_USER=admin - GF_SECURITY_ADMIN_PASSWORD=admin - GF_USERS_ALLOW_SIGN_UP=false volumes: - grafana_data:/var/lib/grafana - ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards:ro ports: - "3000:3000" restart: unless-stopped node-exporter: image: prom/node-exporter:v1.8.1 container_name: llm_node_exporter pid: host network_mode: host command: - --path.rootfs=/host volumes: - /:/host:ro,rslave restart: unless-stopped dcgm-exporter: image: nvcr.io/nvidia/k8s/dcgm-exporter:3.3.8-3.6.0-ubuntu22.04 container_name: llm_dcgm_exporter runtime: nvidia cap_add: - SYS_ADMIN ports: - "9400:9400" restart: unless-stopped volumes: prometheus_data: grafana_data: