【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
grafana+Prometheus
本文全部基于docker 用到内部连接请注意
编辑文件 docker-compose.yml
version: '3'
services:
myprometheus:
container_name: myprometheus
image: prom/prometheus
restart: always
ports:
- 9090:9090
#volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- code-prom-network
mygrafana:
container_name: mygrafana
image: grafana/grafana
restart: always
ports:
- 3000:3000
networks:
- code-prom-network
networks:
code-prom-network:
driver: bridge
docker-compose up -d
http://127.0.0.1:3000 这个根据自己开启端口访问就行了
admin/admin 修改自己的密码
http://myprometheus:9090
大功告成!!!
来源:oschina
链接:https://my.oschina.net/Alexmyj/blog/3143543