config

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MetricsEnabled   bool   `toml:"enabled"`
	MeterName        string `toml:"meter_name"`
	ServiceName      string `toml:"service_name"`
	ExporterEndpoint string `toml:"exporter_endpoint" comment:"the endpoint to export metrics to, like a local OpenTelemetry collector"`
}

Config is the configuration struct for the tm2 telemetry package

func DefaultTelemetryConfig

func DefaultTelemetryConfig() *Config

DefaultTelemetryConfig is the default configuration used for the node

func (*Config) ValidateBasic

func (cfg *Config) ValidateBasic() error

ValidateBasic performs basic telemetry config validation and returns an error if any check fails

Jump to

Keyboard shortcuts

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