Enhanced infrastructure metrics - AWS Compute Optimizer

Enhanced infrastructure metrics

Enhanced infrastructure metrics is a paid feature of Compute Optimizer that applies to Amazon EC2 instances, including instances that are part of Auto Scaling groups. It's a recommendation preference that extends the utilization metrics analysis look-back period up to three months (93 days), compared to the 14-day default. This allows Compute Optimizer to analyze a longer history of utilization metrics data. Enhanced infrastructure metrics is inactive by default and must be activated manually. For more information about pricing for this feature, see Compute Optimizer pricing.

Required permissions

You must have the appropriate permissions to activate and deactivate enhanced infrastructure metrics. For more information, see Policies to grant access to manage Compute Optimizer recommendation preferences.

Activating enhanced infrastructure metrics

You can activate enhanced infrastructure metrics using the Compute Optimizer console, AWS Command Line Interface (AWS CLI), and AWS SDKs. In the console, you can activate the feature in the following three areas, with each providing a different level of activation.

  • Resource-level recommendation preferences - In the Resource details page, you can activate enhanced infrastructure metrics for the individual resource that you're viewing. For example, the Instance details page for an individual EC2 instance provides the option to activate the enhanced infrastructure metrics feature only for that EC2 instance. For more information, see Activating enhanced infrastructure metrics at the resource level later in this guide.

    Note

    Resource-level preferences override account-level preferences, and account-level preferences override organization-level preferences. For an EC2 instance that is part of an Auto Scaling group, the Auto Scaling group recommendation preference overrides that of the individual instance.

  • Account-level recommendation preferences - In the Account page for an individual account, you can activate the enhanced infrastructure metrics feature for all EC2 instances in the account that meet your resource type and AWS Region criteria. EC2 instance preferences at the account level apply to standalone instances and instances that are part of Auto Scaling groups. For more information, see Activating enhanced infrastructure metrics at the account level later in this guide.

  • Organization-level recommendation preferences - In the Account page for the management account of an organization, you can activate the enhanced infrastructure metrics feature for all resources in all member accounts of the organization that meet your resource type and AWS Region criteria. EC2 instance preferences at the organization level apply to standalone instances and instances that are part of Auto Scaling groups in all member accounts. For more information, see Activating enhanced infrastructure metrics at the organization level later in this guide.

After you activate the enhanced infrastructure metrics feature, Compute Optimizer will apply the preference the next time recommendations are refreshed, which can take up to 24 hours. To confirm if your resource recommendations are taking enhanced infrastructure metrics into consideration, see Confirming the status of enhanced infrastructure metrics.

Note

To improve the recommendation quality of Compute Optimizer, AWS may use your CloudWatch metrics and configuration data. This includes up to three months (93 days) of metrics analysis when you activate the enhanced infrastructure metrics feature. Contact AWS Support to request that AWS stop using your CloudWatch metrics and configuration data to improve the recommendation quality of Compute Optimizer.

Activating enhanced infrastructure metrics at the resource level

Use the following procedure to activate or deactivate enhanced infrastructure metrics at the resource level. Recommendation preferences activated at the resource level apply only to the individual resource.

  1. Open the Compute Optimizer console at https://console.aws.amazon.com/compute-optimizer/.

  2. On the Dashboard page of the Compute Optimizer console, complete one of the following steps depending on the resource type for which you want to activate or deactivate enhanced infrastructure metrics.

    • Choose View recommendations for EC2 instances if you want to activate the feature for an individual Amazon EC2 instance.

    • Choose View recommendations for Auto Scaling groups if you want to activate the feature for an individual Auto Scaling group.

      Note

      For an EC2 instance that is part of an Auto Scaling group, the Auto Scaling group recommendation preference overrides that of the individual instance.

  3. In the Resource recommendations page that appears, either for Amazon EC2 instances or for Auto Scaling groups, choose the resource for which you want to activate or deactivate enhanced infrastructure metrics.

  4. In the Resource details page that appears, choose Edit in the Recommendation preferences section of the page.

    
                Recommendation preferences in the resource details page

    Enhanced infrastructure metrics is checked if the feature is currently activated for the resource that you're viewing. The option is unchecked if it is not currently activated.

  5. Select the enhanced infrastructure metrics feature to activate it, or clear it to deactivate it.

    
                Recommendation preferences in the resource details page
  6. Choose Save to save the updated recommendation preference for the individual resource.

    Note

    Saving the preference initiates metering for enhanced infrastructure metrics for the individual resource. For more information about pricing for this feature, see Compute Optimizer pricing.

Compute Optimizer will consider updated preferences the next time it generates recommendations. Until then, a pending status is affixed to your updated preference (for example, Active-pending or Inactive-pending). To confirm if your resource recommendations are taking enhanced infrastructure metrics into consideration, see Confirming the status of enhanced infrastructure metrics.

Activating enhanced infrastructure metrics at the account level

Use the following procedure to activate or deactivate enhanced infrastructure metrics at the account level. Recommendation preferences created at the account level apply to all resources within the account that meet your resource type and AWS Region criteria.

  1. Open the Compute Optimizer console at https://console.aws.amazon.com/compute-optimizer/.

  2. Choose Accounts in the navigation pane.

    If you're signed in to the management account of the organization, the Accounts page lists all member accounts of the organization and recommendation preferences as shown in the following example. If you're signed in to a standalone account, the page lists only the recommendation preferences for your account.

    
                Accounts page in the Compute Optimizer console
  3. If you're signed in to the management account of an organization, choose the account for which you want to activate enhanced infrastructure metrics. Then choose View preferences. If you're signed in to a standalone account, skip to the next step (step 4) of this procedure.

    
                View account level preferences in the Compute Optimizer console
  4. The Recommendation preferences section of the page lists the current preferences for the individual account, if any. Choose Edit in the Recommendation preferences section of the page.

    
                Account recommendation preferences
  5. Complete one of the following steps:

    • To activate enhanced infrastructure metrics for a resource type in a specific AWS Region, choose the resource type in the Resource type dropdown menu, choose the AWS Region in the Region dropdown menu, and select the Activate option.

      Note

      The EC2 instance option encompasses all EC2 resources, inclusive of standalone instances and instances that are part of Auto Scaling groups. The Auto Scaling group option encompasses only instances that are part of Auto Scaling groups, and not standalone instances.

      
                    Account recommendation preferences
    • To deactivate enhanced infrastructure metrics for a resource type in a specific AWS Region, clear the Activate option for the preference you want to deactivate.

      
                    Activate or deactivate account recommendation preferences
  6. Choose Save to save the updated recommendation preference for the account.

    Note

    Saving the preference initiates metering for enhanced infrastructure metrics for all resources of the selected resource type in the selected Region and in the selected account. For more information about pricing for this feature, see Compute Optimizer pricing.

Compute Optimizer will consider updated preferences the next time it generates recommendations. Until then, a pending status is affixed to your update preference (for example, Active-pending or Inactive-pending). To confirm if your resource recommendations are taking enhanced infrastructure metrics into consideration, see Confirming the status of enhanced infrastructure metrics.

Activating enhanced infrastructure metrics at the organization level

Use the following procedure to activate or deactivate enhanced infrastructure metrics at the organization level. Recommendation preferences created at the organization level apply to all resources within all member accounts of the organization that meet your resource type and AWS Region criteria

Note

This option is available only to management accounts of an organization who opted member accounts in to Compute Optimizer.

  1. Open the Compute Optimizer console at https://console.aws.amazon.com/compute-optimizer/.

  2. Choose Accounts in the navigation pane.

    The Accounts page lists all member accounts of the organization if you're signed in to the management account of the organization. The Recommendation preferences section of the page lists the preferences that are activated for all accounts in the organization, if any.

    
                Accounts page in the Compute Optimizer console
  3. Choose Edit in the Recommendation preferences section of the page.

    
                Edit recommendation preferences in the Compute Optimizer console
  4. Complete one of the following steps:

    • To activate enhanced infrastructure metrics for a specific resource type in an AWS Region, choose the resource type in the Resource type dropdown menu, choose the Region in the AWS Region dropdown menu, and select the Active option.

      
                    Account recommendation preferences
    • To deactivate the feature for a specific resource type in an AWS Region, clear the Active option for the preference you want to deactivate.

      
                    Activate or deactivate account recommendation preferences
  5. Choose Save to save the updated recommendation preference for all accounts in the organization.

    Note

    Saving the preference initiates metering for enhanced infrastructure metrics for all resources of the selected resource type in the selected Region and in all member accounts of the organization. For more information about pricing for this feature, see Compute Optimizer pricing.

Compute Optimizer will consider updated preferences the next time it generates recommendations. Until then, a pending status is affixed to your update preference (for example, Active-pending or Inactive-pending). To confirm if your resource recommendations are taking enhanced infrastructure metrics into consideration, see Confirming the status of enhanced infrastructure metrics.

Confirming the status of enhanced infrastructure metrics

After you activate the enhanced infrastructure metrics recommendation preference, Compute Optimizer will apply the preference the next time recommendations are refreshed, which can take up to 24 hours. The Effective enhanced infrastructure metrics column in the Resource Recommendations page confirms if the recommendations listed are taking the three-month look-back period into consideration. An Active status confirms the recommendation listed is considering the longer look-back period. An Inactive status confirms the recommendation is not yet considering the longer look-back period.


          Effective enhanced infrastructure metrics

Troubleshooting enhanced infrastructure metrics

Following are the issues you might experience with enhanced infrastructure metrics recommendation preferences and what you can do to mitigate the problem.

Failed to get or update enhanced infrastructure metrics recommendation preferences

Description

A banner is displayed that indicates that the Compute Optimizer console could not get or update enhanced infrastructure metrics recommendation preferences.

Cause

You might not have the permissions required to view or update recommendation preferences.

Solution

Add the required permissions to the user who will view or edit recommendation preferences. For more information, see Policies to grant access to manage Compute Optimizer recommendation preferences.