I am doing a project related to Prometheus. I desperately need some help on this, and I divided the whole thing into several sections:
Background: I created an Ubuntu droplet server, in there I used docker image for Prometheus. On my local machine, I used the Prometheus client to generate HTTP instance that can be scraped by Prometheus. In order for Prometheus to scrape, I used Nginx to be an HTTP server on the droplet server.
So, everything should be easy by this setup.
- When I run Nginx on my server using
docker run -p 80:80 --name nginx nginx
I got this error:
Error response from daemon: driver failed programming external connectivity on endpoint nginx. I didn’t configure anything on the Nginx yet.
Whenever a client pushes some metrics to Nginx HTTP server, Prometheus server scrapes on Nginx HTTP Server. Nginx will be in a bridge network connection with Prometheus, the client will be outside world.
Thanks for any helps! Please feel free to comment on anything, even the whole setup of this!