Linux下安装Docker请参考:Linux安装Docker
简介
Pushgateway是Prometheus的一个组件,prometheus server默认是通过Exporter主动获取数据(默认采取pull拉取数据),Pushgateway则是通过exporter主动方式推送数据到Pushgateway,再由Prometheus主动去拉取 Pushgateway数据,用户可以写一些自定义的监控脚本把需要监控的数据发送给Pushgateway。从prometheus server角度看,都是由prometheus server主动去拉取各个数据源(例:Exporter和Pushgateway)的数据。
运行命令
docker run -d -p9091:9091 prom/pushgateway
查看启动情况
docker ps -a

 UP状态,启动成功,端口9091
访问PushGateway
URL:IP:端口号(本次设置为9091)
 











![jenkins运行pytest测试用例脚本报错:没有权限,无法写日志PermissionError:[Error 13]Permission denied](https://img-blog.csdnimg.cn/93f2bf078f22492bacd4e3ad1356cfd3.png#pic_center)


![[Go版]算法通关村第十三关黄金——数字数学问题之数论问题(最大公约数、素数、埃氏筛、丑数)](https://img-blog.csdnimg.cn/428862e6c0034036979c3c7ccf93f534.png)




