stefanprodan / swarmprom

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

Idea: Working around complicated hostname vs. container ip... #55

Open anthraxn8b opened 6 years ago

anthraxn8b commented 6 years ago

In my case it is possible to manually define the hosts to scrape (with hostnames) because they normally do not change. Then I simply mapped the cAdvisor and node_exporter ports to the host machine so I can combine docker, cAdvisor and node_exporter metrics. Is this a good, bad or ugly way? Just an idea...