agent

package
v1.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 64 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAgentInfoAttribute added in v0.1.3

func AddAgentInfoAttribute(in FxIn)

AddAgentInfoAttribute adds the agent group and instance labels to OTel config.

func AgentOTelComponents added in v1.4.0

func AgentOTelComponents(
	alerter alerts.Alerter,
	receiverFactories []receiver.Factory,
	processorFactories []processor.Factory,
	promRegistry *prometheus.Registry,
	engine iface.Engine,
	clasEng iface.ClassificationEngine,
	serverGRPC *grpc.Server,
	controlPointCache *cache.Cache[selectors.TypedControlPointID],
	alertMgr *alertmanager.AlertManager,
) (otelcol.Factories, error)

AgentOTelComponents constructs OTel Collector Factories for Agent.

func ModuleForAgentOTel added in v1.4.0

func ModuleForAgentOTel() fx.Option

ModuleForAgentOTel provides fx options for AgentOTelComponent.

func ProvidePeersPrefix

func ProvidePeersPrefix(agentInfo *agentinfo.AgentInfo) (peers.PeerDiscoveryPrefix, error)

ProvidePeersPrefix provides the peers prefix.

Types

type FxIn added in v0.1.3

type FxIn struct {
	fx.In
	BaseConfig *otelconfig.OTelConfig `name:"base"`
	AgentInfo  *agentinfo.AgentInfo
}

FxIn is the input for the AddAgentInfoAttribute function.

Jump to

Keyboard shortcuts

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