pushgateway 操作使用

下载部署包

https://github.com/prometheus/pushgateway/releases/download/v0.4.0/pushgateway-0.4.0.linux-amd64.tar.gz

docker部署pushgateway

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

修改Prometheus配置

  - job_name: pushgateway
    static_configs:
      - targets: ['172.27.65.10:9091']
        labels:
          instance: pushgateway

 

上一篇:Prometheus 使用Python推送指标数据到Pushgateway


下一篇:prometheus之pushgateway