smartagentextension

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

README

SignalFx Smart Agent Extension

Note: The SignalFx Smart Agent extension is only supported on x86_64/amd64 platforms.

The smartagent extension provides a mechanism to specify config options that are not just specific to a single instance of the Smart Agent Receiver but are applicable to all instances. This component provides a means of migrating your existing Smart Agent configuration to the Splunk Distribution of OpenTelemetry Collector.

As the Smart Agent Receiver doesn't provide 1:1 functional parity with the SignalFx Smart Agent in itself, only a subset of existing configuration fields are supported by the Smart Agent Extension at this time:

  1. The bundleDir field refers to the path of a supported Smart Agent release bundle. The x86_64/amd64 Splunk Distribution of OpenTelemetry Collector packages include the agent bundle, and their installers source its value via the SPLUNK_BUNDLE_DIR environment variable by default.
  2. The collectd field refers to performance and debugging configurables for the collectd subprocess and associated mechanisms. If the Smart Agent Extension or this field are not configured, the Agent defaults will be inherited. This configuration object's configDir refers to the location for internal configuration files and is set to the value of the SPLUNK_COLLECTD_DIR environment variable by the default agent deployment mode config.
  3. procPath for host or mounted container procfs access (default /proc)
  4. etcPath for host or mounted container volume/filesystem etc content (default /etc)
  5. varPath for host or mounted container volume/filesystem var content (default /var)
  6. runPath for host or mounted container volume/filesystem run content (default /run)
  7. sysPath for host or mounted container sysfs access (default /sys)

In the below example configuration, configDir and bundleDir will be used for all instances of the smartagent receiver that wrap around a collectd based monitor.

extensions:
  smartagent:
    bundleDir: /bundle/
    procPath: /custom/proc
    collectd:
      configDir: /tmp/collectd/config

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ExtensionFactory

Types

type Config

type Config struct {
	config.ExtensionSettings `mapstructure:",squash"`
	// Agent uses yaml, which mapstructure doesn't support.
	// Custom unmarshaller required for yaml and SFx defaults usage.
	saconfig.Config `mapstructure:"-,squash"`
}

func (*Config) Unmarshal added in v0.24.3

func (cfg *Config) Unmarshal(componentParser *confmap.Conf) error

type SmartAgentConfigProvider

type SmartAgentConfigProvider interface {
	SmartAgentConfig() *saconfig.Config
}

SmartAgentConfigProvider exposes global saconfig.Config to other components

Jump to

Keyboard shortcuts

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