plugins

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

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

View Source
const (
	EXTERNAL_DIR = "external.d"
)

Variables

This section is empty.

Functions

func NewAgentConfigPlugin

func NewAgentConfigPlugin(id ids.PluginID, ctx agent.AgentContext) agent.Plugin

func NewCustomAttrsPlugin

func NewCustomAttrsPlugin(ctx agent.AgentContext) agent.Plugin

func NewHostAliasesPlugin

func NewHostAliasesPlugin(ctx agent.AgentContext, cloudHarvester cloud.Harvester) agent.Plugin

func NewK8sIntegrationsPlugin

func NewK8sIntegrationsPlugin(ctx agent.AgentContext, pluginRetrieveFn pluginRetrieve) agent.Plugin

func RegisterPlugins

func RegisterPlugins(agent *agnt.Agent) error

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 FileData struct {
	Name     string `json:"id"`
	Size     string `json:"file_size"`
	Mode     string `json:"mode"`
	UID      string `json:"owner_user"`
	GID      string `json:"owner_group"`
	HashMd5  string `json:"md5_hash"`
	FileType string `json:"file_type"`
}

func (FileData) SortKey

func (self FileData) SortKey() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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