

# Monitoring cost and portfolio with Service Catalog AppRegistry
<a name="monitoring-cost-portfolio-with-aws-service-catalog-appregistry"></a>

This guidance includes a Service Catalog AppRegistry resource to register the CloudFormation template and underlying resources as an application in both [Service Catalog AppRegistry](https://docs.aws.amazon.com/servicecatalog/latest/arguide/intro-app-registry.html) and [AWS Systems Manager Application Manager](https://docs.aws.amazon.com/systems-manager/latest/userguide/application-manager.html).

AWS Systems Manager Application Manager gives you an application-level view into this guidance and its resources so that you can:
+ Monitor its resources, costs for the deployed resources across stacks and AWS accounts, and logs associated with this guidance from a central location.
+ View operations data for the resources of this guidance (such as deployment status, CloudWatch alarms, resource configurations, and operational issues) in the context of an application.

  The following figure depicts an example of the application view for the guidance stack in Application Manager.

 **Depicts an AWS guidance stack in Application Manager** 

![\[appregistry1\]](http://docs.aws.amazon.com/solutions/latest/scalable-analytics-using-apache-druid-on-aws/images/appregistry1.png)


# Activate CloudWatch Application Insights
<a name="activate-cloudwatch-application-insights"></a>

1. Sign in to the [Systems Manager console](https://console.aws.amazon.com/systems-manager).

1. In the navigation pane, choose **Application Manager**.

1. In **Applications**, search for the application name for this guidance and select it.

   The application name will have App Registry in the **Application Source** column, and will have a combination of the guidance name, Region, account ID, or stack name.

1. In the **Components** tree, choose the application stack you want to activate.

1. In the **Monitoring** tab, in **Application Insights**, select **Auto-configure Application Insights**.

 **Application Insights dashboard showing no detected problems and option to auto-configure.** 

![\[appreg1\]](http://docs.aws.amazon.com/solutions/latest/scalable-analytics-using-apache-druid-on-aws/images/appreg1.png)


Monitoring for your applications is now activated and the following status box appears:

Application Insights dashboard showing successful monitoring activation message. image::images/appreg2.png[scaledwidth=100%]

# Confirm cost tags associated with the guidance
<a name="confirm-cost-tags-associated-with-the-solution"></a>

After you activate cost allocation tags associated with the guidance, you must confirm the cost allocation tags to see the costs for this guidance. To confirm cost allocation tags:

1. Sign in to the site:https://console.aws.amazon.com/systems-manager[Systems Manager console].

1. In the navigation pane, choose **Application Manager**.

1. In **Applications**, choose the application name for this guidance and select it.

1. In the **Overview** tab, in **Cost**, select **Add user tag**.

    **Screenshot depicting the Application Cost add user tag screen**   
![\[AppManager 1\]](http://docs.aws.amazon.com/solutions/latest/scalable-analytics-using-apache-druid-on-aws/images/AppManager_1.png)

1. On the **Add user tag** page, enter `confirm`, then select **Add user tag**.

The activation process can take up to 24 hours to complete and the tag data to appear.

# Activate cost allocation tags associated with the guidance
<a name="activate-cost-allocation-tags-associated-with-the-solution"></a>

After you confirm the cost tags associated with this guidance, you must activate the cost allocation tags to see the costs for this guidance. The cost allocation tags can only be activated from the management account for the organization.

To activate cost allocation tags:

1. Sign in to the [AWS Billing and Cost Management and Cost Management console](https://console.aws.amazon.com/billing/home).

1. In the navigation pane, select **\$1ost Allocation Tags**.

1. On the **Cost allocation tags** page, filter for the `AppManagerCFNStackKey` tag, then select the tag from the results shown.

1. Choose **Activate**.

# AWS Cost Explorer
<a name="aws-cost-explorer"></a>

You can see the overview of the costs associated with the application and application components within the Application Manager console through integration with AWS Cost Explorer. Cost Explorer helps you manage costs by providing a view of your AWS resource costs and usage over time.

1. Sign in to the [AWS Cost Management console](https://console.aws.amazon.com/cost-management/home).

1. In the navigation menu, select **Cost Explorer** to view the guidance’s costs and usage over time.