Documentation ¶
Index ¶
Constants ¶
View Source
const (
TypeStr = "ec2tagger"
)
Variables ¶
View Source
var SupportedAppendDimensions = map[string]string{
"AutoScalingGroupName": "${aws:AutoScalingGroupName}",
"ImageId": "${aws:ImageId}",
"InstanceId": "${aws:InstanceId}",
"InstanceType": "${aws:InstanceType}",
}
Functions ¶
func NewFactory ¶ added in v1.300025.0
Types ¶
type Config ¶ added in v1.300025.0
type Config struct { RefreshIntervalSeconds time.Duration `mapstructure:"refresh_interval_seconds"` EC2MetadataTags []string `mapstructure:"ec2_metadata_tags"` EC2InstanceTagKeys []string `mapstructure:"ec2_instance_tag_keys"` EBSDeviceKeys []string `mapstructure:"ebs_device_keys,omitempty"` //The tag key in the metrics for disk device DiskDeviceTagKey string `mapstructure:"disk_device_tag_key,omitempty"` // unlike other AWS plugins, this one determines the region from ec2 metadata not user configuration AccessKey string `mapstructure:"access_key,omitempty"` SecretKey string `mapstructure:"secret_key,omitempty"` RoleARN string `mapstructure:"role_arn,omitempty"` Profile string `mapstructure:"profile,omitempty"` Filename string `mapstructure:"shared_credential_file,omitempty"` Token string `mapstructure:"token,omitempty"` IMDSRetries int `mapstructure:"imds_retries,omitempty"` }
type EbsVolume ¶
func NewEbsVolume ¶
func NewEbsVolume() *EbsVolume
type MetadataProvider ¶ added in v1.300025.0
type MetadataProvider interface { Get(ctx context.Context) (ec2metadata.EC2InstanceIdentityDocument, error) Hostname(ctx context.Context) (string, error) InstanceID(ctx context.Context) (string, error) }
func NewMetadataProvider ¶ added in v1.300025.0
func NewMetadataProvider(p client.ConfigProvider, retries int) MetadataProvider
Click to show internal directories.
Click to hide internal directories.