Open zinho9 opened 2 years ago
I am using AWS ECS container with one application service. This application has 10080 port for service , 10090 port for healthcheck.
And I am trying to use cAdvisor for monitoring the application container's metrics.
I am trying to use 8080 port for cAdvisor and I use this prompt for installing cAdvisor.
docker run \ --volume=/:/rootfs:ro \ --volume=/var/run:/var/run:ro \ --volume=/sys:/sys:ro \ --volume=/var/lib/docker/:/var/lib/docker:ro \ --volume=/dev/disk/:/dev/disk:ro \ --publish=8080:8080 \ --detach=true \ --name=cadvisor15 \ --privileged \ --device=/dev/kmsg \ --platform=linux/amd64 \ gcr.io/cadvisor/cadvisor:v0.36.0
And the output log of cAdvisor Container is
I have no idea what is the problem. If I use
curl localhost:8080
and then I got
Temporary Redirect. Please help me for using cAdvisor in ECS.
ps. The application service is connecting in ALB target group with 10080 port.
these logs have no problem, you should open localhost:8080 by an Internet Explorer
I am using AWS ECS container with one application service. This application has 10080 port for service , 10090 port for healthcheck.
And I am trying to use cAdvisor for monitoring the application container's metrics.
I am trying to use 8080 port for cAdvisor and I use this prompt for installing cAdvisor.
docker run \ --volume=/:/rootfs:ro \ --volume=/var/run:/var/run:ro \ --volume=/sys:/sys:ro \ --volume=/var/lib/docker/:/var/lib/docker:ro \ --volume=/dev/disk/:/dev/disk:ro \ --publish=8080:8080 \ --detach=true \ --name=cadvisor15 \ --privileged \ --device=/dev/kmsg \ --platform=linux/amd64 \ gcr.io/cadvisor/cadvisor:v0.36.0
And the output log of cAdvisor Container is
I have no idea what is the problem. If I use
curl localhost:8080
and then I got
Temporary Redirect. Please help me for using cAdvisor in ECS.
ps. The application service is connecting in ALB target group with 10080 port.