

# Correlate changes with your telemetry

Change indicators are records of the deployments and configuration changes in your environment. Amazon CloudWatch Omni shows them where you analyze your services, so you can see what changed next to the problem without searching deployment logs or CI/CD tools.

Change indicators appear in the following places:
+ **Observations.** An observation lists the changes related to a problem next to its anomalies.
+ **Service view.** Service charts mark when changes happened.
+ **The Omni agent.** You can ask the agent what changed.

**Note**  
A change indicator shows when a change happened, so you can quickly correlate it with a problem. Amazon CloudWatch Omni relates changes to problems by time and context.

## Supported sources
<a name="omni-change-indicators-supported-sources"></a>


| Source | What's supported | 
| --- | --- | 
| AWS events | Amazon ECS deployments; CloudFormation stack changes and drift results (including stacks that manage AWS Lambda functions); finished Amazon RDS configuration changes | 
| GitHub | All successful GitHub deployments to a production environment, for any compute type (Amazon ECS, AWS Lambda, Amazon EKS, Amazon EC2 and Auto Scaling, and others) | 

For the AWS event types that appear as change indicators, see [Events shown as change indicators](#omni-change-indicators-events). For GitHub requirements, see [Connect GitHub](#omni-change-indicators-github).

## Before you begin
<a name="omni-change-indicators-before-you-begin"></a>

The following requirements apply wherever change indicators appear:
+ The AWS integration is set up for your space from this account. For more information, see [Using AWS Config for resource discovery](omni-using-aws-config-for-resource-discovery.md).
+ The AWS integration role has the AWS managed policy `CloudWatchOmniAWSIntegrationPolicyV2`. This policy adds read access to the logs, traces, and profiles in your default CloudWatch Dataset, which Amazon CloudWatch Omni uses to find change indicators. New spaces get it automatically. To update the policy on an existing space, open the Omni web UI and choose **Update space details**. Under **Space access role permissions**, find **Resource discovery**, and then choose **Update policy**. You can also do this in the CloudWatch console under **Settings**, **Omni**.
+ If your default CloudWatch Dataset uses a customer managed AWS KMS key, the key policy must also allow the AWS integration role to use `kms:Decrypt` through CloudWatch. For more information, see [Data encryption in CloudWatch Omni](omni-data-encryption-in-cloudwatch-omni.md).

To see change indicators in observations, Observations must also be on. For more information, see [Turn on Observations](omni-observations-turn-on.md).

**Important**  
Change indicators work only in accounts that set up the AWS integration themselves. If your organization set up the AWS integration for its member accounts (roles named `CloudWatchOmniAWSIntegrationRole-` followed by an ID), those accounts don't show change indicators.

## Turn on AWS events
<a name="omni-change-indicators-aws-events"></a>

AWS events is an account-level setting that you turn on once. When it's on, CloudWatch delivers a curated set of AWS service events to the managed log group `aws/cloudwatch-omni/events` in every Region of the account. Your Dataset integration forwards that log group to your default CloudWatch Dataset, where Amazon CloudWatch Omni reads it. You don't need to create an IAM role, a log group, or an Amazon EventBridge rule.

The following procedure turns on AWS events so CloudWatch Omni can show deployments and configuration changes as change indicators.

**To turn on AWS events**

1. Open the Omni web UI.

1. Choose **Settings**, and then choose **Ingestion**.

1. For **Cloud provider**, choose **AWS**.

1. For **Monitoring target**, choose **AWS events**.

1. Turn on AWS events.

If the log group isn't forwarded to your space yet, the section displays a message saying that events don't reach this space until logs are forwarded to it. Choose **Forward logs** in that message to set up the Dataset integration.

If your space uses AWS Organizations, the management account or a delegated administrator can turn on AWS events for the whole organization or for specific accounts. You can do this when you create the space, or later under **Settings**, **Ingestion**, **AWS events**. For permissions, see [Security in Observations](omni-observations-security.md).

## Events shown as change indicators
<a name="omni-change-indicators-events"></a>


| Service | Event type (detail-type) | Shown as | 
| --- | --- | --- | 
| CloudFormation | CloudFormation Stack Status Change | Config change | 
| CloudFormation | CloudFormation Drift Detection Status Change | Config change, when it finds new drift | 
| Amazon ECS | ECS Deployment State Change | Deploy | 
| Amazon RDS | RDS DB Instance Event, RDS DB Cluster Event | Config change, finished configuration changes only | 

Your log group also collects the following events, but they aren't shown as change indicators:
+ Other events from the services in this table
+ Events from AWS Lambda, AWS CodeDeploy, CloudWatch alarms, Amazon EC2, AWS Health, and Amazon EKS

## Connect GitHub
<a name="omni-change-indicators-github"></a>

When you connect GitHub, Amazon CloudWatch Omni reads the code in your repositories to learn which services each repository holds. A successful production deployment of a repository can then appear as a change indicator for those services. For full setup details, see [Connect GitHub](omni-connect-github.md).

This procedure connects GitHub so CloudWatch Omni can show production deployments as change indicators for your services.

**To connect GitHub**

1. In the Omni web UI, choose **Settings**, and then choose **Integrations**.

1. On the **GitHub** card, turn on GitHub. GitHub opens in a new browser tab.

1. Install the Amazon CloudWatch GitHub App on your GitHub organization. Choose **All repositories**, or choose **Only select repositories**.

1. Return to the Omni web UI. The **GitHub** card shows **Connected**.

A deployment appears only when all of the following are true:
+ It was made through GitHub deployments, for example a GitHub Actions job that targets an environment.
+ Its status is `success`.
+ Its environment is production. The environment must be named `prod` or `production`, or one of these names followed by `-`, `_`, or `.` and more text (such as `prod-us-east-1`). An environment that GitHub marks as production also counts.

Pushes, commits, pull requests, and workflow runs aren't used.

Amazon CloudWatch Omni matches the service names that each repository defines to the service names in your telemetry, such as the OpenTelemetry `service.name` attribute. Give each service a unique name in the account and Region, and use the same name in your code and your telemetry.

## Where you see change indicators
<a name="omni-change-indicators-where-you-see"></a>

### In observations
<a name="omni-change-indicators-in-observations"></a>

On the observation details page, **What happened** lists related changes above the anomalies, oldest first. Each change shows a summary, its type (**Deploy** or **Config change**), its source, the affected services, and the time. A dashed vertical line marks each change on the observation's charts.

Observations looks for changes up to 7 days before each service's first anomaly. An observation shows up to 50 related changes.

### In service view
<a name="omni-change-indicators-in-service-view"></a>

Service charts mark the time of each change that affects the service. Hover over a change marker to see details about the change, such as when it happened, its source, its type, and a summary. For more information, see [Monitor a service](omni-monitor-a-service.md).

### With the Omni agent
<a name="omni-change-indicators-with-the-omni-agent"></a>

You can ask the Omni agent about changes in plain language, for example "What changed in checkout-service before latency went up?" For more information, see [Ask the Omni agent](omni-ask-the-omni-agent.md).

### If you don't see a change
<a name="omni-change-indicators-if-you-dont-see"></a>

A missing change indicator doesn't mean that nothing changed. If you expect to see a change and don't, check [Before you begin](#omni-change-indicators-before-you-begin) and [Supported sources](#omni-change-indicators-supported-sources).

## Retention and cost
<a name="omni-change-indicators-retention-cost"></a>

Ingesting events into `aws/cloudwatch-omni/events` is free, and includes 30 days of free retention. For more information, see [CloudWatch Omni pricing](https://aws.amazon.com/cloudwatch/omni/pricing/) on the AWS website.

## Turn off change indicators
<a name="omni-change-indicators-turn-off"></a>

You can turn off each source of change indicators independently:
+ AWS events: In **Settings**, **Ingestion**, **AWS**, **AWS events**, turn off AWS events. The log group and the events already delivered are kept.
+ GitHub: In **Settings**, **Integrations**, turn off GitHub on the GitHub card, and then uninstall the Amazon CloudWatch GitHub App from your GitHub organization.