Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PromMiddleware ¶
type PromMiddleware struct { Namespace string Subsystem string MetricPath string // contains filtered or unexported fields }
PromMiddleware of prometheus monitor
func NewPromMiddleware ¶
func NewPromMiddleware(namespace string, subsystem string) *PromMiddleware
NewPromMiddleware for prometheus
func (*PromMiddleware) PrometheusHandler ¶
func (m *PromMiddleware) PrometheusHandler() fiber.Handler
PrometheusHandler for prometheus collect data
func (*PromMiddleware) Register ¶
func (m *PromMiddleware) Register(app *fiber.App)
Register app for metrics collect
func (*PromMiddleware) SetupPath ¶
func (m *PromMiddleware) SetupPath(app *fiber.App)
SetupPath for metrics view
Click to show internal directories.
Click to hide internal directories.