KPI Instance All View

This view will be used to create the KPI Instance All view that is used to analyze all EC2, RDS, ElastiCache, OpenSearch, Sagemaker, DynamoDB, Redshift, Lambda, and Fargate Metrics. metrics and potential savings opportunities. There are fours versions of this view and it is dependent on if you have or do not have Reserved Instances or Savings Plans. Use one of the following queries depending on whether you have Reserved Instances or Savings Plans.

Create View

This view is dependent on having or historically having an RDS database instance and an ElastiCache cache instance run in your organization. If you get the error that the column ‘product_database_engine’ or product_deployment_option does not exist, then you do not have any RDS database instances running. To make this column show up in the CUR spin up a database in the RDS service, let it run for a couple of minutes and in the next integration of the crawler the column will appear. If you get the error that the column ‘product_cache_engine’ does not exist, then you do not have any ElastiCach cache instances running. To make this column show up in the CUR spin up an ElastiCache cache instance in the ElastiCache service, let it run for a couple of minutes and in the next integration of the crawler the column will appear. You can verify this by running the Athena query: SHOW COLUMNS FROM tablename - and replace the tablename accordingly after selecting the correct CUR database in the dropdown on the left side in the Athena view.

  • Click here - if you have both Savings Plans and Reserved Instances
  • Click here - if you have Savings Plans, but do not have Reserved Instances
  • Click here - if you have Reserved Instances, but do not have Savings Plans
  • Click here - if you do not have Reserved Instances, and do not have Savings Plans

Adding Cost Allocation Tags

Cost Allocation tags can be added to any views. We recommend adding while creating the dashboard to eliminate rework.

Click here - for an example with a cost allocation tags

Validate View

  • Confirm the view is working, run the following Athena query and you should receive 10 rows of data:

      select * from kpi_instance_all
      limit 10