• Docker 数据收集利器:cadvisor


    gitHub地址:https://github.com/google/cadvisor

    cAdvisor

    cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. It is a running daemon that collects, aggregates, processes, and exports information about running containers. Specifically, for each container it keeps resource isolation parameters, historical resource usage, histograms of complete historical resource usage and network statistics. This data is exported by container and machine-wide.

    Quick Start: Running cAdvisor in a Docker Container

    To quickly tryout cAdvisor on your machine with Docker, we have a Docker image that includes everything you need to get started. You can run a single cAdvisor to monitor the whole machine. Simply run:

    sudo docker run 
      --volume=/:/rootfs:ro 
      --volume=/var/run:/var/run:rw 
      --volume=/sys:/sys:ro 
      --volume=/var/lib/docker/:/var/lib/docker:ro 
      --volume=/dev/disk/:/dev/disk:ro 
      --publish=8080:8080 
      --detach=true 
      --name=cadvisor 
      google/cadvisor:latest
    

    cAdvisor is now running (in the background) on http://localhost:8080. The setup includes directories with Docker state cAdvisor needs to observe.

    由于 cAdvisor 提供的操作界面略显简陋,而且需要在不同页面之间跳转,并且只能监控一个 host,这不免会让人质疑它的实用性。但 cAdvisor 的一个亮点是它可以将监控到的数据导出给第三方工具,由这些工具进一步加工处理。

    我们可以把 cAdvisor 定位为一个监控数据收集器,收集和导出数据是它的强项,而非展示数据

  • 相关阅读:
    经典网址记录
    Python爬虫利器三之Xpath语法与lxml库的用法
    XPath 语法
    import,reload,__import__在python中的区别
    用redis实现队列实例
    代理池抓取基础版-(python协程)--抓取网站(西刺-后期会持续更新)
    selenuim&PhantomJS&Beautifulsoup练习经典实例
    Python面向对象编程(四)
    Python面向对象编程(三)
    Python面向对象编程(二)
  • 原文地址:https://www.cnblogs.com/vincenshen/p/8666886.html
Copyright © 2020-2023  润新知