hongbo-miao/hongbomiao.com

View on GitHub
api-go/internal/shared/handlers/prometheus_handler.go

Summary

Maintainability
A
0 mins
Test Coverage
package handlers

import (
    "github.com/gin-gonic/gin"
    "github.com/prometheus/client_golang/prometheus/promhttp"
)

func PrometheusHandler() gin.HandlerFunc {
    h := promhttp.Handler()
    return gin.WrapH(h)
}