Amazon Relational Database Service
用户指南 (API 版本 2014-10-31)
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 Amazon AWS 入门

发布到 Amazon CloudWatch 的 Performance Insights 指标

Performance Insights 会自动将指标发布到 Amazon CloudWatch。

Amazon RDS Performance Insights Metrics

The AWS/RDS namespace includes the following metrics that apply to database entities running Amazon RDS Performance Insights.

Metric Description

DBLoad

The average number of active sessions for the DB engine.

DBLoadCPU

The number of active sessions where the wait event type is CPU.

DBLoadNonCPU

The number of active sessions where the wait event type is not CPU.

可以使用 CloudWatch 控制台、AWS CLI 或 CloudWatch API 来查看这些指标。

例如,可以通过运行 get-metric-statistics 命令来获取 DBLoad 指标的统计数据。

aws cloudwatch get-metric-statistics --region us-west-2 --namespace AWS/RDS --metric-name DBLoad --period 60 --statistics Sum --start-time 1532035185 --end-time 1532036185 --dimensions Name=DBInstanceIdentifier,Value=db-loadtest-0

该示例将生成与下类似的输出。

{ "Datapoints": [ { "Timestamp": "2018-07-19T21:30:00Z", "Unit": "None", "Sum": 1380.0 }, { "Timestamp": "2018-07-19T21:34:00Z", "Unit": "None", "Sum": 1380.0 }, { "Timestamp": "2018-07-19T21:35:00Z", "Unit": "None", "Sum": 1380.0 }, { "Timestamp": "2018-07-19T21:31:00Z", "Unit": "None", "Sum": 1380.0 }, { "Timestamp": "2018-07-19T21:32:00Z", "Unit": "None", "Sum": 1380.0 }, { "Timestamp": "2018-07-19T21:29:00Z", "Unit": "None", "Sum": 8280.0 }, { "Timestamp": "2018-07-19T21:33:00Z", "Unit": "None", "Sum": 1380.0 } ], "Label": "DBLoad" }

有关 CloudWatch 的更多信息,请参阅 Amazon CloudWatch 用户指南 中的什么是 Amazon CloudWatch?