Grafana是一款開源的分析平臺。react
Grafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored. Create, explore, and share dashboards with your team and foster a data driven culture.docker
支持的數據源(本文使用Prometheus數據源):json
安裝spa
以Container運行Grafana:code
docker run -d -i -p 3000:3000 \ -e "GF_SERVER_ROOT_URL=http://grafana.server.name" \ -e "GF_SECURITY_ADMIN_PASSWORD=secret" \ --net=host \ grafana/grafana
登陸Web,用戶名爲 admin 密碼爲 secretserver
配置數據源blog
建立Dashboardit
一、先去官網下載Docker Dashboard: https://grafana.com/dashboards?dataSource=prometheus&search=dockerclass
下載這個docker dashboard的json格式登錄
二、配置dashboard,點擊New dashboard
選擇Import dashboard, 而後選擇剛纔下載的json文件
這個Docker dashboard是否是很漂亮