1. 获取镜像
# 查看可用的稳定版本
sudo docker search grafana
sudo docker pull grafana/grafana
sudo docker image ls |grep grafana
2. 启动容器
sudo docker run -d --name=grafana -p 13000:3000 grafana/grafana
sudo docker ps |grep grafana
sudo docker start grafana
sudo docker restart grafana
sudo docker stop grafana
sudo docker rm grafana
3. 验证
Web UI:http://LTSR003:13000 (admin/admin)
4. 示例
- 系统运行指标监控(grafana v6.7.x、v7.x,Node Exporter v0.16+)
- Docker运行指标监控(grafana v6.5.2+,cAdvisor)
- ID:11600
- URL:https://grafana.com/grafana/dashboards/11600
- JSON:docker-container_rev1.json
参考
简书:使用Flink Metric Reporter对flink任务指标进行监控
https://www.jianshu.com/p/d09bf7d540e9