下载部署包
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