Registry /
observability / ansrivas-fiberprometheus-v2
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
fiberprometheus
✓ github.com/ansrivas/fiberprometheus/v2
Adds Prometheus metrics middleware to a Fiber app.
package main
import (
"github.com/gofiber/fiber/v2"
"github.com/ansrivas/fiberprometheus/v2"
)
func main() {
app := fiber.New()
prometheus := fiberprometheus.New("my-service")
prometheus.RegisterAt(app, "/metrics")
app.Use(prometheus.Middleware)
app.Get("/", func(c *fiber.Ctx) error {
return c.SendString("Hello")
})
app.Listen(":3000")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.17.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.