Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2MetadataAPI ¶ added in v1.247354.0
type EC2MetadataAPI interface {
GetInstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error)
}
type EbsVolume ¶
func NewEbsVolume ¶
func NewEbsVolume() *EbsVolume
type Tagger ¶
type Tagger struct {
Log telegraf.Logger `toml:"-"`
RefreshIntervalSeconds internal.Duration `toml:"refresh_interval_seconds"`
EC2MetadataTags []string `toml:"ec2_metadata_tags"`
EC2InstanceTagKeys []string `toml:"ec2_instance_tag_keys"`
EBSDeviceKeys []string `toml:"ebs_device_keys"`
//The tag key in the metrics for disk device
DiskDeviceTagKey string `toml:"disk_device_tag_key"`
// unlike other AWS plugins, this one determines the region from ec2 metadata not user configuration
AccessKey string `toml:"access_key"`
SecretKey string `toml:"secret_key"`
RoleARN string `toml:"role_arn"`
Profile string `toml:"profile"`
Filename string `toml:"shared_credential_file"`
Token string `toml:"token"`
sync.RWMutex //to protect ec2TagCache
// contains filtered or unexported fields
}
func (*Tagger) Apply ¶
Apply adds the configured EC2 Metadata and Instance Tags to metrics. This is called serially for ALL metrics (that pass the plugin's tag filters) so keep it fast.
func (*Tagger) Description ¶
func (*Tagger) Init ¶
Init() acts as input validation and serves the purpose of updating ec2 tags and ebs volumes if necessary. It will be called when Telegraf is enabling each processor plugin
func (*Tagger) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.