Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type AgentDescription ¶ added in v0.101.0
type Capabilities ¶ added in v0.82.0
type Capabilities struct { AcceptsRemoteConfig bool `mapstructure:"accepts_remote_config"` AcceptsRestartCommand bool `mapstructure:"accepts_restart_command"` AcceptsOpAMPConnectionSettings bool `mapstructure:"accepts_opamp_connection_settings"` ReportsEffectiveConfig bool `mapstructure:"reports_effective_config"` ReportsOwnMetrics bool `mapstructure:"reports_own_metrics"` ReportsHealth bool `mapstructure:"reports_health"` ReportsRemoteConfig bool `mapstructure:"reports_remote_config"` }
Capabilities is the set of capabilities that the Supervisor supports.
func (Capabilities) SupportedCapabilities ¶ added in v0.103.0
func (c Capabilities) SupportedCapabilities() protobufs.AgentCapabilities
type OpAMPServer ¶
type OpAMPServer struct { Endpoint string Headers http.Header TLSSetting configtls.ClientConfig `mapstructure:"tls,omitempty"` }
func (OpAMPServer) Validate ¶ added in v0.103.0
func (o OpAMPServer) Validate() error
type Storage ¶ added in v0.100.0
type Storage struct { // Directory is the directory where the Supervisor will store its data. Directory string `mapstructure:"directory"` }
type Supervisor ¶
type Supervisor struct { Server OpAMPServer Agent Agent Capabilities Capabilities `mapstructure:"capabilities"` Storage Storage `mapstructure:"storage"` Telemetry Telemetry `mapstructure:"telemetry"` }
Supervisor is the Supervisor config file format.
func DefaultSupervisor ¶ added in v0.103.0
func DefaultSupervisor() Supervisor
DefaultSupervisor returns the default supervisor config
func Load ¶ added in v0.111.0
func Load(configFile string) (Supervisor, error)
Load loads the Supervisor config from a file.
func (Supervisor) Validate ¶ added in v0.103.0
func (s Supervisor) Validate() error
type Telemetry ¶ added in v0.111.0
type Telemetry struct { // TODO: Add more telemetry options // Issue here: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/35582 Logs Logs `mapstructure:"logs"` }
Click to show internal directories.
Click to hide internal directories.