metrics

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 0 Imported by: 0

README

Metrics

prometheus

go get -u github.com/go-kratos/kratos/contrib/metrics/prometheus/v2

datadog

go get -u github.com/go-kratos/kratos/contrib/metrics/datadog/v2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter interface {
	With(lvs ...string) Counter
	Inc()
	Add(delta float64)
}

Counter is metrics counter.

type Gauge

type Gauge interface {
	With(lvs ...string) Gauge
	Set(value float64)
	Add(delta float64)
	Sub(delta float64)
}

Gauge is metrics gauge.

type Observer

type Observer interface {
	With(lvs ...string) Observer
	Observe(float64)
}

Observer is metrics observer.

Jump to

Keyboard shortcuts

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