> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 셀렉터로 필터링되고 타임스탬프가 지정된 인터벌 내에 있는 TimeSeries 테이블에서 시계열을 읽어옵니다.

# timeSeriesSelector

셀렉터로 필터링되고 타임스탬프가 지정된 인터벌 내에 있는 TimeSeries 테이블에서 시계열을 읽어옵니다.
이 함수는 [range selectors](https://prometheus.io/docs/prometheus/latest/querying/basics/#range-vector-selectors)와 유사하지만, [instant selectors](https://prometheus.io/docs/prometheus/latest/querying/basics/#instant-vector-selectors)를 구현하는 데에도 사용됩니다.

<div id="syntax">
  ## 구문
</div>

```sql theme={null}
timeSeriesSelector('db_name', 'time_series_table', 'instant_query', min_time, max_time)
timeSeriesSelector(db_name.time_series_table, 'instant_query', min_time, max_time)
timeSeriesSelector('time_series_table', 'instant_query', min_time, max_time)
```

<div id="arguments">
  ## 인수
</div>

* `db_name` - TimeSeries 테이블이 있는 데이터베이스 이름입니다.
* `time_series_table` - TimeSeries 테이블 이름입니다.
* `instant_query` - `@` 또는 `offset` 수정자 없이 [PromQL 구문](https://prometheus.io/docs/prometheus/latest/querying/basics/#instant-vector-selectors)으로 작성된 instant selector입니다.
* \`min\_time - 시작 타임스탬프이며, 해당 값도 포함됩니다.
* \`max\_time - 종료 타임스탬프이며, 해당 값도 포함됩니다.

<div id="returned_value">
  ## 반환 값
</div>

이 함수는 3개의 컬럼을 반환합니다:

* `id` - 지정된 셀렉터와 일치하는 시계열의 식별자를 포함합니다.
* `timestamp` - 타임스탬프를 포함합니다.
* `value` - 값을 포함합니다.

반환되는 데이터에는 정해진 순서가 없습니다.

<div id="example">
  ## 예시
</div>

```sql theme={null}
SELECT * FROM timeSeriesSelector(mytable, 'http_requests{job="prometheus"}', now() - INTERVAL 10 MINUTES, now())
```
