Skip to content

Commit

Permalink
feature: Added fiber metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
zekiahmetbayar committed Jul 18, 2023
1 parent fd349b2 commit 02fe015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/routes/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package routes

import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/monitor"
"github.com/limanmys/render-engine/app/handlers"
)

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

// external api proxy
app.Post("/externalAPI", handlers.ExternalAPI)

// metrics
app.Get("/metrics", monitor.New())
}

0 comments on commit 02fe015

Please sign in to comment.