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 2024 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 NewIntegrationsOnlyPlugin(id ids.PluginID, ctx agent.AgentContext) 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 IntegrationsOnly
- type IntegrationsOnlyPlugin
- 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 NewIntegrationsOnlyPlugin ¶ added in v1.67.3
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 IntegrationsOnly ¶ added in v1.67.3
type IntegrationsOnly bool
func (IntegrationsOnly) SortKey ¶ added in v1.67.3
func (io IntegrationsOnly) SortKey() string
type IntegrationsOnlyPlugin ¶ added in v1.67.3
type IntegrationsOnlyPlugin struct {
agent.PluginCommon
}
IntegrationsOnlyPlugin is an inventory plugin that will add an inventory entry notifying the agent is running on this mode. This inventory entry will be read by Infra Platform to not send the Host Entity to Entity Platform.
func (*IntegrationsOnlyPlugin) Run ¶ added in v1.67.3
func (iop *IntegrationsOnlyPlugin) Run()
Run This plugin is pretty simple - it simply returns once with the object notifying that integrations_only is enabled.
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