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:
- The
bundleDirfield 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 theSPLUNK_BUNDLE_DIRenvironment variable by default. - The
collectdfield 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'sconfigDirrefers to the location for internal configuration files and is set to the value of theSPLUNK_COLLECTD_DIRenvironment variable by the default agent deployment mode config. procPathfor host or mounted container procfs access (default/proc)etcPathfor host or mounted container volume/filesystem etc content (default/etc)varPathfor host or mounted container volume/filesystem var content (default/var)runPathfor host or mounted container volume/filesystem run content (default/run)sysPathfor 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