当前位置:网站首页>pushgateway安装及Prometheus配置
pushgateway安装及Prometheus配置
2022-07-22 08:01:00 【shy_snow】
pushgateway相当于Prometheus的中转站, 程序可以主动将数据推送给pushgateway并缓存起来,等待Prometheus拉取pushgateway中暂存的数据。可以在一些网络不直达的情况下充当代理,以及在某些生命周期较短不能等待Prometheus拉取的情况下使用pushgateway作为中转站暂存数据。
下载pushgateway-1.4.3.linux-amd64.tar.gz 解压缩到指定目录
下载地址 https://github.com/prometheus/pushgateway/releases
tar xzvf pushgateway-1.4.3.linux-amd64.tar.gz
mv pushgateway-1.4.3.linux-amd64 /usr/local/pushgateway
查看 pushgateway默认端口9091
curl localhost:9091/metrics #访问 pushgateway-server:9091/metrics可以看到指标
- job_name: pushgateway
honor_labels: true
static_configs:
- targets: ['192.168.129.102:9091']
labels:
instance: pushgateway
service: pushgatewayservice
可以通过Prometheus Web端查看 http://192.168.129.102:9090/targets 中是否有设置的 pushgateway 的metrics。
边栏推荐
- 力扣练习——27 翻转矩阵后的得分
- MySQL constraints
- go对接口简单理解
- GBase8s数据库INTERSECT 运算符
- GBase8s数据库标识连接
- [harmony OS] [ark UI] [demo] loading animation
- Pytorch实现Word2Vec
- [opencv introduction practice] use the front camera of the computer for face detection
- Aruba学习笔记04-Web UI --Configuration面板介绍
- Rk3399 platform development series explanation (input subsystem) 4.52. Implementation principle of input subsystem
猜你喜欢
[harmony OS] [ark UI] [demo] loading animation
Data link layer of network (PPP Protocol)
[cloud native] docker deployment database persistence
Bigder:37/100 一个误操作
Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
从0开始教你编写Makefile文件
Rk3399 platform development series explanation (alsa subsystem) 4.37, alsa driven framework
在线XML转CSV工具
[HMS core] [Health Kit] [FAQ] collection of data subscription function questions
【Excle】生成guid和datetime导入测试数据到数据库
随机推荐
Allegro如何导入高清Logo、二维码、防静电标识等图片以及汉字
GBase8sUNION ALL 运算符
地图找房的实例
Install vscode offline
GBase8s数据库MINUS 运算符
[case sharing] configure the routing penetration function of IS-IS
Replace spaces in niuke.com
Fibonacci series of Niuke network
Zabbix5.0.8-ODBC监控oracle11g
Bigder: common business terms in 36/100 report testing
MySQL数据库结合项目实战SQL优化总结
使用 Abp.Zero 搭建第三方登录模块(三):网页端开发
MySQL constraints
GBase8s数据库UNION 运算符
JS to determine whether the linked image exists
Conference OA project
阿我就是舅舅卡空间
Physical layer of network
Branch and loop statements
How to carry out efficient data governance? Index management and data traceability help!