首页 > 运维 > Linux > k8s安装pushgateway并推送数据
2021
06-23

k8s安装pushgateway并推送数据

pushgateway的deployment文件内容

参数说明地址

pushgateway的service文件内容

pushgateway的ingress文件内容

访问:http://push-prometheus.ttt.mucang.cn/

2、在Prometheus中配置pushgateway及pull pushgateway数据配置

重新应用prometheus即可

3. 推送指定的数据格式到pushgateway

从prometheus查找

4. 添加复杂数据 

5. 删除某个组下某个实例的所有数据

6.把数据上报到pushgateway

在被监控服务所在的机器配置数据上报,这个脚本是采集内存信息的

打开pushgateway web ui界面,可看到如下: 

打开prometheus ui界面,可看到如下memory_usage的metrics指标 

设置计划任务,每分钟定时上报数据

最后编辑:
作者:shooter
这个作者貌似有点懒,什么都没有留下。