It worked very well! Thanks for the help, Brian :)
El mié., 28 oct. 2020 a las 2:22, Brian Candler (<[email protected]>) escribió: > On 27/10/2020 23:30, Miguel Saavedra wrote: > > Prometheus is running in a Docker container. This being the case, how > > do the commands/configurations you share with me change? Does the > > Prometheus command to be run inside the host change? > > You can still bind prometheus to localhost (127.0.0.1) inside a container. > > However with containers there is a simpler approach: simply don't expose > port 9090 on the container to the outside world, only port 80. Then > users will only be able to connect to apache. > > If prometheus and apache are in the same container, or in different > containers but in the same k8s pod, then they will be able to talk to > each other on 127.0.0.1 (without having to expose the port to the > outside world) > > If you are doing something else with docker containers (docker swarm? > docker compose?) then you can work out for yourself what needs to be done. > > -- *MS* -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CA%2BZ%2BB%2BDLLSXGbJW4X7Y73w_FtZT0oJSQYRiPSpsfXdeabb0QDw%40mail.gmail.com.

