metrics

package
v0.0.0-...-4429484 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID         = "metrics"
	Topic      = "metric-drain"
	PubCommand = "pub " + Topic + " -b=false"
	SubCommand = "sub " + Topic + " -k"
)

Variables

This section is empty.

Functions

func ReadMetrics

func ReadMetrics(ctx context.Context, logger *slog.Logger, connectionInfo *pipe.SSHClientInfo) (io.Reader, error)

ReadLogs reads metrics from a metric drain.

func ReconnectReadMetrics

func ReconnectReadMetrics(ctx context.Context, logger *slog.Logger, connectionInfo *pipe.SSHClientInfo, buffer int, timeout time.Duration) io.Reader

ReconnectReadMetrics reads metrics from a remote metric drain and reconnects even if the initial connection fails.

func RegisterReconnectMetricRecorder

func RegisterReconnectMetricRecorder(ctx context.Context, logger *slog.Logger, info *pipe.SSHClientInfo, buffer int, timeout time.Duration) io.Writer

RegisterReconnectMetricRecorder registers a logger that forwards log records to a remote log drain and reconnects even if the initial connection fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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