smartagentextension

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

README

SignalFx Smart Agent Extension

The smartagent extension provides a mechanism to specify config options that are not just specific to a single instance of the smartagent receiver but are applicable to all instances of the smartagent receiver.

To begin with, this extension will provide a mechanism to specify config options to configure collectd. These options are mapped to the collectd config options in the SignalFx Agent. Note that if this extension is not configured, the defaults in smartagent receiver will be used.

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/
    collectd:
      configDir: /etc/collectd/

The full list of settings exposed for this receiver are documented here with detailed sample configurations here.

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) SmartAgentConfig added in v0.24.0

func (c Config) SmartAgentConfig() *saconfig.Config

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