其他分享
首页 > 其他分享> > mac搭建环境Prometheus + Grafana

mac搭建环境Prometheus + Grafana

作者:互联网

参考:https://www.cnblogs.com/yjmyzz/p/how-to-install-prometheus-and-grafana.html

1,启动prometheus:

cd /usr/local/Cellar/prometheus/2.35.0/bin,,,,(./prometheus,然后浏览器输入 http://localhost:9090)

2,启动grafana: 

cd /usr/local/Cellar/grafana/8.5.1

grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana --packaging=brew cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins

)然后在浏览http://localhost:3000/进入首页(注:如需修改默认端口,可修改/usr/local/etc/grafana/grafana.ini 这个文件),默认用户名/密码,都是admin,使用前必须更改密码

3,启动pushgateway:

cd到目录下面,(./pushgateway),浏览http://localhost:9091 可以看到

标签:default,cfg,Prometheus,grafana,mac,usr,prometheus,Grafana,local
来源: https://www.cnblogs.com/IceSparks/p/16459759.html