stefanprodan / swarmprom

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

Is the query node_meta working which provides the hostname in the metrics #104

Open saiharshitachava opened 5 years ago

saiharshitachava commented 5 years ago

I was trying to use node-exporter customized image and gave the below configs and deployed. But I dint see the data populated in the Swarm Node overview dashboard

nodeexporter_eng: image: stefanprodan/swarmprom-node-exporter:v0.16.0 environment:

jonathanmf commented 5 years ago

Same issue here :( This is the error for the node-exporter container :

invalid mount config for type "bind": bind source path does not exist: /etc/hostname

Any solution?

frejonb commented 5 years ago

@jonathanmf that depends on your operating system, if it doesn't store the hostname in /etc/hostname then it won' be able to mount it.

@saiharshitachava if you query prometheus for node_meta what do you get?

saiharshitachava commented 5 years ago

In my case I forgot to add this in the command..- '--collector.textfile.directory=/etc/node-exporter/'

Its working now