This commit is contained in:
wangchuxiao 2022-09-14 19:28:17 +08:00
parent 5ce0cf1aad
commit 7e5b62377f

View File

@ -31,3 +31,9 @@ func PromeInc(counter prometheus.Counter) {
counter.Inc()
}
}
func PromeAdd(counter prometheus.Counter, add int) {
if config.Config.Prometheus.Enable {
counter.Add(float64(add))
}
}