

Amazon Timestream for LiveAnalytics와 유사한 기능을 원하는 경우 Amazon Timestream for InfluxDB를 고려해 보세요. 간소화된 데이터 수집과 실시간 분석을 위한 10밀리초 미만의 쿼리 응답 시간을 제공합니다. [여기](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html)에서 자세히 알아보세요.

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# Timestream for LiveAnalytics 출력 플러그인이 포함된 Telegraf 실행
<a name="Telegraf.running-output-plugin.title"></a>

아래 지침에 따라 Timestream for LiveAnalytics 플러그인이 포함된 Telegraf를 실행할 수 있습니다.

1. Telegraf를 사용하여 예제 구성을 생성합니다.

   ```
   telegraf --section-filter agent:inputs:outputs --input-filter cpu:mem --output-filter timestream config > example.config
   ```

1. [관리 콘솔](console_timestream.md#console_timestream.db.using-console), [CLI](https://docs.aws.amazon.com/cli/latest/reference/timestream-write/create-database.html) 또는 [SDK](getting-started-sdks.md)를 사용하여 Timestream에서 데이터베이스를 생성합니다.

1. `example.config` 파일의 `[[outputs.timestream]] ` 섹션 아래에서 다음 키를 편집하여 데이터베이스 이름을 추가합니다.

   ```
   database_name = "yourDatabaseNameHere"
   ```

1. 기본적으로 Telegraf는 테이블을 생성합니다. 테이블을 수동으로 생성하려면 `create_table_if_not_exists`를 `false`로 설정하고 [관리 콘솔](console_timestream.md#console_timestream.table.using-console), [CLI](https://docs.aws.amazon.com/cli/latest/reference/timestream-write/create-table.html) 또 [SDK](getting-started-sdks.md)를 사용하여 테이블을 생성하는 지침을 따릅니다.

1. *example.config* 파일의 `[[outputs.timestream]] ` 섹션 아래에서 자격 증명을 구성합니다. 자격 증명은 다음 작업을 허용해야 합니다.

   ```
   timestream:DescribeEndpoints
   timestream:WriteRecords
   ```
**참고**  
`create_table_if_not_exists`를 `true`로 두려는 경우 다음을 포함합니다.  

   ```
   timestream:CreateTable
   ```
**참고**  
`describe_database_on_start`를 `true`로 설정하는 경우 다음을 포함하세요.  

   ```
   timestream:DescribeDatabase
   ```

1. 나머지 구성은 원하는 대로 편집할 수 있습니다.

1. 구성 파일 편집을 완료한 후 다음 명령으로 Telegraf를 실행합니다.

   ```
   ./telegraf --config example.config
   ```

1. 에이전트 구성에 따라 몇 초 이내에 지표가 표시됩니다. Timestream 콘솔에서 새 테이블인 *cpu*와 *mem*도 확인할 수 있습니다.