//以下內(nèi)容直接復制到 docker-compose.yml 文件中。執(zhí)行命令docker-compose up -d
之后訪問 http://ip:3000 剩下的之后的測試連接數(shù)據(jù)庫和監(jiān)控自己百度
創(chuàng)新互聯(lián)建站專注于網(wǎng)站建設(shè)|成都網(wǎng)站維護|優(yōu)化|托管以及網(wǎng)絡(luò)推廣,積累了大量的網(wǎng)站設(shè)計與制作經(jīng)驗,為許多企業(yè)提供了網(wǎng)站定制設(shè)計服務(wù),案例作品覆蓋成都混凝土攪拌機等行業(yè)。能根據(jù)企業(yè)所處的行業(yè)與銷售的產(chǎn)品,結(jié)合品牌形象的塑造,量身設(shè)計品質(zhì)網(wǎng)站。
version: '3'
services:
influxdb:
image: tutum/influxdb:0.9
container_name: influxdb
restart: always
environment:
- PRE_CREATE_DB=cadvisor
ports: - "8083:8083"
- "8086:8086"
expose: - "8090"
- "8099"
volumes: - influxdbData:/data
cadvisor:
image: google/cadvisor
container_name: cadvisor
links: - influxdb:influxsrv
command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=influxsrv:8086
restart: always
ports: - "8080:8080"
volumes: - /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
grafana:
image: grafana/grafana
container_name: grafana
restart: always
links: - influxdb:influxsrv
ports: - "3000:3000"
environment: - HTTP_USER=admin
- HTTP_PASS=admin
- INFLUXDB_HOST=influxsrv
- INFLUXDB_PORT=8086
- INFLUXDB_NAME=cadvisor
- INFLUXDB_USER=root
- INFLUXDB_PASS=root
volumes:
influxdbData:
分享題目:grafana+cadvisor+influxdb使用docker-compose實現(xiàn)監(jiān)控
本文來源:
http://weahome.cn/article/jjhhge.html