✨✨ 欢迎大家来到景天科技苑✨✨ 🎈🎈 养成好习惯,先赞后看哦~🎈🎈 文章目录 PushGateway推送网关服务 1、PushGateway介绍 2、安装PushGateway 1)访问PushGateway官网 2)解压pushgateway 3)编写pushgateway启动文件 4)启动pushgateway 5)手动使用curl命令来推送一些数据 3、配置prometheus 1)修改prometheus配置文件 4、编写脚本并推送指标 1)编写脚本 2)执行脚本,需要传递个应用程序名称 3)在 Prometheus UI 中检查 backup_duration_seconds 和 backup_success 指标 4)给执行脚本添加个告警规则