Skip to main content

๐Ÿ‘ฉโ€๐Ÿ’ป ๅฎ‰่ฃ Cadvisor

้—œๆ–ผ Cadvisorโ€‹

cAdvisor (Container Advisor) ๆ˜ฏ Google ้–‹็™ผ็š„ไธ€ๆฌพ้–‹ๆบๅทฅๅ…ท

้–‹ๅง‹ๅฎ‰่ฃโ€‹

็’ฐๅขƒโ€‹

  • Ubuntu

ๅฎ‰่ฃๆญฅ้ฉŸโ€‹

  1. ๅฎ‰่ฃ Docker๏ผš

  2. ้‹่กŒ cAdvisor๏ผš

    • ไฝฟ็”จ Docker ้‹่กŒ cAdvisor ๅฎนๅ™จ
    • ไปฅไธ‹ๅ‘ฝไปคๅฐ‡ๅ•Ÿๅ‹•ไธ€ๅ€‹ cAdvisor ๅฎนๅ™จ
    • ๅฐ‡ๅ…ถ็ถๅฎšๅˆฐไธปๆฉŸ็š„ 8080 Port๏ผš
    sudo docker run \
    --volume=/:/rootfs:ro \
    --volume=/var/run:/var/run:rw \
    --volume=/sys:/sys:ro \
    --volume=/var/lib/docker/:/var/lib/docker:ro \
    --publish=8080:8080 \
    --detach=true \
    --name=cadvisor \
    gcr.io/cadvisor/cadvisor:latest

    ้€™ๆขๅ‘ฝไปคๅฐ‡ๅ•Ÿๅ‹•ไธ€ๅ€‹ cAdvisor ๅฎนๅ™จ๏ผŒไธฆๅฐ‡ๅ…ถ็ถๅฎšๅˆฐไธปๆฉŸ็š„ 8080 Port

  3. ่จชๅ• cAdvisor ็•Œ้ข๏ผš

    • ๅœจ็€่ฆฝๅ™จไธญ่จชๅ• http://your-server-ip:8080