随笔分类 -  prometheus

prometheus配置自己电脑ip查看指标
摘要:1.使用ipconfig获取自己电脑ip,在服务器使用:curl ip:1234 命令查看是否通,不通的话可能要关闭防火墙 2.在服务器的Prometheus安装目录: 编辑:prometheus.yml文件 这里配置你的电脑ip,保存,使用:ps -ef|grep prometheus,杀掉当前P 阅读全文
posted @ 2023-11-30 09:56 代码吴彦祖 阅读(109) 评论(0) 推荐(0)
java把mysql的数据同步到prometheus
摘要:1.mysql的数据 2.java代码 建立指标Collector类,指标类必须继承Collector import cn.hutool.extra.spring.SpringUtil; import com.xlkh.prometheus.pojo.device.DeviceMonitorMetr 阅读全文
posted @ 2023-11-29 14:40 代码吴彦祖 阅读(159) 评论(0) 推荐(0)