

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

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

# 使用 Timestream for LiveAnalytics 輸出外掛程式安裝 Telegraf
<a name="Telegraf.installing-output-plugin"></a>

從 1.16 版開始，Timestream for LiveAnalytics 輸出外掛程式可在官方 Telegraf 版本中使用。若要在大多數主要作業系統上安裝輸出外掛程式，請遵循 [InfluxData Telegraf 文件](https://docs.influxdata.com/telegraf/v1.16/introduction/installation/)中所述的步驟。若要在 Amazon Linux 2 作業系統上安裝 ，請遵循下列指示。

## 在 Amazon Linux 2 上使用 Timestream for LiveAnalytics 輸出外掛程式安裝 Telegraf
<a name="w2aab7c44c35b9b5"></a>

 若要在 Amazon Linux 2 上使用 Timestream 輸出外掛程式安裝 Telegraf，請執行下列步驟。

1. 使用`yum`套件管理員安裝 Telegraf。

   ```
   cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
   [influxdb]
   name = InfluxDB Repository - RHEL \$releasever
   baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
   enabled = 1
   gpgcheck = 1
   gpgkey = https://repos.influxdata.com/influxdb.key
   EOF
   ```

1. 執行下列命令。

   ```
   sudo sed -i "s/\$releasever/$(rpm -E %{rhel})/g" /etc/yum.repos.d/influxdb.repo
   ```

1. 安裝並啟動 Telegraf。

   ```
   sudo yum install telegraf
   sudo service telegraf start
   ```