google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
16.95k stars 2.31k forks source link

cAdvisor problem in AWS ECS. #3142

Open zinho9 opened 2 years ago

zinho9 commented 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

스크린샷 2022-07-27 오후 12 00 23

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.

249043822 commented 2 years ago

these logs have no problem, you should open localhost:8080 by an Internet Explorer