Loading

摘要: 这里监控了一个访问端点/ping次数 package main import ( "regexp" "github.com/gin-gonic/gin" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/c 阅读全文
posted @ 2022-11-03 10:32 头痛不头痛 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 目标: 自己编写监控指标(记录页面点击次数),然后在granfa中展示 1. 编写exporter package main import ( "fmt" "net/http" "github.com/prometheus/client_golang/prometheus" "github.com/ 阅读全文
posted @ 2022-11-03 10:28 头痛不头痛 阅读(208) 评论(0) 推荐(0) 编辑