middleware

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

type Prometheus struct {
	Namespace  string
	Subsystem  string
	MetricPath string
	// contains filtered or unexported fields
}

Prometheus of prometheus monitor

func NewPrometheus

func NewPrometheus(namespace string, subsystem string) *Prometheus

NewPrometheus for prometheus

func (*Prometheus) HandlerPrometheus

func (m *Prometheus) HandlerPrometheus() fiber.Handler

HandlerPrometheus for prometheus collect data

func (*Prometheus) Register

func (m *Prometheus) Register(app *fiber.App)

Register app for metrics collect

func (*Prometheus) SetupPath

func (m *Prometheus) SetupPath(app *fiber.App)

SetupPath for metrics view

Jump to

Keyboard shortcuts

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