Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Grafana+cadvisor+influxdb uses docker-compose to realize Monitoring

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

/ / copy the following directly to the docker-compose.yml file. Execute the command docker-compose up-d

After visiting the rest of the http://ip:3000, connect to the database and monitor your own Baidu.

Version:'3'

Services:

Influxdb:

Image: tutum/influxdb:0.9

Container_name: influxdb

Restart: always

Environment:

PRE_CREATE_DB=cadvisor

Ports: "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: "8080Rank 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: "3000MOS 3000"

Environment:HTTP_USER=adminHTTP_PASS=adminINFLUXDB_HOST=influxsrvINFLUXDB_PORT=8086INFLUXDB_NAME=cadvisorINFLUXDB_USER=rootINFLUXDB_PASS=root

Volumes:

InfluxdbData:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report