telemetry

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const MetricWaitInterval = time.Second * 2

Variables

View Source
var (
	MetricServer string
)

Functions

func Init

func Init(l log.Logger, conf config.TelemetryConfig) (func(), error)

func MetricsServer

func MetricsServer(addr string) *http.Server

func NewCounter added in v0.7.0

func NewCounter(metric string, labels map[string]string) prometheus.Counter

func NewGauge added in v0.7.0

func NewGauge(metric string, labels map[string]string) prometheus.Gauge

func SetGaugeViaPush added in v0.11.1

func SetGaugeViaPush(name string, labels map[string]string, val float64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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