“Pushgateway”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
 
(未显示同一用户的5个中间版本)
第1行: 第1行:
 
[[category:ops]] [[category:container]] [[category:prom]]
 
[[category:ops]] [[category:container]] [[category:prom]]
 
==
 
==
 +
==inst==
 +
<pre>
 +
wget https://github.com/prometheus/pushgateway/releases/download/v0.10.0/pushgateway-0.10.0.linux-amd64.tar.gz
 +
cd /usr/lib/systemd/system
 +
[root@node01 system]#  vim pushgateway.service
 +
[root@node01 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
 +
[root@node01 system]# systemctl enable pushgateway
 +
Created symlink from /etc/systemd/system/multi-user.target.wants/pushgateway.service to /usr/lib/systemd/system/pushgateway.service.
 +
[root@node01 system]# systemctl start pushgateway
 +
[root@node01 system]# systemctl status pushgateway
 +
</pre>
  
 
如何展示到 grafa
 
如何展示到 grafa
  
 
=see also=
 
=see also=
 +
[https://my.oschina.net/54188zz/blog/3071312 Prometheus-PushGateway]
 +
 +
 +
[https://www.cnblogs.com/xiao987334176/p/9933963.html 基于Prometheus的Pushgateway实战]
 +
[https://blog.csdn.net/aixiaoyang168/article/details/102818289?utm_medium=distribute.pc_relevant.none-task-blog-title-3&spm=1001.2101.3001.4242#4API__Push__PushGateway_65  Prometheus 使用 PushGateway 进行数据上报采集]
 +
 +
[https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_liunx_67_prometheus_pushgateway.html  prometheus学习系列十一: Prometheus pushgateway的使用 ]
 +
 +
 
https://github.com/prometheus/pushgateway
 
https://github.com/prometheus/pushgateway
 +
 +
 +
  
  
 
[https://itnext.io/ephemeral-jobs-monitoring-using-prometheus-pushgateway-917b33486564 Ephemeral Jobs Monitoring Using Prometheus PushGateway]
 
[https://itnext.io/ephemeral-jobs-monitoring-using-prometheus-pushgateway-917b33486564 Ephemeral Jobs Monitoring Using Prometheus PushGateway]
 +
 +
==java==
 +
[https://stackoverflow.com/questions/44562342/push-metrics-to-prometheus-pushgateway-in-spring-boot Push metrics to Prometheus Pushgateway in Spring Boot]

2020年9月24日 (四) 07:28的最新版本

==

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
[root@node01 system]#  vim pushgateway.service
[root@node01 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
[root@node01 system]# systemctl enable pushgateway 
Created symlink from /etc/systemd/system/multi-user.target.wants/pushgateway.service to /usr/lib/systemd/system/pushgateway.service.
[root@node01 system]# systemctl start pushgateway
[root@node01 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