

# Monitoring data groups

You can monitor data groups with the same tools that you use for Aurora DB clusters. Because data group operations run in the background, use the data group status and events to follow their progress. The following tools are available for data groups:
+ Status – Shows the current status of the data group operation. To see it, in the navigation pane of the Amazon RDS console, choose **Data Groups**, or run the `describe-data-groups` AWS CLI command. For more information, see [Data group status values](aurora-data-groups-viewing.md#dg-status).
+ Amazon RDS events – Notify you when an operation starts, completes, or fails. A failure event includes the reason. For more information, see [Viewing data group events](#dg-monitor-events).
+ CloudWatch Database Insights – Shows which data groups contribute the most to the database load (DB load) of a DB cluster. For more information, see [Monitoring data groups with CloudWatch Database Insights](#dg-monitor-di).
+ SQL views – Show the data groups in a DB cluster, their databases, the status of migrations, and the busiest data groups. You query these views with SQL on the DB cluster. For more information, see the following topics:
  + [Finding the data groups and their databases with SQL](aurora-data-groups-viewing.md#dg-list-sql)
  + [Monitoring a data group migration](aurora-data-groups-migrating.md#dg-migrate-track)
  + [Finding the busiest data group with SQL](#dg-monitor-busy)
  + [Checking the I/O of each data group with SQL](#dg-monitor-io)

AWS CloudTrail records data group API calls in the same way as other Amazon RDS API calls.

**Topics**
+ [Viewing data group events](#dg-monitor-events)
+ [Finding the busiest data group with SQL](#dg-monitor-busy)
+ [Checking the I/O of each data group with SQL](#dg-monitor-io)
+ [Monitoring data groups with CloudWatch Database Insights](#dg-monitor-di)

## Viewing data group events
<a name="dg-monitor-events"></a>

Amazon RDS generates events for data group operations, such as creating, moving, and deleting a data group. These events have the source type `data-group`. To find the reason that a data group operation failed, check its events. You can use the AWS Management Console or AWS CLI to view data group events.

Events are associated with the data group, not with a DB cluster. After a data group is moved or deleted, its events no longer appear with the data groups of the original DB cluster. To view these events, search by the data group identifier.

### Console
<a name="dg-monitor-events.CON"></a>

Use the following procedure.

**To view the events for a data group using the console**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. In the navigation pane, choose **Data Groups**.

1. Choose the name of the data group.

1. On the details page, find the events table. It shows the **Details** and **Time of last action** of each event.

### CLI
<a name="dg-monitor-events.CLI"></a>

Use the `describe-events` AWS CLI command with the following parameters:
+ `--source-type` – `data-group`.
+ `--source-identifier` – (Optional) The identifier of one data group.
+ `--duration` – (Optional) How many minutes back to look.

The following example lists the events for `tenant42` from the last 24 hours.

```
aws rds describe-events \
    --source-type data-group \
    --source-identifier {{dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}} \
    --duration 1440
```

The output resembles the following example.

```
{
    "Events": [
        {
            "SourceIdentifier": "dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "SourceType": "data-group",
            "Message": "Data group ready for move (prepare complete)",
            "EventCategories": [
                "notification"
            ],
            "Date": "2026-11-25T09:38:27.611Z",
            "SourceArn": "arn:aws:rds:us-east-1:111122223333:data-group:dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
        },
        {
            "SourceIdentifier": "dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "SourceType": "data-group",
            "Message": "Data group move complete - execute done",
            "EventCategories": [
                "notification"
            ],
            "Date": "2026-11-25T09:40:51.093Z",
            "SourceArn": "arn:aws:rds:us-east-1:111122223333:data-group:dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
        }
    ]
}
```

You can also subscribe to data group events, or match them in Amazon EventBridge with the detail type `RDS Data Group Event`. For more information, see [Working with Amazon RDS event notification](USER_Events.md).

The following Amazon EventBridge event pattern matches every data group event.

```json
{
  "source": ["aws.rds"],
  "detail-type": ["RDS Data Group Event"]
}
```

For the list of data group events, see [Data group events](aurora-data-groups-reference.md#dg-ref-events).

## Finding the busiest data group with SQL
<a name="dg-monitor-busy"></a>

To see which data group is the busiest, run the following query on the writer DB instance as the cluster admin user. It shows the number of databases, open connections, and transactions of each data group. `pg_default` is the default data group. The transaction counts are cumulative since the last statistics reset. To measure current activity, run the query twice a few minutes apart and compare the results.

```SQL
SELECT t.spcname AS data_group,
       count(*) AS databases,
       sum(s.numbackends) AS connections,
       sum(s.xact_commit + s.xact_rollback) AS transactions
  FROM pg_database d
  JOIN pg_tablespace t ON t.oid = d.dattablespace
  JOIN pg_stat_database s ON s.datid = d.oid
 WHERE has_database_privilege(d.oid, 'CONNECT')
 GROUP BY t.spcname
 ORDER BY transactions DESC;
```

The output resembles the following example.

```
 data_group | databases | connections | transactions
------------+-----------+-------------+--------------
 pg_default |         6 |           1 |          663
 tenant57   |         1 |           1 |          523
 tenant42   |         1 |           1 |          111
 tenant63   |         1 |           0 |           17
(4 rows)
```

To see the size of a data group, see [Before you move a data group](aurora-data-groups-moving.md#dg-move-before).

## Checking the I/O of each data group with SQL
<a name="dg-monitor-io"></a>

Use the `aurora_datagroup_metrics` function to see the read and write I/O of each data group, in operations per second. This helps you find the data group that causes most of the storage I/O on a DB cluster.

Run the following query on the writer DB instance as the cluster admin user or as a user that has the `pg_monitor` role. The function returns one row for each data group and metric.

```SQL
SELECT datagroup_name, metric_name, metric_value, metric_unit, last_updated
  FROM aurora_datagroup_metrics()
 ORDER BY datagroup_name, metric_name;
```

The output resembles the following example.

```
 datagroup_name | metric_name | metric_value | metric_unit  |         last_updated
----------------+-------------+--------------+--------------+-------------------------------
 tenant42       | READ_IOPS   |           12 | Count/Second | 2026-11-25 09:38:40.140346+00
 tenant42       | WRITE_IOPS  |          310 | Count/Second | 2026-11-25 09:38:40.140346+00
 tenant57       | READ_IOPS   |            1 | Count/Second | 2026-11-25 09:38:40.140346+00
 tenant57       | WRITE_IOPS  |            0 | Count/Second | 2026-11-25 09:38:40.140346+00
(4 rows)
```

The values refresh about once a minute. The `last_updated` column shows when they were last refreshed, so the same query returns the same values until the next refresh. The function shows the current values only. To keep a history, run the query on a schedule and save the results.

## Monitoring data groups with CloudWatch Database Insights
<a name="dg-monitor-di"></a>

With CloudWatch Database Insights, you can monitor the database load (DB load) of a DB cluster by data group and identify the data groups that contribute the most to it. DB load measures the level of session activity in your database. For more information, see [Database load](USER_PerfInsights.Overview.ActiveSessions.md).

In the console, open the Database Insights page for a DB instance. On the **DB Load Analysis** tab, choose **Top datagroups**. Use it to do the following:
+ Compare DB load across data groups to identify a data group that affects the performance of the others (a noisy neighbor).
+ Identify the data groups with the highest DB load.
+ View the wait events that contribute to the DB load of each data group, such as CPU, lock, or I/O waits.

To view the DB load of each data group over time, choose **Slice by** on the **Database load** chart, and then choose the data group option.

To get the same information from the API, call `DescribeDimensionKeys` and group by `db.datagroup`. Each result identifies a data group by its identifier (`db.datagroup.id`) and its name (`db.datagroup.name`).