stats

package
v0.0.0-...-e01fbee 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 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugReporter

func NewDebugReporter(logger *zap.Logger) tally.StatsReporter

NewDebugReporter returns a tally reporter that logs to the provided logger at debug level. This is useful for local development where the usual sinks are not available or refreshing the prometheus endpoint is not desirable.

func NewStatsdReporter

func NewStatsdReporter(cfg *gatewayv1.Stats_StatsdReporter) (tally.StatsReporter, error)

Types

type RuntimeStatCollector

type RuntimeStatCollector struct {
	// contains filtered or unexported fields
}

func NewRuntimeStats

func NewRuntimeStats(scope tally.Scope, cfg *gatewayv1.Stats_GoRuntimeStats) *RuntimeStatCollector

func (*RuntimeStatCollector) Collect

func (r *RuntimeStatCollector) Collect(ctx context.Context)

Jump to

Keyboard shortcuts

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