brew直接安装:
brew install grafana
启动grfana:
brew services start grafana
启动后显示:
==> Successfully started `grafana` (label: homebrew.mxcl.grafana)
grafana默认端口号为:3000,默认用户密码为:admin
浏览器打开并登陆:
http://127.0.0.1:3000
首页:
image.png
点击data source添加数据源(以prometheus为例):
选择prometheus:
image.png
命名,并选择接入的prometheus地址:
image.png
点击save and test,如果prometheus在运行,会出现提示:
image.png
创建仪表盘,添加面板:
image.png
选择前面添加的数据源:
image.png
选择metrics数据项可以看到数据:
image.png
image.png
网友评论