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, instances that are part of Auto Scaling groups, and Amazon RDS DB instances. This recommendation preference extends the utilization metrics analysis lookback period to up to 93 days, compared to the default 14-dayperiod. This gives Compute Optimizer a longer history of utilization metrics data to analyze. You need to activate the enhanced infrastructure metrics preference. For more information, see Organization, account, and resource level.

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.

Organization, account, and resource level

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.

  • At the resource level, 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 Activate 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.

  • For an individual AWS account holder, 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 Activate enhanced infrastructure metrics at the organization or account level later in this guide.

  • The account manager or the delegated administrator of an AWS Organization 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 Activate enhanced infrastructure metrics at the organization or account level later in this guide.

After you activate the enhanced infrastructure metrics feature, Compute Optimizer applies the preference the next time recommendations are refreshed. This can take up to 24 hours. To confirm that your resource recommendations have enhanced infrastructure metrics enabled, see Confirming the status of enhanced infrastructure metrics.

Compute Optimizer considers updated preferences the next time that 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.

Activate enhanced infrastructure metrics at the resource level

Follow these steps 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 based on the resource type that you want to activate or deactivate enhanced infrastructure metrics for.

    • If you want to activate the feature for an individual Amazon EC2 instance, choose View recommendations for EC2 instances.

    • If you want to activate the feature for an individual Auto Scaling group, choose View recommendations for Auto Scaling groups.

      Note

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

    • If you want to activate the feature for an individual RDS DB instance or storage, choose View recommendations for RDS DB instances or RDS DB instance storage.

  3. In the Resource recommendations page, select the resource for which you want to activate or deactivate enhanced infrastructure metrics. Then, choose View details.

  4. In the Recommendation preferences section of the Resource details page, choose Enhanced infrastructure metrics.

  5. In the prompt that appears, select the Enhanced infrastructure metrics - paid feature checkbox. Then, choose Save to activate enhanced infrastructure metrics for the resource.

  6. (Optional) If you want to deactivate the the enhanced infrastructure metrics, unselect the Enhanced infrastructure metrics - paid feature checkbox. Then, choose Save.

    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 considers updated preferences the next time that 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.

Activate enhanced infrastructure metrics at the organization or account level

Use the following procedure to activate or deactivate enhanced infrastructure metrics for member accounts of an AWS Organization or an individual AWS account holder.

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

  2. Choose General in the navigation pane. Then, choose the Enhanced infrastructure metrics tab.

  3. If you’re an individual AWS account holder, skip to step 4.

    If you’re the account manager or delegated administrator of your organization, you can manage all member accounts or an individual member account for enhanced infrastructure metrics.

    • To opt in all member accounts, choose All opted-in accounts from the Preference level dropdown.

    • To opt in an individual member account, choose Choose account from the Preference level dropdown. In the prompt that appears, select the account you want to opt in for rightsizing preferences. Then, choose Set account level.

    Account level preferences
  4. Choose Edit.

  5. In the prompt that appears, choose Add a preference.

  6. Select a Resource type, Region, and the Activate checkbox. Then, choose Save.

  7. (Optional) If you want to deactivate enhanced infrastructure metrics, unselect the Activate checkbox. Then, choose Save.

Compute Optimizer considers updated preferences the next time that it generates recommendations. Until then, a pending status is affixed to your update preference (for example, Active-pending or Inactive-pending). To confirm that 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 applies the preference the next time that recommendations are refreshed. This can take up to 24 hours. The Effective enhanced infrastructure metrics column in the Resource Recommendations page confirms that 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 that the recommendation isn't yet considering the longer look-back period.

Effective enhanced infrastructure metrics

Troubleshooting enhanced infrastructure metrics

Following sections cover the issues that you might experience with enhanced infrastructure metrics recommendation preferences. These sections also cover what you can do to mitigate these issues.

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.