metrics

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

README

Metrics (prometheus)

The metrics module is designed to be used in combination with the fiber.Module:

app := fx.New(
	env.Module,
	logrus.Module,
	metrics.Module,
	fiber.Module,
)
app.Run()

It wil provide a /metrics http route that provides metrics for use with prometeus.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Invoke(
		usePrometheusMetricsEndpoint,
	),
)

Functions

func MetricsMiddleware added in v1.1.0

func MetricsMiddleware() fiber.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL