美文网首页
Mac 安装prometheus

Mac 安装prometheus

作者: matthewfly | 来源:发表于2020-11-03 14:14 被阅读0次

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

页面样式,可以输入查看指标数据:


image.png

相关文章

网友评论

      本文标题:Mac 安装prometheus

      本文链接:https://www.haomeiwen.com/subject/kkybvktx.html