telemetry

package
v0.0.0-...-97c84cb Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "az"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContinuousRecorder

type ContinuousRecorder interface {
	Recorder
	ContinuousRecord(ctx context.Context)
}

type Recorder

type Recorder interface {
	Record()
}

type TeleConfig

type TeleConfig struct {
	PushTelemetry         bool          `help:"Push telemetry to Push Gateway" env:"PUSH_TELEMETRY" optional:""`
	PrintTelemetry        bool          `help:"Logs telemetry as info" env:"PRINT_TELEMETRY" optional:""`
	PushGatewayUrl        string        `help:"Address of Push Gateway" env:"PUSH_GATEWAY_URL" default:"http://localhost:9091"`
	TelemetryJobName      string        `help:"Name for the job" env:"TELEMETRY_JOB_NAME" default:"az"`
	TelemetryJobId        string        `help:"Job identifier (random id by default)" env:"TELEMETRY_JOB_ID" optional:""`
	PushGatewayUpdateRate time.Duration `help:"Defines how often push will be made" env:"PUSH_GATEWAY_UPDATE_RATE" default:"60s"`
}

func (TeleConfig) NewRecorder

func (c TeleConfig) NewRecorder() ContinuousRecorder

Jump to

Keyboard shortcuts

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