awsentity

package
v1.300056.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMPTY = ""
)

Variables

View Source
var (
	TypeStr, _ = component.NewType("awsentity")
)

Functions

func AddAttributeIfNonEmpty added in v1.300049.0

func AddAttributeIfNonEmpty(p pcommon.Map, key string, value string)

func NewFactory

func NewFactory() processor.Factory

Types

type Config

type Config struct {
	// ScrapeDatapointAttribute determines if the processor should scrape OTEL datapoint
	// attributes for entity related information. This option is mainly used for components
	// that emit all attributes to datapoint level instead of resource level. All telegraf
	// plugins have this behavior.
	ScrapeDatapointAttribute bool `mapstructure:"scrape_datapoint_attribute,omitempty"`
	// ClusterName can be used to explicitly provide the Cluster's Name for scenarios where it's not
	// possible to auto-detect it using EC2 tags.
	ClusterName string `mapstructure:"cluster_name,omitempty"`
	// KubernetesMode
	KubernetesMode string `mapstructure:"kubernetes_mode,omitempty"`
	// Specific Mode agent is running on (i.e. EC2, EKS, ECS etc)
	Platform string `mapstructure:"platform,omitempty"`
	// EntityType determines the type of entity processing done for
	// telemetry. Possible values are Service and Resource
	EntityType string `mapstructure:"entity_type,omitempty"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

type EC2ServiceAttributes added in v1.300049.0

type EC2ServiceAttributes struct {
	InstanceId        string `validate:"required"`
	AutoScalingGroup  string `validate:"omitempty"`
	ServiceNameSource string `validate:"omitempty"`
}

type K8sServiceAttributes added in v1.300049.0

type K8sServiceAttributes struct {
	Cluster           string `validate:"required"`
	Namespace         string `validate:"required"`
	Workload          string `validate:"required"`
	Node              string `validate:"required"`
	InstanceId        string `validate:"omitempty"`
	ServiceNameSource string `validate:"omitempty"`
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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