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) 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.
Click to show internal directories.
Click to hide internal directories.