echoprometheus

package
v0.0.0-...-8438809 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 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 {
	MetricsPath string
	// contains filtered or unexported fields
}

Prometheus contains the metrics gathered by the instance and its path

func NewPrometheus

func NewPrometheus(subsystem string) *Prometheus

NewPrometheus generates a new set of metrics with a certain subsystem name

func (*Prometheus) IncCustomCounter

func (p *Prometheus) IncCustomCounter()

inc custom counter

func (*Prometheus) NewCustomCounter

func (p *Prometheus) NewCustomCounter(key string, des string)

init custom counter

func (*Prometheus) Use

func (p *Prometheus) Use(e *echo.Echo)

Use adds the middleware to a echo enechoe.

Jump to

Keyboard shortcuts

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