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.
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
| 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. For GitHub requirements, see Connect GitHub.
Before you begin
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.
-
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:Decryptthrough CloudWatch. For more information, see Data encryption in CloudWatch Omni.
To see change indicators in observations, Observations must also be on. For more information, see Turn on Observations.
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
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
-
Open the Omni web UI.
-
Choose Settings, and then choose Ingestion.
-
For Cloud provider, choose AWS.
-
For Monitoring target, choose AWS events.
-
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.
Events shown as change indicators
| 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
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.
This procedure connects GitHub so CloudWatch Omni can show production deployments as change indicators for your services.
To connect GitHub
-
In the Omni web UI, choose Settings, and then choose Integrations.
-
On the GitHub card, turn on GitHub. GitHub opens in a new browser tab.
-
Install the Amazon CloudWatch GitHub App on your GitHub organization. Choose All repositories, or choose Only select repositories.
-
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
prodorproduction, or one of these names followed by-,_, or.and more text (such asprod-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
In observations
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
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.
With the Omni agent
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.
If you don't see a change
A missing change indicator doesn't mean that nothing changed. If you expect to see a change and don't, check Before you begin and Supported sources.
Retention and cost
Ingesting events into aws/cloudwatch-omni/events is free, and
includes 30 days of free retention. For more information, see CloudWatch Omni
pricing
Turn off change indicators
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.