Skip to content

Commit 02fe015

Browse files
feature: Added fiber metrics
1 parent fd349b2 commit 02fe015

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/routes/index.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package routes
22

33
import (
44
"github.com/gofiber/fiber/v2"
5+
"github.com/gofiber/fiber/v2/middleware/monitor"
56
"github.com/limanmys/render-engine/app/handlers"
67
)
78

@@ -40,4 +41,7 @@ func Install(app *fiber.App) {
4041

4142
// external api proxy
4243
app.Post("/externalAPI", handlers.ExternalAPI)
44+
45+
// metrics
46+
app.Get("/metrics", monitor.New())
4347
}

0 commit comments

Comments
 (0)