verification/internal/controllers/admin/prometheus/route.go

15 lines
300 B
Go
Raw Normal View History

2024-12-09 20:51:26 +00:00
package prometheus
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/adaptor"
)
func (receiver *Prometheus) Register(router fiber.Router) {
router.Get("/metrics", adaptor.HTTPHandlerFunc(receiver.Metrics))
}
func (receiver *Prometheus) Name() string {
return ""
}