Pushgateway

来自linux中国网wiki
跳到导航 跳到搜索

==

inst

wget https://github.com/prometheus/pushgateway/releases/download/v0.10.0/pushgateway-0.10.0.linux-amd64.tar.gz
 cd /usr/lib/systemd/system
[[email protected] system]#  vim pushgateway.service
[[email protected] system]# cat pushgateway.service 
[Unit]
Description=prometheus
After=network.target 

[Service]
User=prometheus
Group=prometheus
WorkingDirectory=/usr/local/prometheus/pushgateway
ExecStart=/usr/local/prometheus/pushgateway/pushgateway \
                --web.enable-admin-api  \
                --persistence.file="pushfile.txt" \
                --persistence.interval=10m 
[Install]
WantedBy=multi-user.target
[[email protected] system]# systemctl enable pushgateway 
Created symlink from /etc/systemd/system/multi-user.target.wants/pushgateway.service to /usr/lib/systemd/system/pushgateway.service.
[[email protected] system]# systemctl start pushgateway
[[email protected] system]# systemctl status pushgateway 

如何展示到 grafa

see also

Prometheus-PushGateway


基于Prometheus的Pushgateway实战 Prometheus 使用 PushGateway 进行数据上报采集

prometheus学习系列十一: Prometheus pushgateway的使用


https://github.com/prometheus/pushgateway



Ephemeral Jobs Monitoring Using Prometheus PushGateway

java

Push metrics to Prometheus Pushgateway in Spring Boot