Documentation ¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func NewAgentConfigPlugin(id ids.PluginID, ctx agent.AgentContext) agent.Plugin
- func NewCustomAttrsPlugin(ctx agent.AgentContext) agent.Plugin
- func NewHostAliasesPlugin(ctx agent.AgentContext, cloudHarvester cloud.Harvester) agent.Plugin
- func NewK8sIntegrationsPlugin(ctx agent.AgentContext, pluginRetrieveFn pluginRetrieve) agent.Plugin
- func RegisterPlugins(agent *agnt.Agent) error
- type AgentConfigPlugin
- type ConfigAttrs
- type ConfigFilePlugin
- type CustomAttrs
- type CustomAttrsPlugin
- type ExternalDFile
- type FileData
- type HostAliasesPlugin
- type K8sIntegrationsPlugin
- type NetworkInterfaceData
- type NetworkInterfacePlugin
Constants ¶
const (
EXTERNAL_DIR = "external.d"
)
Variables ¶
This section is empty.
Functions ¶
func NewAgentConfigPlugin ¶
func NewCustomAttrsPlugin ¶
func NewCustomAttrsPlugin(ctx agent.AgentContext) agent.Plugin
func NewHostAliasesPlugin ¶
func NewK8sIntegrationsPlugin ¶
func NewK8sIntegrationsPlugin(ctx agent.AgentContext, pluginRetrieveFn pluginRetrieve) agent.Plugin
func RegisterPlugins ¶
Types ¶
type AgentConfigPlugin ¶
type AgentConfigPlugin struct { agent.PluginCommon // contains filtered or unexported fields }
func (*AgentConfigPlugin) Run ¶
func (ac *AgentConfigPlugin) Run()
This plugin is pretty simple - it simply returns once with the object containing the agent's config settings
type ConfigAttrs ¶
type ConfigAttrs map[string]interface{}
func (ConfigAttrs) SortKey ¶
func (ac ConfigAttrs) SortKey() string
type ConfigFilePlugin ¶
type ConfigFilePlugin struct { agent.PluginCommon // contains filtered or unexported fields }
func NewConfigFilePlugin ¶
func NewConfigFilePlugin(id ids.PluginID, ctx agent.AgentContext) (plugin *ConfigFilePlugin)
func (*ConfigFilePlugin) Run ¶
func (self *ConfigFilePlugin) Run()
func (*ConfigFilePlugin) WithFlushInterval ¶
func (self *ConfigFilePlugin) WithFlushInterval(i time.Duration) *ConfigFilePlugin
type CustomAttrs ¶
type CustomAttrs map[string]interface{}
func (CustomAttrs) SortKey ¶
func (self CustomAttrs) SortKey() string
type CustomAttrsPlugin ¶
type CustomAttrsPlugin struct { agent.PluginCommon // contains filtered or unexported fields }
func (*CustomAttrsPlugin) Run ¶
func (self *CustomAttrsPlugin) Run()
This plugin is pretty simple - it simply returns once with the object containing current custom attributes.
type ExternalDFile ¶
type ExternalDFile struct { Files []struct { Path string `json:"path"` } `json:"files"` }
type FileData ¶
type HostAliasesPlugin ¶
type HostAliasesPlugin struct { agent.PluginCommon // contains filtered or unexported fields }
func (*HostAliasesPlugin) Run ¶
func (self *HostAliasesPlugin) Run()
type K8sIntegrationsPlugin ¶
type K8sIntegrationsPlugin struct { agent.PluginCommon // contains filtered or unexported fields }
Plugin that links integrations to the pod they are monitoring
func (*K8sIntegrationsPlugin) Run ¶
func (kip *K8sIntegrationsPlugin) Run()
type NetworkInterfaceData ¶
type NetworkInterfaceData struct { InterfaceName string `json:"interfaceName"` HardwareAddress string `json:"hardwareAddress"` IpV4Address string `json:"ipV4Address,omitempty"` IpV6Address string `json:"ipV6Address,omitempty"` }
func (NetworkInterfaceData) SortKey ¶
func (self NetworkInterfaceData) SortKey() string
type NetworkInterfacePlugin ¶
type NetworkInterfacePlugin struct { agent.PluginCommon // contains filtered or unexported fields }
func NewNetworkInterfacePlugin ¶
func NewNetworkInterfacePlugin(id ids.PluginID, ctx agent.AgentContext) *NetworkInterfacePlugin
func (*NetworkInterfacePlugin) Run ¶
func (self *NetworkInterfacePlugin) Run()
func (*NetworkInterfacePlugin) WithInterfacesProvider ¶
func (self *NetworkInterfacePlugin) WithInterfacesProvider(p network_helpers.InterfacesProvider) *NetworkInterfacePlugin