stefanprodan / swarmprom

Docker Swarm instrumentation with Prometheus, Grafana, cAdvisor, Node Exporter and Alert Manager
MIT License
1.87k stars 734 forks source link

Bind source path does not exist for node-exporter #64

Closed khou closed 5 years ago

khou commented 6 years ago
q3fwihdpi151qt16mk91bfbhz   mon_node-exporter.5z9tkt047odlk149n1o5s1jan       stefanprodan/swarmprom-node-exporter:v0.15.2@sha256:0575845ee924fa91138804663a12207ed53a56542d257273ffb9b30e22b78cd1   linuxkit-025000000001   Ready               Rejected less than a second ago   "invalid mount config for type "bind": bind source path does not exist"

Easy fix but means the product doesn't run immediately following README.

yayitswei commented 5 years ago

@khou, could you describe what you did to fix this?

khou commented 5 years ago

@yayitswei sorry I don't remember the context anymore, but the issue most likely was from the product not having a path in container for one of the images, so I'd double check the path bindings

yayitswei commented 5 years ago

I've commented out the missing binding in docker-compose.yml, which fixes the error but the node-exporter container exists with another error because it expects /etc/nodename to exist. Any help would be appreciated! cc @stefanprodan

  node-exporter:
    image: stefanprodan/swarmprom-node-exporter:v0.15.2
    networks:
      - net
    environment:
      - NODE_ID={{.Node.ID}}
    volumes:
      - /proc:/host/proc:ro
      - /sys:/host/sys:ro
      - /:/rootfs:ro
      # - /etc/hostname:/etc/nodename
jonathanmf commented 5 years ago

Same issue here :(