为了方便对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
网友评论