Skip to content

Commit

Permalink
fix: cloud urls (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicecui authored Oct 29, 2024
1 parent e3e9b4d commit 24fa78b
Show file tree
Hide file tree
Showing 28 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GreptimeDB 通过原生支持 [OTLP/HTTP](https://opentelemetry.io/docs/specs/ot
* URL: `https://<host>/v1/otlp/v1/metrics`
* Headers:
* `X-Greptime-DB-Name`: `<dbname>`
* `Authorization`: `Basic` 认证,是 `<username>:<password>` 的 Base64 编码字符串。更多信息请参考 [鉴权](https://docs.greptime.cn/user-guide/clients/authentication)[HTTP API](https://docs.greptime.cn/user-guide/clients/http-api#authentication)
* `Authorization`: `Basic` 认证,是 `<username>:<password>` 的 Base64 编码字符串。更多信息请参考 [鉴权](https://docs.greptime.cn/v0.6/user-guide/clients/authentication)[HTTP API](https://docs.greptime.cn/v0.6/user-guide/clients/http-api#authentication)

请求中使用 binary protobuf 编码 payload,因此你需要使用支持 `HTTP/protobuf` 的包。例如,在 Node.js 中,可以使用 [`exporter-trace-otlp-proto`](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-proto);在 Go 中,可以使用 [`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp);在 Java 中,可以使用 [`io.opentelemetry:opentelemetry-exporter-otlp`](https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-exporter-otlp);在 Python 中,可以使用 [`opentelemetry-exporter-otlp-proto-http`](https://pypi.org/project/opentelemetry-exporter-otlp-proto-http/)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# InfluxDB Line Protocol

GreptimeCloud 提供了 [Influxdb line protocol](https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/) 的 http 接口。该接口和认证与 [InfluxDB write protocol 1.x](https://docs.influxdata.com/influxdb/v1.8/guides/write_data/#write-data-using-the-influxdb-api) 兼容。更多信息请参考 GreptimeDB 的 [InfluxDB 客户端](https://docs.greptime.cn/user-guide/clients/influxdb-line)
GreptimeCloud 提供了 [Influxdb line protocol](https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/) 的 http 接口。该接口和认证与 [InfluxDB write protocol 1.x](https://docs.influxdata.com/influxdb/v1.8/guides/write_data/#write-data-using-the-influxdb-api) 兼容。更多信息请参考 GreptimeDB 的 [InfluxDB 客户端](https://docs.greptime.cn/v0.6/user-guide/clients/influxdb-line)

- URL: `https://<host>/v1/influxdb/write?db=<dbname>`
- Username: `<username>`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MySQL

GreptimeCloud 可以通过 MySQL 协议访问,兼容大多数标准客户端和驱动程序,其连接使用 TLS 加密。有关更多信息,请参阅 GreptimeDB 的 [MySQL 客户端](https://docs.greptime.cn/user-guide/clients/mysql)
GreptimeCloud 可以通过 MySQL 协议访问,兼容大多数标准客户端和驱动程序,其连接使用 TLS 加密。有关更多信息,请参阅 GreptimeDB 的 [MySQL 客户端](https://docs.greptime.cn/v0.6/user-guide/clients/mysql)

要连接到 GreptimeCloud,使用以下信息:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GreptimeCloud 支持用 PostgreSQL v3 协议访问 GreptimeDB。大多数标准客户端和驱动程序在协议级别上兼容,且连接使用TLS加密。
请注意,我们在 GreptimeDB 中不使用 Postgres 的 SQL 方言,因此可能有一些不支持的语句。
有关更多信息,请参考 GreptimeDB 的[Postgresql文档](https://docs.greptime.cn/user-guide/clients/postgresql)
有关更多信息,请参考 GreptimeDB 的[Postgresql文档](https://docs.greptime.cn/v0.6/user-guide/clients/postgresql)

要使用 Postgres 协议连接到 GreptimeCloud,请使用以下信息:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 快速设置

GreptimeCloud 与 GreptimeDB 完全兼容 Prometheus。这意味着你可以无缝地将 GreptimeCloud 用作 Prometheus 存储和查询的替代品。有关更多信息,请参阅 GreptimeDB 用户指南中的 [Prometheus 文档](https://docs.greptime.cn/user-guide/clients/prometheus)
GreptimeCloud 与 GreptimeDB 完全兼容 Prometheus。这意味着你可以无缝地将 GreptimeCloud 用作 Prometheus 存储和查询的替代品。有关更多信息,请参阅 GreptimeDB 用户指南中的 [Prometheus 文档](https://docs.greptime.cn/v0.6/user-guide/clients/prometheus)

## 远程写入和读取

Expand Down Expand Up @@ -36,4 +36,4 @@ git push

## PromQL

GreptimeDB 支持 PromQL (Prometheus 查询语言),这意味着你可以将 GreptimeDB 作为 Prometheus 查询的替代品。有关更多详细信息,请参考 [PromQL](https://docs.greptime.cn/user-guide/clients/prometheus#prometheus-query-language)
GreptimeDB 支持 PromQL (Prometheus 查询语言),这意味着你可以将 GreptimeDB 作为 Prometheus 查询的替代品。有关更多详细信息,请参考 [PromQL](https://docs.greptime.cn/v0.6/user-guide/clients/prometheus#prometheus-query-language)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Go SDK

GreptimeDB Go SDK 使用 gRPC 与数据库通信,
请参考 [Go SDK 文档](https://docs.greptime.com/user-guide/client-libraries/go)查看更多 SDK 使用的相关内容。
请参考 [Go SDK 文档](https://docs.greptime.cn/v0.6/user-guide/client-libraries/go)查看更多 SDK 使用的相关内容。

请使用以下信息连接到 GreptimeCloud:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Java SDK

GreptimeDB Java ingester 库使用 gRPC 协议写入数据,
请参考 [Java 库文档](https://docs.greptime.cn/user-guide/client-libraries/java)查看更多使用内容。
请参考 [Java 库文档](https://docs.greptime.cn/v0.6/user-guide/client-libraries/java)查看更多使用内容。

请使用以下信息连接到 GreptimeCloud:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GreptimeDB 通过原生支持 [OTLP/HTTP](https://opentelemetry.io/docs/specs/ot
* URL: `https://<host>/v1/otlp/v1/metrics`
* Headers:
* `X-Greptime-DB-Name`: `<dbname>`
* `Authorization`: `Basic` 认证,是 `<username>:<password>` 的 Base64 编码字符串。更多信息请参考 [鉴权](https://docs.greptime.cn/user-guide/clients/authentication)[HTTP API](https://docs.greptime.cn/user-guide/clients/http-api#authentication)
* `Authorization`: `Basic` 认证,是 `<username>:<password>` 的 Base64 编码字符串。更多信息请参考 [鉴权](https://docs.greptime.cn/v0.7/user-guide/clients/authentication)[HTTP API](https://docs.greptime.cn/v0.7/user-guide/clients/http-api#authentication)

请求中使用 binary protobuf 编码 payload,因此你需要使用支持 `HTTP/protobuf` 的包。例如,在 Node.js 中,可以使用 [`exporter-trace-otlp-proto`](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-proto);在 Go 中,可以使用 [`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp);在 Java 中,可以使用 [`io.opentelemetry:opentelemetry-exporter-otlp`](https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-exporter-otlp);在 Python 中,可以使用 [`opentelemetry-exporter-otlp-proto-http`](https://pypi.org/project/opentelemetry-exporter-otlp-proto-http/)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# InfluxDB Line Protocol

GreptimeCloud 提供了 [Influxdb line protocol](https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/) 的 http 接口。该接口和认证与 [InfluxDB write protocol 1.x](https://docs.influxdata.com/influxdb/v1.8/guides/write_data/#write-data-using-the-influxdb-api) 兼容。更多信息请参考 GreptimeDB 的 [InfluxDB 客户端](https://docs.greptime.cn/user-guide/clients/influxdb-line)
GreptimeCloud 提供了 [Influxdb line protocol](https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/) 的 http 接口。该接口和认证与 [InfluxDB write protocol 1.x](https://docs.influxdata.com/influxdb/v1.8/guides/write_data/#write-data-using-the-influxdb-api) 兼容。更多信息请参考 GreptimeDB 的 [InfluxDB 客户端](https://docs.greptime.cn/v0.7/user-guide/clients/influxdb-line)

- URL: `https://<host>/v1/influxdb/write?db=<dbname>`
- Username: `<username>`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MySQL

GreptimeCloud 可以通过 MySQL 协议访问,兼容大多数标准客户端和驱动程序,其连接使用 TLS 加密。有关更多信息,请参阅 GreptimeDB 的 [MySQL 客户端](https://docs.greptime.cn/user-guide/clients/mysql)
GreptimeCloud 可以通过 MySQL 协议访问,兼容大多数标准客户端和驱动程序,其连接使用 TLS 加密。有关更多信息,请参阅 GreptimeDB 的 [MySQL 客户端](https://docs.greptime.cn/v0.7/user-guide/clients/mysql)

要连接到 GreptimeCloud,使用以下信息:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GreptimeCloud 支持用 PostgreSQL v3 协议访问 GreptimeDB。大多数标准客户端和驱动程序在协议级别上兼容,且连接使用TLS加密。
请注意,我们在 GreptimeDB 中不使用 Postgres 的 SQL 方言,因此可能有一些不支持的语句。
有关更多信息,请参考 GreptimeDB 的[Postgresql文档](https://docs.greptime.cn/user-guide/clients/postgresql)
有关更多信息,请参考 GreptimeDB 的[Postgresql文档](https://docs.greptime.cn/v0.7/user-guide/clients/postgresql)

要使用 Postgres 协议连接到 GreptimeCloud,请使用以下信息:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 快速设置

GreptimeCloud 与 GreptimeDB 完全兼容 Prometheus。这意味着你可以无缝地将 GreptimeCloud 用作 Prometheus 存储和查询的替代品。有关更多信息,请参阅 GreptimeDB 用户指南中的 [Prometheus 文档](https://docs.greptime.cn/user-guide/clients/prometheus)
GreptimeCloud 与 GreptimeDB 完全兼容 Prometheus。这意味着你可以无缝地将 GreptimeCloud 用作 Prometheus 存储和查询的替代品。有关更多信息,请参阅 GreptimeDB 用户指南中的 [Prometheus 文档](https://docs.greptime.cn/v0.7/user-guide/clients/prometheus)

## 远程写入和读取

Expand Down Expand Up @@ -36,4 +36,4 @@ git push

## PromQL

GreptimeDB 支持 PromQL (Prometheus 查询语言),这意味着你可以将 GreptimeDB 作为 Prometheus 查询的替代品。有关更多详细信息,请参考 [PromQL](https://docs.greptime.cn/user-guide/clients/prometheus#prometheus-query-language)
GreptimeDB 支持 PromQL (Prometheus 查询语言),这意味着你可以将 GreptimeDB 作为 Prometheus 查询的替代品。有关更多详细信息,请参考 [PromQL](https://docs.greptime.cn/v0.7/user-guide/clients/prometheus#prometheus-query-language)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Go SDK

GreptimeDB Go SDK 使用 gRPC 与数据库通信,
请参考 [Go SDK 文档](https://docs.greptime.com/user-guide/client-libraries/go)查看更多 SDK 使用的相关内容。
请参考 [Go SDK 文档](https://docs.greptime.cn/v0.7/user-guide/client-libraries/go)查看更多 SDK 使用的相关内容。

请使用以下信息连接到 GreptimeCloud:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Java SDK

GreptimeDB Java ingester 库使用 gRPC 协议写入数据,
请参考 [Java 库文档](https://docs.greptime.cn/user-guide/client-libraries/java)查看更多使用内容。
请参考 [Java 库文档](https://docs.greptime.cn/v0.7/user-guide/client-libraries/java)查看更多使用内容。

请使用以下信息连接到 GreptimeCloud:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To send OpenTelemetry Metrics to GreptimeDB through OpenTelemetry SDK libraries,
* URL: `https://<host>/v1/otlp/v1/metrics`
* Headers:
* `X-Greptime-DB-Name`: `<dbname>`
* `Authorization`: `Basic` authentication, which is a Base64 encoded string of `<username>:<password>`. For more information, please refer to [Authentication](https://docs.greptime.com/user-guide/clients/authentication) and [HTTP API](https://docs.greptime.com/user-guide/clients/http-api#authentication)
* `Authorization`: `Basic` authentication, which is a Base64 encoded string of `<username>:<password>`. For more information, please refer to [Authentication](https://docs.greptime.com/v0.6/user-guide/clients/authentication) and [HTTP API](https://docs.greptime.com/v0.6/user-guide/clients/http-api#authentication)

The request uses binary protobuf to encode the payload, so you need to use packages that support `HTTP/protobuf`. For example, in Node.js, you can use [`exporter-trace-otlp-proto`](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-proto); in Go, you can use [`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp); in Java, you can use [`io.opentelemetry:opentelemetry-exporter-otlp`](https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-exporter-otlp); and in Python, you can use [`opentelemetry-exporter-otlp-proto-http`](https://pypi.org/project/opentelemetry-exporter-otlp-proto-http/).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ protocol](https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-proto
ingestion API over http. The API and authentication is compatible with [InfluxDB
write protocol
1.x](https://docs.influxdata.com/influxdb/v1.8/guides/write_data/#write-data-using-the-influxdb-api).
Please refer to [InfluxDB client](https://docs.greptime.com/user-guide/clients/influxdb-line) of GreptimeDB for more information.
Please refer to [InfluxDB client](https://docs.greptime.com/v0.6/user-guide/clients/influxdb-line) of GreptimeDB for more information.

- URL: `https://<host>/v1/influxdb/write?db=<dbname>`
- Username: `<username>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GreptimeCloud exposes GreptimeDB access in MySQL server-client protocol. Most
standard clients and drivers are compatible and the connection is encrypted with TLS.
Refer to [MySQL client](https://docs.greptime.com/user-guide/clients/mysql) of GreptimeDB for more information.
Refer to [MySQL client](https://docs.greptime.com/v0.6/user-guide/clients/mysql) of GreptimeDB for more information.

To connect to GreptimeCloud in MySQL protocol, using information below:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GreptimeCloud exposes GreptimeDB access in PostgreSQL v3 wire protocol. Most
standard clients and drivers are compatible at wire protocol level, and the connection is encrypted with TLS.
Note that we don't use Postgres' SQL dialect in GreptimeDB, so there can be some statements
that are unsupported.
For more information, please refer to [Postgresql documentation](https://docs.greptime.com/user-guide/clients/postgresql) of GreptimeDB.
For more information, please refer to [Postgresql documentation](https://docs.greptime.com/v0.6/user-guide/clients/postgresql) of GreptimeDB.

To connect to GreptimeCloud in Postgres wire protocol, using information below:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GreptimeCloud with GreptimeDB is fully compatible with Prometheus.
This means that you can seamlessly use GreptimeCloud as a replacement for Prometheus.
For more information, please refer to the [Prometheus documentation](https://docs.greptime.com/user-guide/clients/prometheus) in the GreptimeDB user guide.
For more information, please refer to the [Prometheus documentation](https://docs.greptime.com/v0.6/user-guide/clients/prometheus) in the GreptimeDB user guide.

## Remote Write and Read

Expand Down Expand Up @@ -42,4 +42,4 @@ git push

## PromQL

GreptimeDB supports PromQL (Prometheus Query Language). This means that you can use GreptimeDB as a drop-in replacement for Prometheus. Please refer to [PromQL](https://docs.greptime.com/user-guide/clients/prometheus#prometheus-query-language) for more details.
GreptimeDB supports PromQL (Prometheus Query Language). This means that you can use GreptimeDB as a drop-in replacement for Prometheus. Please refer to [PromQL](https://docs.greptime.com/v0.6/user-guide/clients/prometheus#prometheus-query-language) for more details.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Go SDK

The GreptimeDB Go ingester library utilizes gRPC for writing data to the database. For how to use the library, please refer to the [Go library documentation](https://docs.greptime.com/user-guide/client-libraries/go).
The GreptimeDB Go ingester library utilizes gRPC for writing data to the database. For how to use the library, please refer to the [Go library documentation](https://docs.greptime.com/v0.6/user-guide/client-libraries/go).

To connect to GreptimeCloud, using information below:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Java SDK

The GreptimeDB Java ingester library utilizes gRPC for writing data to the database. For how to use the library, please refer to the [Java library documentation](https://docs.greptime.com/user-guide/client-libraries/java).
The GreptimeDB Java ingester library utilizes gRPC for writing data to the database. For how to use the library, please refer to the [Java library documentation](https://docs.greptime.com/v0.6/user-guide/client-libraries/java).

To connect to GreptimeCloud, using information below:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To send OpenTelemetry Metrics to GreptimeDB through OpenTelemetry SDK libraries,
* URL: `https://<host>/v1/otlp/v1/metrics`
* Headers:
* `X-Greptime-DB-Name`: `<dbname>`
* `Authorization`: `Basic` authentication, which is a Base64 encoded string of `<username>:<password>`. For more information, please refer to [Authentication](https://docs.greptime.com/user-guide/clients/authentication) and [HTTP API](https://docs.greptime.com/user-guide/clients/http-api#authentication)
* `Authorization`: `Basic` authentication, which is a Base64 encoded string of `<username>:<password>`. For more information, please refer to [Authentication](https://docs.greptime.com/v0.7/user-guide/clients/authentication) and [HTTP API](https://docs.greptime.com/v0.7/user-guide/clients/http-api#authentication)

The request uses binary protobuf to encode the payload, so you need to use packages that support `HTTP/protobuf`. For example, in Node.js, you can use [`exporter-trace-otlp-proto`](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-proto); in Go, you can use [`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp); in Java, you can use [`io.opentelemetry:opentelemetry-exporter-otlp`](https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-exporter-otlp); and in Python, you can use [`opentelemetry-exporter-otlp-proto-http`](https://pypi.org/project/opentelemetry-exporter-otlp-proto-http/).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ protocol](https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-proto
ingestion API over http. The API and authentication is compatible with [InfluxDB
write protocol
1.x](https://docs.influxdata.com/influxdb/v1.8/guides/write_data/#write-data-using-the-influxdb-api).
Please refer to [InfluxDB client](https://docs.greptime.com/user-guide/clients/influxdb-line) of GreptimeDB for more information.
Please refer to [InfluxDB client](https://docs.greptime.com/v0.7/user-guide/clients/influxdb-line) of GreptimeDB for more information.

- URL: `https://<host>/v1/influxdb/write?db=<dbname>`
- Username: `<username>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GreptimeCloud exposes GreptimeDB access in MySQL server-client protocol. Most
standard clients and drivers are compatible and the connection is encrypted with TLS.
Refer to [MySQL client](https://docs.greptime.com/user-guide/clients/mysql) of GreptimeDB for more information.
Refer to [MySQL client](https://docs.greptime.com/v0.7/user-guide/clients/mysql) of GreptimeDB for more information.

To connect to GreptimeCloud in MySQL protocol, using information below:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GreptimeCloud exposes GreptimeDB access in PostgreSQL v3 wire protocol. Most
standard clients and drivers are compatible at wire protocol level, and the connection is encrypted with TLS.
Note that we don't use Postgres' SQL dialect in GreptimeDB, so there can be some statements
that are unsupported.
For more information, please refer to [Postgresql documentation](https://docs.greptime.com/user-guide/clients/postgresql) of GreptimeDB.
For more information, please refer to [Postgresql documentation](https://docs.greptime.com/v0.7/user-guide/clients/postgresql) of GreptimeDB.

To connect to GreptimeCloud in Postgres wire protocol, using information below:

Expand Down
Loading

0 comments on commit 24fa78b

Please sign in to comment.