config

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 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   `json:"enabled" toml:"enabled"`
	MeterName         string `json:"meter_name" toml:"meter_name"`
	ServiceName       string `json:"service_name" toml:"service_name"`
	ServiceInstanceID string `` /* 199-byte string literal not displayed */
	ExporterEndpoint  string `` /* 131-byte string literal not displayed */
}

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