brew直接安装:
brew install prometheus
prometheus默认配置,:
global:
scrape_interval: 15s
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
启动:
prometheus --config.file=/usr/local/etc/prometheus.yml
浏览器9090端口打开:
localhost:9090
页面样式,可以输入查看指标数据:

网友评论