Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeStr is type of detector.
TypeStr = "ec2"
)
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
func NewDetector(set processor.CreateSettings, dcfg internal.DetectorConfig) (internal.Detector, error)
Types ¶
type Config ¶ added in v0.18.0
type Config struct { // Tags is a list of regex's to match ec2 instance tag keys that users want // to add as resource attributes to processed data Tags []string `mapstructure:"tags"` ResourceAttributes metadata.ResourceAttributesConfig `mapstructure:"resource_attributes"` }
Config defines user-specified configurations unique to the EC2 detector
func CreateDefaultConfig ¶ added in v0.81.0
func CreateDefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.