step1: brew
安装Prometheus
,命令如下:
brew install prometheus
step2:
brew
安装grafana
,命令如下:
brew install grafana
step3: 启动Prometheus和grafana,命令如下:
brew services start prometheus
brew services start grafana
step4:验证prometheus是否安装成功:http://localhost:9090,显示如下界面,表示成功
step5:验证Grafana是否安装成功:http://localhost:3000,显示如下界面,表示成功
step6:
grafana
的账号密码均为admin
,登录成功页面如下: step7:grafana配置数据源为prometheus:


step8:输入prometheus地址并拉到最低部测试
步骤一步骤二

step9:创建panel:
最后,接收到的指标信息都会在上面显示。