Skip to content

Commit

Permalink
docs: recommend to turn on new_naming for vector (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 authored Dec 9, 2024
1 parent b01010e commit b70a21b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
8 changes: 5 additions & 3 deletions docs/greptimecloud/getting-started/vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Instructions on creating a service, writing data using Vector, and
# Vector

## Create Service
import Includecreateservice from './create-service.md'
import Includecreateservice from './create-service.md'

<Includecreateservice/>

Expand All @@ -21,10 +21,12 @@ scrape_interval_secs = 30
[sinks.greptime]
inputs = ["in"]
type = "greptimedb"
endpoint = "<host>:4001"
endpoint = "<host>:5001"
dbname = "<dbname>"
username = "<username>"
password = "<password>"
new_naming = true
tls = {}
```

Then start vector with the specified configuration file:
Expand All @@ -34,6 +36,6 @@ vector --config vector.toml
```

## Visualize Data
import Includevisualizedata from './visualize-data.md'
import Includevisualizedata from './visualize-data.md'

<Includevisualizedata/>
1 change: 1 addition & 0 deletions docs/greptimecloud/integrations/vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dbname = "<dbname>"
username = "<username>"
password = "<password>"
tls = {}
new_naming = true

## logs
[sources.logs_in]
Expand Down
3 changes: 2 additions & 1 deletion docs/user-guide/ingest-data/for-observerbility/vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Instructions for integrating Vector with GreptimeDB, including configuration, data model mapping, and example configurations.
---

import DocTemplate from '../../../db-cloud-shared/clients/vector-integration.md'
import DocTemplate from '../../../db-cloud-shared/clients/vector-integration.md'


# Vector
Expand All @@ -28,6 +28,7 @@ endpoint = "<host>:4001"
dbname = "<dbname>"
username = "<username>"
password = "<password>"
new_naming = true
```

GreptimeDB uses gRPC to communicate with Vector, so the default port for the Vector sink is `4001`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: 介绍如何使用 Vector 收集系统指标数据并将其发送
# Vector

## 创建服务
import Includecreateservice from './create-service.md'
import Includecreateservice from './create-service.md'

<Includecreateservice/>

Expand All @@ -21,10 +21,12 @@ scrape_interval_secs = 30
[sinks.cloud]
inputs = ["in"]
type = "greptimedb"
endpoint = "<host>:4001"
endpoint = "<host>:5001"
dbname = "<dbname>"
username = "<username>"
password = "<password>"
tls = {}
new_naming = true
```

然后使用配置文件启动 Vector:
Expand All @@ -34,6 +36,6 @@ vector --config vector.toml
```

## 数据可视化
import Includevisualizedata from './visualize-data.md'
import Includevisualizedata from './visualize-data.md'

<Includevisualizedata/>
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dbname = "<dbname>"
username = "<username>"
password = "<password>"
tls = {}
new_naming = true

## logs
[sources.logs_in]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: 介绍如何使用 Vector 将数据写入 GreptimeDB,包括最小配置示例和数据模型的映射规则。
---

import DocTemplate from '../../../db-cloud-shared/clients/vector-integration.md'
import DocTemplate from '../../../db-cloud-shared/clients/vector-integration.md'


# Vector
Expand Down Expand Up @@ -30,6 +30,7 @@ endpoint = "<host>:4001"
dbname = "<dbname>"
username = "<username>"
password = "<password>"
new_naming = true
```

GreptimeDB 使用 gRPC 与 Vector 进行通信,因此 Vector sink 的默认端口是 `4001`
Expand Down

0 comments on commit b70a21b

Please sign in to comment.