$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5219998e1a62 tutum/influxdb "/run.sh" 15 minutes ago Up 15 minutes 0.0.0.0:8083->8083/tcp, 0.0.0.0:8086->8086/tcp influxdb
root at tiger-ali in /tmp $ docker exec -it influxdb influx Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring. Connected to http://localhost:8086 version 1.0.0 InfluxDB shell version: 1.0.0 > show databases name: databases --------------- name _internal
> show users user admin
> create database "cadvisor" > show databases name: databases --------------- name _internal cadvisor
> CREATE USER admin WITH PASSWORD '123456' WITH ALL PRIVILEGES > show users user admin admin true
root at tiger-ali in ~ $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9b7b5d4228a4 tutum/influxdb "/run.sh" 3 minutes ago Exited (137) About a minute ago influxdb fad0feb2c56a grafana/grafana "/run.sh" 17 minutes ago Up 17 minutes 0.0.0.0:3000->3000/tcp grafana
现在可以通过浏览访问cadisor的管理页面
测试是否写入influxdb数据库
布署granafa
1 2
root at tiger-ali in ~ $ docker run -d --name grafana -p 3000:3000 grafana/grafana