metric

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetadataLatency = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Name: "aliyun_metadata_latency",
			Help: "aliyun metadata latency in ms",
		},
		[]string{"url", "error"},
	)
)
View Source
var (
	OpenAPILatency = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Name: "aliyun_openapi_latency",
			Help: "aliyun openapi latency in ms",
		},
		[]string{"api", "error"},
	)
)
View Source
var (
	RPCLatency = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Name: "terway_rpc_lantency_ms",
			Help: "terway rpc latency in ms",
		},
		[]string{"rpc_api", "error"},
	)
)

Functions

func MsSince

func MsSince(start time.Time) float64

MsSince returns milliseconds since start.

func RegisterPrometheus

func RegisterPrometheus()

Types

This section is empty.

Jump to

Keyboard shortcuts

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