企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## cAdvisor简介 google/cadvisor:v0.25.0 ## Deployment ```bash $ docker run -it --name cadvisor -p 8080:8080 \ -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro \ google/cadvisor:v0.23.8 ``` ## 数据存入 influxdb 中 ```bash $ docker run -itd -p 8080:8080 --name cadvisor \ -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro google/cadvisor:v0.23.8 \ -storage_driver=influxdb -storage_driver_host=influxdb.monitor.marathon.mesos:8086 -storage_driver_db=cadvisor -storage_driver_user=root -storage_driver_password=root -storage_driver_secure=false ``` > (需要事先在influxdb中创建数据库cadvisor, storage_driver_secure表示是否使用https) ## 数据存入 Prometheus 中 ```bash $ docker run -itd -p 8080:8080 --name cadvisor \ -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro google/cadvisor:v0.23.8 \ -storage_driver=prometheus -prometheus_endpoint= ```