Using template variables in CloudWatch queries

    For an introduction to templating and template variables, refer to the Templating documentation.

    You can use the following CloudWatch data source queries to specify the field in the Variable edit view. Use them to fill a variables options list with values like regions, namespaces, metric names, and dimension keys/values.

    For details about the metrics CloudWatch provides, please refer to the CloudWatch documentation.

    Variables can be used in the variable form. Refer to the variable syntax documentation.

    ec2_instance_attribute examples

    Only 1 attribute per instance can be returned. Any flat attribute can be selected (i.e. if the attribute has a single value and isn’t an object or array). Below is a list of available flat attributes:

    • AmiLaunchIndex
    • Architecture
    • ClientToken
    • EbsOptimized
    • EnaSupport
    • IamInstanceProfile
    • ImageId
    • InstanceId
    • InstanceType
    • KernelId
    • KeyName
    • LaunchTime
    • Platform
    • PrivateDnsName
    • PublicDnsName
    • PublicIpAddress
    • RamdiskId
    • RootDeviceName
    • RootDeviceType
    • SourceDestCheck
    • SpotInstanceRequestId
    • SriovNetSupport
    • SubnetId
    • VirtualizationType

    You can select tags by prepending the tag name with Tags.. For example, the tag is selected with Tags.Name.