美文网首页
Prometheus PushGateWay

Prometheus PushGateWay

作者: 一生逍遥一生 | 来源:发表于2019-12-02 14:49 被阅读0次

为了方便对Prometheus的收集属性的操作,需要将添加一个Push Gate Way,可以使用安装包进行安装,也可以使用docker安装。

Docker 安装 pushgateway

docker run -d -p 9091:9091 prom/pushgateway

增加到Prometheus

在Prometheus配置文件中,添加如下的内容

- job_name: pushgateway
    static_configs:
    - targets: ['localhost:9091']

参考文献

Install Pushgateway to Expose Metrics to Prometheus
prometheus/pushgateway
Prometheus Pushgateway

相关文章

网友评论

      本文标题:Prometheus PushGateWay

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