Supervisión de Aurora DSQL con Amazon CloudWatch
Supervise Aurora DSQL mediante CloudWatch, que recopila y procesa los datos sin procesar y los convierte en métricas legibles y casi en tiempo real. CloudWatch conserva estas estadísticas durante 15 meses, lo que lo ayuda a obtener una perspectiva mejor del rendimiento de la aplicación o servicio web. Establezca alarmas para vigilar umbrales específicos y enviar notificaciones o realizar acciones cuando se cumplan. Revise las siguientes métricas de uso y observabilidad disponibles para Aurora DSQL.
Para obtener más información, consulte la Guía del usuario de Amazon CloudWatch.
Observabilidad y rendimiento
En esta tabla se describen las métricas de observabilidad de Aurora DSQL. Incluye métricas para el seguimiento de las transacciones totales y de solo lectura a fin de proporcionar una caracterización general de la carga de trabajo. Se incluyen métricas procesables, como los tiempos de espera de las consultas y la tasa de conflictos de OCC, para ayudar a identificar los problemas de rendimiento y los conflictos de concurrencia. Las métricas relacionadas con la sesión, activas y totales, ofrecen información sobre la carga actual del sistema.
| Nombre de métrica de CloudWatch | Métrica | Unidad | Descripción |
|---|---|---|---|
| ReadOnlyTransactions | Read-only transactions | none | The number of read-only transactions |
| TotalTransactions | Total transactions | none | The total number of transactions executed on the system, including read-only transactions. |
| QueryTimeouts | Query timeouts | none | The number of queries which have timed out due to hitting the maximum transaction time |
| OccConflicts | OCC conflicts | none | The number of transactions aborted due to key level OCC |
| CommitLatency | Commit Latency | milliseconds | Time spent by commit phase of query execution (P50) |
| BytesWritten | Bytes Written | bytes | Bytes written to storage |
| BytesRead | Bytes Read | bytes | Bytes read from storage |
| ComputeTime | QP compute time | milliseconds | QP wall clock time |
| ClusterStorageSize | Cluster Storage Size | bytes | Cluster size |
Métricas de uso
Aurora DSQL mide toda la actividad basada en solicitudes, como el procesamiento de consultas, las lecturas y las escrituras, mediante una única unidad de facturación normalizada llamada Unidad de procesamiento distribuido (DPU).
| Nombre de métrica de CloudWatch | Métrica | Dimensión: ResourceId | Unidad | Descripción |
|---|---|---|---|---|
| WriteDPU | Write Units | <cluster-id> | DPU | Approximates the write active-use component of your Aurora DSQL cluster DPU usage. |
| MultiRegionWriteDPU | Multi-Region Write Units | <cluster-id> | DPU | Applicable for Multi-Region clusters: Approximates the multi-Region write active-use component of your Aurora DSQL cluster DPU usage. |
| ReadDPU | Read Units | <cluster-id> | DPU | Approximates the read active-use component of your Aurora DSQL cluster DPU usage. |
| ComputeDPU | Compute Units | <cluster-id> | DPU | Approximates the compute active-use component of your Aurora DSQL cluster DPU usage. |
| TotalDPU | Total Units | <cluster-id> | DPU | Approximates the total active-use component of your Aurora DSQL cluster DPU usage. |
Métricas de flujos de CDC
Aurora DSQL publica las siguientes métricas para los flujos de captura de datos de cambios (CDC). Estas métricas utilizan las dimensiones ClusterId y StreamId, por lo que puede supervisar cada flujo de CDC de forma independiente. Para obtener más información sobre los flujos de CDC, consulte Flujos de captura de datos de cambios (CDC).
| Nombre de métrica de CloudWatch | Métrica | Unidad | Descripción |
|---|---|---|---|
| IsImpaired | Is impaired | none | Indicates whether the stream is impaired. The value is 1
when the stream is in the IMPAIRED state, and
0 when the stream is healthy. Use this metric to create a
CloudWatch alarm that notifies you when a stream becomes impaired. |
| PublishedBytes | Published bytes | bytes | The total number of bytes that Aurora DSQL wrote to the target Kinesis data stream. |
| PublishedRecords | Published records | none | The number of CDC records that Aurora DSQL wrote to the target Kinesis data stream. |
| BehindSourceLag | Behind source lag | milliseconds | The delay, in milliseconds, between when a transaction commits in Aurora DSQL and when
the CDC system processes the resulting record. A rising value indicates
that the CDC pipeline is falling behind the write workload. If lag
grows beyond the failure threshold, the stream transitions to
ERROR. |
| BytesStreamed | Bytes streamed | bytes | The total bytes streamed through the CDC pipeline for billing purposes. This metric reflects the data volume used to calculate streaming charges. |
| StreamDPU | Stream DPU | DPU | The Distributed Processing Units (DPU) consumed by the CDC stream. This metric reflects the processing cost of streaming change data. |