reporter

package
v0.25.2 Latest Latest
Warning

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

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

Documentation

Overview

Package reporter periodically submits metrics back to the cloud.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(
	ctx context.Context,
	conn *grpc.ClientConn,
	opts ...Option,
) error

Run starts loop that pushes metrics via OTEL protocol until ctx is canceled

Types

type Option

type Option func(*config)

Option is a functional option for configuring the dialhome package.

func WithCollectInterval

func WithCollectInterval(interval time.Duration) Option

WithCollectInterval sets the collect interval for metrics to be queried.

func WithMetrics

func WithMetrics(fns ...func(metric.Meter) error) Option

WithMetrics adds metrics to be collected

func WithShutdownTimeout

func WithShutdownTimeout(timeout time.Duration) Option

WithShutdownTimeout sets the shutdown timeout to use for dialhome.

Jump to

Keyboard shortcuts

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