config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalViperThroughYaml added in v1.5.0

func UnmarshalViperThroughYaml(v *viper.Viper, out any) error

Types

type AgentConfig added in v1.4.0

type AgentConfig struct {
	Token                  string               `yaml:"token"`
	ObserveURL             string               `yaml:"observe_url"`
	CloudResourceDetectors []string             `yaml:"cloud_resource_detectors,omitempty"`
	SelfMonitoring         SelfMonitoringConfig `yaml:"self_monitoring,omitempty"`
	HostMonitoring         HostMonitoringConfig `yaml:"host_monitoring,omitempty"`
	OtelConfigOverrides    map[string]any       `yaml:"otel_config_overrides,omitempty"`
}

func AgentConfigFromViper added in v1.5.0

func AgentConfigFromViper(v *viper.Viper) (*AgentConfig, error)

func (*AgentConfig) Validate added in v1.4.0

func (config *AgentConfig) Validate() error

type HostMonitoringConfig added in v1.4.0

type HostMonitoringConfig struct {
	Enabled bool                        `yaml:"enabled"`
	Logs    HostMonitoringLogsConfig    `yaml:"logs,omitempty"`
	Metrics HostMonitoringMetricsConfig `yaml:"metrics,omitempty"`
}

type HostMonitoringHostMetricsConfig added in v1.4.0

type HostMonitoringHostMetricsConfig struct {
	Enabled bool `yaml:"enabled"`
}

type HostMonitoringLogsConfig added in v1.4.0

type HostMonitoringLogsConfig struct {
	Enabled bool     `yaml:"enabled"`
	Include []string `yaml:"include,omitempty"`
}

type HostMonitoringMetricsConfig added in v1.4.0

type HostMonitoringMetricsConfig struct {
	Host    HostMonitoringHostMetricsConfig    `yaml:"host,omitempty"`
	Process HostMonitoringProcessMetricsConfig `yaml:"process,omitempty"`
}

type HostMonitoringProcessMetricsConfig added in v1.4.0

type HostMonitoringProcessMetricsConfig struct {
	Enabled bool `yaml:"enabled"`
}

type SelfMonitoringConfig added in v1.4.0

type SelfMonitoringConfig struct {
	Enabled bool `yaml:"enabled"`
}

Jump to

Keyboard shortcuts

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