metrics

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKind, _      = tag.NewKey("errKind")
	Method, _       = tag.NewKey("method")
	Found, _        = tag.NewKey("found")
	FoundCaskade, _ = tag.NewKey("foundCaskade")
	FoundRegular, _ = tag.NewKey("foundRegular")
	Version, _      = tag.NewKey("version")
	Transport, _    = tag.NewKey("transport")
)

Global Tags

View Source
var (
	FindLatency                = stats.Float64("indexstar/find/latency", "Time to respond to a find request", stats.UnitMilliseconds)
	FindBackends               = stats.Float64("indexstar/find/backends", "Backends reached in a find request", stats.UnitDimensionless)
	FindLoad                   = stats.Int64("indexstar/find/load", "Amount of calls to find", stats.UnitDimensionless)
	FindResponse               = stats.Int64("indexstar/find/response", "Find response stats", stats.UnitDimensionless)
	HttpDelegatedRoutingMethod = stats.Int64("indexstar/http_delegated_routing/load", "Amount of HTTP delegated routing calls by tagged method", stats.UnitDimensionless)
)

Measures

Functions

func Start

func Start(views []*view.View) http.Handler

Start creates an HTTP router for serving metric info

func WithProfile

func WithProfile() http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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