metrics

package
v0.0.0-...-7b65136 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBadRequest

func AddBadRequest(method string, code int32)

func AddRequest

func AddRequest(method string, code int32, du time.Duration)

func CountEvent

func CountEvent(topic, appType, event string)

func CounterAdd

func CounterAdd(action string, delta float64)

func HttpHandler

func HttpHandler() http.Handler

HttpHandler return prometheus http handler

func RequestMetrics

func RequestMetrics(label string, in endpoint.Endpoint) endpoint.Endpoint

RequestMetrics is LabeledMiddleware, collect request count and latency

Types

This section is empty.

Jump to

Keyboard shortcuts

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