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.
--
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/84cb4abc-8c72-e7d0-8b70-56b529557d2e%40pobox.com.