Mac 安装prometheus
brew install prometheus
启动prometheus
prometheus --config.file=/usr/local/etc/prometheus.yml
#web UI
localhost:9090
docker启动prometheus
docker run --name prometheus -d -p 127.0.0.1:9090:9090 prom/prometheus
docker run -d -p 9090:9090 -v /Users/yangyijun/workspace/soft/prometheus-2.34.0/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
安装启动node_exporter
brew install node_exporter
brew services start node_exporter
启动后,可以通过http://localhost:9100/查看,如图:
参考资料:https://www.jianshu.com/p/67087e164144