

如需與 Amazon Timestream for LiveAnalytics 類似的功能，請考慮使用 Amazon Timestream for InfluxDB。它提供簡化的資料擷取和單一位數毫秒查詢回應時間，以進行即時分析。[在這裡](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html)進一步了解。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# LiveAnalytics 指標和維度的 Timestream
<a name="metrics-dimensions"></a>

當您與 Timestream for LiveAnalytics 互動時，它會將下列指標和維度傳送至 Amazon CloudWatch。所有指標都會每分鐘彙總和報告。您可以使用下列程序來檢視 Timestream for LiveAnalytics 的指標。

**使用 CloudWatch 主控台檢視指標**

指標會先依服務命名空間分組，再依各命名空間內不同的維度組合分類。

1. 在 [https://console.aws.amazon.com/cloudwatch/](https://console.aws.amazon.com/cloudwatch/) 開啟 CloudWatch 主控台。

1. 如有必要請變更 區域。在導覽列上，選擇 AWS 資源所在的區域。如需詳細資訊，請參閱 [AWS 服務端點](https://docs.aws.amazon.com/general/latest/gr/rande.html)。

1. 在導覽窗格中，選擇 **指標**。

1. **在所有指標**索引標籤下，選擇 `AWS/Timestream for LiveAnalytics.`

**使用 AWS CLI 檢視指標**
+ 在命令提示中，使用下列命令。

  ```
  1. aws cloudwatch list-metrics --namespace "AWS/Timestream"
  ```

## Timestream for LiveAnalytics 指標的維度
<a name="mcs-metric-dimensions"></a>

Timestream for LiveAnalytics 的指標取決於帳戶、資料表名稱或操作的值。您可以使用 CloudWatch 主控台，沿著下表中的任何維度擷取 Timestream for LiveAnalytics 資料：


|  維度  |  Description  | 
| --- | --- | 
|  DatabaseName  |  此維度會將資料限制在特定 Timestream for LiveAnalytics 資料庫。此值可以是目前區域和目前 AWS 帳戶中的任何資料庫   | 
|  Operation  |  此維度會將資料限制在其中一個 Timestream for LiveAnalytics 操作，例如 `Storage`、`BatchLoad`、 `WriteRecords`或 `ScheduledQuery`。如需可用值的清單，請參閱 Timestream for LiveAnalytics 查詢 API 參考。  | 
|  TableName  |  此維度會將資料限制在 Timestream for LiveAnalyticss資料庫中的特定資料表。  | 

**重要**  
`CumulativeBytesMetered`、 `UserErrors`和 `SystemErrors`指標只有 `Operation`維度。 `SuccessfulRequestLatency`指標一律有 `Operation`維度，但也可能有 `DatabaseName`和 `TableName`維度，取決於 的值`Operation`。這是因為 LiveAnalytics 的 Timestream 資料表層級操作具有 `DatabaseName`和 `TableName`作為維度，但帳戶層級操作沒有。

## LiveAnalytics 指標的 Timestream
<a name="mcs-metrics"></a>

**注意**  
Amazon CloudWatch 每隔一分鐘彙總以下所有 Timestream for LiveAnalytics 指標。


**一般指標**  

| 指標 | Description | 
| --- | --- | 
|  `SuccessfulRequestLatency`  |  在指定期間內向 Timestream for LiveAnalytics 提出的成功請求。SuccessfulRequestLatency 可以提供兩種不同類型的資訊： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html) SuccessfulRequestLatency 只會反映 Timestream for LiveAnalytics 內的活動，不會考慮網路延遲或用戶端活動。  單位：`Milliseconds` [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html) 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 


**寫入和儲存指標**  

| 指標 | Description | 
| --- | --- | 
|  `MagneticStoreRejectedRecordCount`  |  非同步拒絕的磁性存放區寫入記錄數目。如果新記錄的版本小於目前版本，或新記錄的版本等於目前版本，但具有不同的資料，則可能會發生這種情況。  單位：`Count` [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html) 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
|  `MagneticStoreRejectedUploadUserFailures`  |  因使用者錯誤而未上傳的磁性存放區拒絕記錄報告數目。這可能是因為 IAM 許可未正確設定或已刪除 S3 儲存貯體所致。  單位：`Count` [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html) 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
|  `MagneticStoreRejectedUploadSystemFailures`  |  因系統錯誤而未上傳的磁性存放區拒絕記錄報告數目。  單位：`Count` [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html) 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
|  `ActiveMagneticStorePartitions`  |  在特定時間主動擷取資料的磁性存放區分割區數量。  單位：`Count` [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html) 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
|  `MagneticStorePendingRecordsLatency`  |  無法用於查詢之磁性存放區的最舊寫入。寫入磁性存放區的記錄將在 6 小時內提供查詢。  單位：`Milliseconds` [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html) 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
|  `MemoryCumulativeBytesMetered`  |  儲存在記憶體存放區中的資料量，以位元組為單位  單位：`Bytes`  維度：`Operation` 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
|  `MagneticCumulativeBytesMetered`  |  儲存在磁性存放區中的資料量，以位元組為單位  單位：`Bytes`  維度：`Operation` 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
|  `CumulativeBytesMetered`  |  擷取至 Timestream for LiveAnalytics 所計量的資料量，以位元組為單位。  單位：`Bytes` 維度：`Operation` 有效統計資料： `Sum`  | 
|  `NumberOfRecords`  |  擷取至 Timestream for LiveAnalytics 的記錄數目。  單位：`Count` 維度：`Operation` 有效統計資料： `Sum`  | 


**查詢指標**  

| 指標 | Description | 
| --- | --- | 
|  `CumulativeBytesMetered`  |  傳送至 Timestream for LiveAnalytics 的查詢掃描的資料量，以位元組為單位。  單位：`Bytes`  維度：`Operation` 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
| ResourceCount |  用於帳戶中查詢工作負載的時間串流運算單位 (TCUs)。此指標會在來自帳戶的作用中查詢工作負載期間，以每分鐘的運算單位上限和下限發出。 單位：`Count` 有效統計資料：最小值、最大值 維度：`Service: Timestream`、`Resource: QueryTCU`、`Type: Resource`、 `Class: OnDemand`  | 


**錯誤指標**  

| 指標 | Description | 
| --- | --- | 
|  `SystemErrors`  |  在指定期間內產生 SystemError 的 Timestream for LiveAnalytics 請求。SystemError 通常表示內部服務錯誤。  單位：`Count`  維度：`Operation` 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 
|  `UserErrors`  |  在指定期間內產生 InvalidRequest 錯誤的 Timestream for LiveAnalytics 請求。InvalidRequest 通常表示用戶端錯誤，例如無效的參數組合、嘗試更新不存在的資料表，或不正確的請求簽章。UserErrors 代表目前 AWS 區域和目前 AWS 帳戶的無效請求彙總。  單位：`Count`  維度：`Operation` 有效的統計數字： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/timestream/latest/developerguide/metrics-dimensions.html)  | 

**重要**  
並非所有統計數字，例如 `Average` 或 `Sum`，皆適用於所有指標。不過，所有這些值都可以透過 Timestream for LiveAnalytics 主控台，或使用 CloudWatch 主控台 AWS CLI或所有指標 AWS SDKs 取得。