Prometheus middleware for the Fiber web framework in Go, providing HTTP metrics collection.
fiberprometheus is a Prometheus middleware for the Fiber web framework in Go. It automatically collects HTTP metrics like request counts, durations, and concurrency from Fiber applications, enabling monitoring and observability. The middleware exposes these metrics via a `/metrics` endpoint for Prometheus to scrape.
Go developers using the Fiber framework who need to monitor their web applications with Prometheus. It's particularly useful for teams implementing observability in microservices or API servers.
Developers choose fiberprometheus for its simplicity and tight integration with Fiber, requiring minimal code to add comprehensive HTTP metrics. It offers customizable labels and filtering options, making it a lightweight yet powerful alternative to manual instrumentation.
prometheus middleware for Fiber
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Simple middleware registration and automatic `/metrics` endpoint setup, as shown in the example where a few lines add full Prometheus support without complex configuration.
Supports service name, namespace, subsystem, and custom key-value labels, enabling detailed metric segmentation for multi-service environments, per the README's NewWithLabels option.
Allows skipping specific paths (e.g., health checks) and ignoring HTTP status codes (like 404s), reducing noise in metrics through SetSkipPaths and SetIgnoreStatusCodes methods.
Includes a ready-to-use Grafana dashboard (ID 14331) for visualizing metrics, speeding up monitoring setup without needing to design dashboards from scratch.
Exclusively designed for the Fiber framework, making it useless for other Go web frameworks and creating vendor lock-in if you ever migrate away from Fiber.
Only covers HTTP-level metrics (requests, duration, concurrency), lacking support for application-specific or custom metrics without additional Prometheus client instrumentation.
The README notes an ongoing migration to the official gofiber/contrib repo, which could introduce breaking changes or require updates, adding uncertainty for production use.