Start Influxdb
Docker run-d--net=host-e pre_create_db=cadvisor--name influxsrv tutum/influxdb:0.8.8
Start Cadvisor
Docker run--volume=/:/rootfs:ro--volume=/var/run:/var/run:rw--volume=/sys:/sys:ro--volume=/var/lib/docker/:/va R/lib/docker:ro--publish=8080:8080--detach=true--name=cadvisor-e run_opts= "-storage_driver=influxdb-storage_d river_host=hostip:8086 "Logbase/cadvisor-influxdb
Abnormal:
At the beginning, the INFLUXDB executes the list series without data, knowing that cadvisor is not transmitting to DB
/usr/bin/cadvisor--logtostderr--v=2 View detailed log, usually network problems, the official image has been a problem, unable to read the network status, so replace the mirror
Start Grafana
Docker run-d--net=host-e http_user=admin-e http_pass=admin-e influxdb_host=localhost-e influxdb_port=8086-e INFLUXD B_NAME=CADVISOR-E influxdb_user=root-e influxdb_pass=root--name Grafana grafana/grafana:2.0.2
This article is from the "Silver Fox" blog, please be sure to keep this source http://foxhound.blog.51cto.com/1167932/1774410
Build Cadvisor + INFLUXDB + Grafna Monitoring System