2022-05-26 23:06:25 +08:00
---
aliases:
2022-12-10 00:36:04 +08:00
- ../data-sources/aws-cloudwatch/
- ../data-sources/aws-cloudwatch/preconfig-cloudwatch-dashboards/
- ../data-sources/aws-cloudwatch/provision-cloudwatch/
- cloudwatch/
- preconfig-cloudwatch-dashboards/
- provision-cloudwatch/
2023-03-23 23:43:21 +08:00
description: Guide for using Amazon CloudWatch in Grafana
2022-05-26 23:06:25 +08:00
keywords:
- grafana
- cloudwatch
- guide
Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
labels:
products:
- cloud
- enterprise
- oss
2023-03-23 23:43:21 +08:00
menuTitle: Amazon CloudWatch
title: Amazon CloudWatch data source
2022-05-26 23:06:25 +08:00
weight: 200
2024-05-28 22:17:49 +08:00
refs:
logs:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/logs/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/logs/
explore:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /explore/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /explore/
provisioning-data-sources:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /administration/provisioning/#data-sources
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /administration/provisioning/#data-sources
configure-grafana-aws:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /setup-grafana/configure-grafana/#aws
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /setup-grafana/configure-grafana/#aws
alerting:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/
build-dashboards:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /dashboards/build-dashboards/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /dashboards/build-dashboards/
data-source-management:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /administration/data-source-management/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /administration/data-source-management/
2025-10-08 03:21:44 +08:00
configure-cloudwatch:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/aws-cloudwatch/configure/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/aws-cloudwatch/configure/
cloudwatch-query-editor:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/aws-cloudwatch/query-editor/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/aws-cloudwatch/query-editor/
cloudwatch-template-variables:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/aws-cloudwatch/template-variables/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/aws-cloudwatch/template-variables/
cloudwatch-aws-authentication:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/aws-cloudwatch/aws-authentication/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/aws-cloudwatch/aws-authentication/
query-caching:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /administration/data-source-management/#query-and-resource-caching
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /administration/data-source-management/#query-and-resource-caching
variables:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /dashboards/variables/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/dashboards/variables/
annotate-visualizations:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /dashboards/build-dashboards/annotate-visualizations/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/dashboards/build-dashboards/annotate-visualizations/
set-up-grafana-monitoring:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /setup-grafana/set-up-grafana-monitoring/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana/< GRAFANA_VERSION > /setup-grafana/set-up-grafana-monitoring/
transformations:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/query-transform-data/transform-data/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/query-transform-data/transform-data/
visualizations:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/
2022-05-26 23:06:25 +08:00
---
2016-10-21 17:01:34 +08:00
2023-03-23 23:43:21 +08:00
# Amazon CloudWatch data source
2015-10-26 21:21:38 +08:00
2025-10-08 03:21:44 +08:00
Amazon CloudWatch is the AWS native monitoring and observability service that collects, aggregates, and stores metrics, logs, and events from AWS resources, applications, and services. CloudWatch enables you to visualize performance data, track system health, and set up automated alerts based on defined thresholds. The Amazon CloudWatch data source in Grafana extends these capabilities by allowing you to query CloudWatch data and create rich, interactive visualizations that can be correlated with data from other systems within unified dashboards.
2020-05-21 16:40:38 +08:00
2025-10-08 03:21:44 +08:00
Grafana includes native support for the Amazon CloudWatch plugin, so there's no need to install a plugin.
2020-05-21 16:40:38 +08:00
2025-10-08 03:21:44 +08:00
The following documents will help you get started working with the CloudWatch data source:
2019-11-22 21:51:35 +08:00
2025-10-08 03:21:44 +08:00
- [Configure the CloudWatch data source ](ref:configure-cloudwatch )
- [CloudWatch query editor ](ref:cloudwatch-query-editor )
- [Templates and variables ](ref:cloudwatch-template-variables )
- [Configure AWS authentication ](ref:cloudwatch-aws-authentication )
2015-10-29 22:46:10 +08:00
2022-11-01 23:22:06 +08:00
## Import pre-configured dashboards
2017-12-11 16:37:27 +08:00
2025-10-08 03:21:44 +08:00
The CloudWatch data source includes curated, pre-configured dashboards for five popular AWS services:
2018-08-14 22:37:38 +08:00
2022-11-01 23:22:06 +08:00
- **Amazon Elastic Compute Cloud:** `Amazon EC2`
- **Amazon Elastic Block Store:** `Amazon EBS`
- **AWS Lambda:** `AWS Lambda`
- **Amazon CloudWatch Logs:** `Amazon CloudWatch Logs`
- **Amazon Relational Database Service:** `Amazon RDS`
2015-10-29 22:46:10 +08:00
2025-10-08 03:21:44 +08:00
To import curated dashboards:
2015-10-29 22:46:10 +08:00
2025-10-08 03:21:44 +08:00
1. Navigate to the data source's configuration page.
1. Click the **Dashboards** tab.
2016-03-28 08:20:33 +08:00
2022-11-01 23:22:06 +08:00
This displays the curated selection of importable dashboards.
2016-03-28 08:20:33 +08:00
2025-10-08 03:21:44 +08:00
1. Click **Import** for each dashboard you want to import.
2016-03-28 08:20:33 +08:00
2025-10-08 03:21:44 +08:00
 CloudWatch pre-configured dashboards
2017-06-08 04:52:45 +08:00
2025-10-08 03:21:44 +08:00
To customize one of these dashboards, Grafana recommends saving it under a different name; otherwise, Grafana upgrades will overwrite your customizations with the new version.
2017-05-08 12:49:44 +08:00
2025-10-08 03:21:44 +08:00
## Get the most out of the data source
2017-05-08 12:49:44 +08:00
2025-10-08 03:21:44 +08:00
After installing and configuring the Amazon CloudWatch data source, you can:
2016-03-11 17:14:29 +08:00
2025-10-08 03:21:44 +08:00
- Create a wide variety of [visualizations ](ref:visualizations )
- Configure and use [templates and variables ](ref:variables )
- Add [transformations ](ref:transformations )
- Add [annotations ](ref:annotate-visualizations )
- Set up [alerting ](ref:alerting )
- Optimize performance with [query caching ](ref:query-caching )
2021-11-30 17:53:31 +08:00
2022-11-01 23:22:06 +08:00
## Control pricing
2021-11-30 17:53:31 +08:00
2022-11-01 23:22:06 +08:00
The Amazon CloudWatch data source for Grafana uses [`ListMetrics` ](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html ) and [`GetMetricData` ](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html ) CloudWatch API calls to list and retrieve metrics.
2020-05-21 16:40:38 +08:00
Pricing for CloudWatch Logs is based on the amount of data ingested, archived, and analyzed via CloudWatch Logs Insights queries.
2022-11-01 23:22:06 +08:00
Each time you select a dimension in the query editor, Grafana issues a `ListMetrics` API request.
Each time you change queries in the query editor, Grafana issues a new request to the `GetMetricData` API.
2019-11-22 21:51:35 +08:00
2025-06-20 00:31:13 +08:00
{{< admonition type = "note" > }}
2025-10-08 03:21:44 +08:00
Grafana now uses the `GetMetricData` API instead of `GetMetricStatistics` for CloudWatch queries. This change improves support for CloudWatch metric math and allows Grafana to automatically generate search expressions when you use wildcards or disable the `Match Exact` option.
Unlike `GetMetricStatistics` requests, `GetMetricData` requests do not qualify for the CloudWatch API free tier.
2025-06-20 00:31:13 +08:00
{{< / admonition > }}
2019-11-22 21:51:35 +08:00
2022-11-01 23:22:06 +08:00
For more information, refer to the [CloudWatch pricing page ](https://aws.amazon.com/cloudwatch/pricing/ ).
2015-10-26 22:41:08 +08:00
2022-11-01 23:22:06 +08:00
## Manage service quotas
2019-11-22 21:51:35 +08:00
2022-11-01 23:22:06 +08:00
AWS defines quotas, or limits, for resources, actions, and items in your AWS account.
Depending on the number of queries in your dashboard and the number of users accessing the dashboard, you might reach the usage limits for various CloudWatch and CloudWatch Logs resources.
Quotas are defined per account and per region.
2019-11-22 21:51:35 +08:00
2025-10-08 03:21:44 +08:00
If you use multiple regions or have configured more than one CloudWatch data source to query against multiple accounts, you must request a quota increase for each account and region in which you reach the limit.
2018-03-28 23:39:00 +08:00
2022-11-01 23:22:06 +08:00
To request a quota increase, visit the [AWS Service Quotas console ](https://console.aws.amazon.com/servicequotas/home?r#!/services/monitoring/quotas/L-5E141212 ).
For more information, refer to the AWS documentation for [Service Quotas ](https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html ) and [CloudWatch limits ](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html ).
2023-01-28 05:46:08 +08:00
## Cross-account observability
The CloudWatch plugin enables you to monitor and troubleshoot applications across multiple regional accounts. Using cross-account observability, you can seamlessly search, visualize and analyze metrics and logs without worrying about account boundaries.
2025-10-08 03:21:44 +08:00
To use this feature, configure a monitoring and source account in the [AWS console under CloudWatch Settings ](https://aws.amazon.com/blogs/aws/new-amazon-cloudwatch-cross-account-observability/ ), and then add the necessary IAM permissions as described above.