@ -28,12 +28,17 @@ func PrometheusHandler() gin.HandlerFunc {
func PromeInc(counter prometheus.Counter) {
if config.Config.Prometheus.Enable {
counter.Inc()
if counter != nil {
}
func PromeAdd(counter prometheus.Counter, add int) {
counter.Add(float64(add))