stats

package
v0.0.0-...-9a5b211 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogReporter

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

NewLogReporter 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