Vector
创建服务
为了充分体验 GreptimeCloud 的强大功能,你需要创建一个包含身份验证数据库的服务。打开 GreptimeCloud 控制台,注册并登录。然后单击 New Service
按钮并配置以下内容:
- Service Name: 服务名称。
- Description: 有关该服务的更多信息。
- Region: 选择数据库所在的区域。
- Plan: 选择要使用的定价计划。
现在创建服务,准备向其写入一些数据。
写入数据
将下方配置写在 vector.toml
文件中,配置内容为将 host_metrics 作为 Vector source,将 GreptimeCloud 作为 Vector sink destination。
[sources.in]
type = "host_metrics"
scrape_interval_secs = 30
[sinks.cloud]
inputs = ["in"]
type = "greptimedb"
endpoint = "<host>:5001"
dbname = "<dbname>"
username = "<username>"
password = "<password>"
tls = {}
new_naming = true