From d1d731f7b2b684d57db070c0379f364d20739b21 Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Mon, 16 Nov 2026 21:03:09 -0800 Subject: [PATCH 1/5] docs: fix ingestion examples broken by current tool releases --- docs/user-guide/ingest-data/for-iot/emqx.md | 4 ++-- .../for-iot/influxdb-line-protocol.md | 7 +++++-- .../ingest-data/for-observability/alloy.md | 4 ++++ .../for-observability/elasticsearch.md | 20 +++++++++---------- .../for-observability/fluent-bit.md | 12 +++++------ .../for-observability/prometheus.md | 3 ++- .../ingest-data/for-observability/splunk.md | 6 ++++++ .../ingest-data/for-observability/vector.md | 20 +++++++++++-------- docs/user-guide/traces/read-write.md | 4 +--- .../user-guide/ingest-data/for-iot/emqx.md | 4 ++-- .../for-iot/influxdb-line-protocol.md | 7 +++++-- .../ingest-data/for-observability/alloy.md | 4 ++++ .../for-observability/elasticsearch.md | 20 +++++++++---------- .../for-observability/fluent-bit.md | 12 +++++------ .../for-observability/prometheus.md | 1 + .../ingest-data/for-observability/splunk.md | 6 ++++++ .../ingest-data/for-observability/vector.md | 20 +++++++++++-------- .../current/user-guide/traces/read-write.md | 4 +--- .../user-guide/ingest-data/for-iot/emqx.md | 4 ++-- .../for-iot/influxdb-line-protocol.md | 7 +++++-- .../ingest-data/for-observability/alloy.md | 4 ++++ .../for-observability/elasticsearch.md | 20 +++++++++---------- .../for-observability/fluent-bit.md | 12 +++++------ .../for-observability/prometheus.md | 1 + .../ingest-data/for-observability/splunk.md | 6 ++++++ .../ingest-data/for-observability/vector.md | 20 +++++++++++-------- .../user-guide/traces/read-write.md | 4 +--- .../user-guide/ingest-data/for-iot/emqx.md | 4 ++-- .../for-iot/influxdb-line-protocol.md | 7 +++++-- .../ingest-data/for-observability/alloy.md | 4 ++++ .../for-observability/elasticsearch.md | 20 +++++++++---------- .../for-observability/fluent-bit.md | 12 +++++------ .../for-observability/prometheus.md | 3 ++- .../ingest-data/for-observability/splunk.md | 6 ++++++ .../ingest-data/for-observability/vector.md | 20 +++++++++++-------- .../user-guide/traces/read-write.md | 4 +--- 36 files changed, 190 insertions(+), 126 deletions(-) diff --git a/docs/user-guide/ingest-data/for-iot/emqx.md b/docs/user-guide/ingest-data/for-iot/emqx.md index a48cc28301..786886774a 100644 --- a/docs/user-guide/ingest-data/for-iot/emqx.md +++ b/docs/user-guide/ingest-data/for-iot/emqx.md @@ -1,10 +1,10 @@ --- keywords: [EMQX, MQTT broker, IoT, real-time messaging, data integration, data ingestion] -description: Overview of integrating GreptimeDB with EMQX, an open-source MQTT broker for IoT and real-time messaging applications. +description: Overview of integrating GreptimeDB with EMQX, an MQTT broker for IoT and real-time messaging applications. --- # EMQX -[EMQX](https://www.emqx.io/) is an open-source, highly scalable, and feature-rich MQTT broker designed for IoT and real-time messaging applications. It supports various protocols, including MQTT (3.1, 3.1.1, and 5.0), HTTP, QUIC, and WebSocket. +[EMQX](https://www.emqx.com/) is a highly scalable MQTT broker designed for IoT and real-time messaging applications. It supports various protocols, including MQTT (3.1, 3.1.1, and 5.0), HTTP, QUIC, and WebSocket. GreptimeDB can be used as a data system for EMQX. To learn how to integrate GreptimeDB with EMQX, please refer to [Ingest MQTT Data into GreptimeDB](https://docs.emqx.com/en/emqx/latest/data-integration/data-bridge-greptimedb.html). diff --git a/docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md b/docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md index cab9196f2e..5dbaabb594 100644 --- a/docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md +++ b/docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md @@ -133,7 +133,8 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;`, or use `public`. @@ -158,6 +159,8 @@ To configure Telegraf, simply add GreptimeDB URL into Telegraf configurations: database = "" username = "" password = "" + ## GreptimeDB does not support creating databases through the InfluxDB API + skip_database_creation = true ``` @@ -178,7 +181,7 @@ In GreptimeDB, it is represented as a row of data in the time-series table, where the table name aligns with the measurement, and the columns are divided into three types: Tag, Field, and Timestamp. - GreptimeDB uses `TimestampNanosecond` as the data type for timestamp data from the [InfluxDB line protocol API](/user-guide/ingest-data/for-iot/influxdb-line-protocol.md). -- GreptimeDB uses `Float64` as the data type for numeric data from the InfluxDB line protocol API. +- GreptimeDB maps InfluxDB field types as follows: floats to `Float64`, integers (`i` suffix) to `Int64`, unsigned integers (`u` suffix) to `UInt64`, strings to `String`, and booleans to `Boolean`. Consider the following [sample data](https://docs.influxdata.com/influxdb/v2/reference/key-concepts/data-elements/#sample-data) borrowed from InfluxDB docs as an example: diff --git a/docs/user-guide/ingest-data/for-observability/alloy.md b/docs/user-guide/ingest-data/for-observability/alloy.md index 495b83c835..fabe35f6e7 100644 --- a/docs/user-guide/ingest-data/for-observability/alloy.md +++ b/docs/user-guide/ingest-data/for-observability/alloy.md @@ -63,6 +63,8 @@ otelcol.auth.basic "credentials" { - `GREPTIME_DB`: GreptimeDB database name, default is `public`. - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. +If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy fails to start when the credentials are empty. + For details on the metrics data model transformation from OpenTelemetry to GreptimeDB, refer to the [Data Model](/user-guide/ingest-data/for-observability/opentelemetry.md#data-model) section in the OpenTelemetry guide. ### Logs @@ -123,6 +125,8 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_DB`: GreptimeDB database name, default is `public`. - `GREPTIME_LOG_TABLE_NAME`: Target log table name, default is `demo_logs`. - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. + +If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy fails to start when the credentials are empty. - `X-Greptime-Log-Extract-Keys`: Keys extracted from OTLP log attributes. See the [OTLP/HTTP API documentation](/user-guide/ingest-data/for-observability/opentelemetry.md#otlphttp-api-1) for details. For details on the log data model transformation from OpenTelemetry to GreptimeDB, refer to the [Data Model](/user-guide/ingest-data/for-observability/opentelemetry.md#data-model-1) section in the OpenTelemetry guide. diff --git a/docs/user-guide/ingest-data/for-observability/elasticsearch.md b/docs/user-guide/ingest-data/for-observability/elasticsearch.md index 48cf6578df..a17d777c42 100644 --- a/docs/user-guide/ingest-data/for-observability/elasticsearch.md +++ b/docs/user-guide/ingest-data/for-observability/elasticsearch.md @@ -92,12 +92,12 @@ We will see the following results: ``` mysql> SELECT * FROM es_test; -+------+------+----------------------------+ -| age | name | greptime_timestamp | -+------+------+----------------------------+ -| 30 | John | 2025-01-15 08:26:06.516665 | -| 25 | Jane | 2025-01-15 08:26:06.521510 | -+------+------+----------------------------+ ++----------------------------+------+------+ +| greptime_timestamp | age | name | ++----------------------------+------+------+ +| 2025-01-15 08:26:06.516665 | 30 | John | +| 2025-01-15 08:26:06.521510 | 25 | Jane | ++----------------------------+------+------+ 2 rows in set (0.13 sec) ``` @@ -174,12 +174,12 @@ If you are using [Telegraf](https://github.com/influxdata/telegraf) to collect l namepass = ["tail"] [outputs.elasticsearch.headers] - "X-GREPTIME-DB-NAME" = "public" - "X-GREPTIME-PIPELINE-NAME" = "greptime_identity" + "X-GREPTIME-DB-NAME" = ["public"] + "X-GREPTIME-PIPELINE-NAME" = ["greptime_identity"] [[inputs.tail]] files = ["/tmp/test.log"] - from_beginning = true + initial_read_offset = "beginning" data_format = "value" data_type = "string" character_encoding = "utf-8" @@ -194,4 +194,4 @@ Please pay attention to the following GreptimeDB-related configurations: - `index_name`: Specifies the table name that will be written to. -- `outputs.elasticsearch.header`: Specifies the HTTP Header for writing, where the example above specifies two parameters: `X-GREPTIME-DB-NAME` and `X-GREPTIME-PIPELINE-NAME`. +- `outputs.elasticsearch.headers`: Specifies the HTTP Header for writing, where the example above specifies two parameters: `X-GREPTIME-DB-NAME` and `X-GREPTIME-PIPELINE-NAME`. diff --git a/docs/user-guide/ingest-data/for-observability/fluent-bit.md b/docs/user-guide/ingest-data/for-observability/fluent-bit.md index d54174a05c..5d469a81c7 100644 --- a/docs/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/docs/user-guide/ingest-data/for-observability/fluent-bit.md @@ -65,7 +65,7 @@ Use a separate output for each signal because GreptimeDB uses signal-specific he Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-DB-Name "" + Header X-Greptime-DB-Name # Only for logs [OUTPUT] @@ -78,9 +78,9 @@ Use a separate output for each signal because GreptimeDB uses signal-specific he Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-Log-Table-Name "" - Header X-Greptime-Pipeline-Name "" - Header X-Greptime-DB-Name "" + Header X-Greptime-Log-Table-Name + Header X-Greptime-Pipeline-Name + Header X-Greptime-DB-Name # Only for traces [OUTPUT] @@ -93,8 +93,8 @@ Use a separate output for each signal because GreptimeDB uses signal-specific he Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-Pipeline-Name "greptime_trace_v1" - Header X-Greptime-DB-Name "" + Header X-Greptime-Pipeline-Name greptime_trace_v1 + Header X-Greptime-DB-Name ``` - `Metrics_uri`, `Logs_uri`, and `Traces_uri`: The endpoints for metrics, logs, and traces. diff --git a/docs/user-guide/ingest-data/for-observability/prometheus.md b/docs/user-guide/ingest-data/for-observability/prometheus.md index a6b477b47b..35655cfd42 100644 --- a/docs/user-guide/ingest-data/for-observability/prometheus.md +++ b/docs/user-guide/ingest-data/for-observability/prometheus.md @@ -72,7 +72,8 @@ remote_write: ``` Set `send_native_histograms: true` explicitly. Selecting the v2 message format alone -does not enable native histogram sending. See the +does not enable native histogram sending. Prometheus scrapes native histograms only +when `scrape_native_histograms: true` is set in the global or scrape config. See the [Prometheus native histogram documentation](https://prometheus.io/docs/specs/native_histograms/#remote-write--remote-read). Query native histograms with GreptimeDB's PromQL API. Prometheus Remote Read diff --git a/docs/user-guide/ingest-data/for-observability/splunk.md b/docs/user-guide/ingest-data/for-observability/splunk.md index c73731ce27..c23fd75ea5 100644 --- a/docs/user-guide/ingest-data/for-observability/splunk.md +++ b/docs/user-guide/ingest-data/for-observability/splunk.md @@ -286,6 +286,12 @@ Vector concatenates batched events with no separator, so on the raw endpoint a w The [`splunk_hec` exporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/splunkhecexporter/README.md) is configured the same way: ```yaml +receivers: + otlp: + protocols: + grpc: + http: + exporters: splunk_hec: endpoint: "http://localhost:4000/v1/splunk/services/collector" diff --git a/docs/user-guide/ingest-data/for-observability/vector.md b/docs/user-guide/ingest-data/for-observability/vector.md index 0711f857ef..36feecba46 100644 --- a/docs/user-guide/ingest-data/for-observability/vector.md +++ b/docs/user-guide/ingest-data/for-observability/vector.md @@ -6,7 +6,7 @@ description: Instructions for integrating Vector with GreptimeDB, including conf # Vector :::tip NOTE -This document is based on Vector v0.49.0. All example configurations below are based on this version. Please adjust the host and port configurations for each sink according to your actual GreptimeDB instance. All port values below are defaults. +This document is based on Vector v0.62.0. All example configurations below are based on this version. Please adjust the host and port configurations for each sink according to your actual GreptimeDB instance. All port values below are defaults. ::: Vector is a high-performance observability data pipeline. It natively supports GreptimeDB as a metrics data receiver. Through Vector, you can receive metrics data from various sources including Prometheus, OpenTelemetry, StatsD, etc. GreptimeDB can serve as a sink component for Vector to receive metrics data. @@ -50,15 +50,15 @@ For more requirements, please visit [Vector GreptimeDB Configuration](https://ve The following rules are used when storing Vector metrics into GreptimeDB: - Use `_` as the table name in GreptimeDB, for example, `host_cpu_seconds_total`; -- Use the timestamp of the metric as the time index of GreptimeDB, the column name is `ts`; +- Use the timestamp of the metric as the time index of GreptimeDB. The column name is `greptime_timestamp` when `new_naming = true`, as in the example above, or `ts` otherwise; - Use the tags of the metric as GreptimeDB tags; - For Vector metrics which have multiple subtypes: - - For Counter and Gauge metrics, the values are stored in the `val` column; - - For Set metrics, the number of data points are stored in the `val` column; + - For Counter and Gauge metrics, the values are stored in the `greptime_value` column (`val` when `new_naming` is false); + - For Set metrics, the number of data points are stored in the `greptime_value` column (`val` when `new_naming` is false); - For Distribution metrics, the values of each percentile are stored in the `pxx` column, where xx is the percentile, and the `min/max/avg/sum/count` columns are also stored; - For AggregatedHistogram metrics, the values of each bucket are stored in the `bxx` column, where xx is the upper limit of the bucket, and the `sum/count` columns are also stored; - For AggregatedSummary metrics, the values of each percentile are stored in the `pxx` column, where xx is the percentile, and the `sum/count` columns are also stored; - - For Sketch metrics, the values of each percentile are stored in the `pxx` column, where xx is the percentile, and the `min/max/avg/sum` columns are also stored; + - For Sketch metrics, the values of each percentile are stored in the `pxx` column, where xx is the percentile, and the `count/min/max/avg/sum` columns are also stored; ### Using InfluxDB Line Protocol Format @@ -75,18 +75,20 @@ type = "internal_metrics" [sinks.my_sink_id] type = "influxdb_metrics" inputs = [ "my_source_id" ] +version = "2" bucket = "public" endpoint = "http://:4000/v1/influxdb" org = "" token = "" ``` -The above configuration uses v2 version of InfluxDB line protocol. Vector determines the InfluxDB protocol version based on fields in the TOML configuration, so please ensure the configuration contains `bucket`, `org`, and `token` fields. Specific field explanations: +The above configuration uses v2 of the InfluxDB line protocol, selected by `version = "2"`. Specific field explanations: - `type`: Value for InfluxDB line protocol is `influxdb_metrics`. +- `version`: InfluxDB API version. Required since Vector v0.60.0. - `bucket`: Database name in GreptimeDB. - `org`: Organization name in GreptimeDB (needs to be empty). -- `token`: Token for authentication (needs to be empty). Since Influx line protocol token has special format and must start with `Token `, this differs from GreptimeDB's authentication method and is currently not compatible. If using GreptimeDB instance with authentication, please use `greptimedb_metrics`. +- `token`: GreptimeDB credentials in the form `:`. Leave it empty when authentication is disabled. For more details, please refer to [InfluxDB Line Protocol documentation](../for-iot/influxdb-line-protocol.md) to learn how to write data to GreptimeDB using InfluxDB Line Protocol. @@ -105,7 +107,9 @@ type = "prometheus_remote_write" inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" -auth = { strategy = "basic", username = "", password = "" } +auth = { strategy = "basic", user = "", password = "" } +# GreptimeDB accepts only POST on the write endpoint, so the GET health check fails. +healthcheck.enabled = false ``` ## Writing Logs Data diff --git a/docs/user-guide/traces/read-write.md b/docs/user-guide/traces/read-write.md index df0f111c59..90ea693f85 100644 --- a/docs/user-guide/traces/read-write.md +++ b/docs/user-guide/traces/read-write.md @@ -46,10 +46,8 @@ instance, which will listen on ports `4317` (gRPC) and `4318` (HTTP): ```shell docker run --rm \ --network host \ - -p 4317:4317 \ - -p 4318:4318 \ -v $(pwd)/config.yaml:/etc/otelcol-contrib/config.yaml \ - otel/opentelemetry-collector-contrib:0.159.0 + otel/opentelemetry-collector-contrib:0.165.0 ``` The content of the `config.yaml` file is as follows: diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/emqx.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/emqx.md index 0faab54160..61e3b4ead8 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/emqx.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/emqx.md @@ -1,10 +1,10 @@ --- keywords: [EMQX, MQTT 消息服务器, 物联网, 实时通信, 数据集成, 数据桥接] -description: EMQX 是一款开源的大规模分布式 MQTT 消息服务器,专为物联网和实时通信应用而设计。了解如何将 GreptimeDB 集成到 EMQX 中。 +description: EMQX 是一款大规模分布式 MQTT 消息服务器,专为物联网和实时通信应用而设计。了解如何将 GreptimeDB 集成到 EMQX 中。 --- # EMQX -[EMQX](https://www.emqx.io/) 是一款开源的大规模分布式 MQTT 消息服务器,专为物联网和实时通信应用而设计。EMQX 支持多种协议,包括 MQTT (3.1、3.1.1 和 5.0)、HTTP、QUIC 和 WebSocket 等,保证各种网络环境和硬件设备的可访问性。 +[EMQX](https://www.emqx.com/) 是一款大规模分布式 MQTT 消息服务器,专为物联网和实时通信应用而设计。EMQX 支持多种协议,包括 MQTT (3.1、3.1.1 和 5.0)、HTTP、QUIC 和 WebSocket 等,保证各种网络环境和硬件设备的可访问性。 GreptimeDB 可以作为 EMQX 的数据系统。请参考[将 MQTT 数据写入 GreptimeDB](https://docs.emqx.com/zh/emqx/latest/data-integration/data-bridge-greptimedb.html) 了解如何将 GreptimeDB 集成到 EMQX 中。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/influxdb-line-protocol.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/influxdb-line-protocol.md index 6aca82ce95..6bf6d79869 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/influxdb-line-protocol.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/influxdb-line-protocol.md @@ -133,7 +133,8 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;` 创建,或使用 `public`。 @@ -158,6 +159,8 @@ GreptimeDB 支持 [InfluxDB 行协议](../for-iot/influxdb-line-protocol.md)也 database = "" username = "" password = "" + ## GreptimeDB does not support creating databases through the InfluxDB API + skip_database_creation = true ``` @@ -178,7 +181,7 @@ GreptimeDB 的[数据模型](/user-guide/concepts/data-model.md) 是值得了解 在 GreptimeDB 中,它被表示为时间序列表中的一行数据。 表名对应于 measurement,列由三种类型组成:Tag、Field 和 Timestamp。 - GreptimeDB 使用 `TimestampNanosecond` 作为来自 [InfluxDB 行协议 API](/user-guide/ingest-data/for-iot/influxdb-line-protocol.md) 的时间戳数据类型。 -- GreptimeDB 使用 `Float64` 作为来自 InfluxDB 行协议 API 的数值数据类型。 +- GreptimeDB 按以下规则映射 InfluxDB 字段类型:浮点数映射为 `Float64`,整数(`i` 后缀)映射为 `Int64`,无符号整数(`u` 后缀)映射为 `UInt64`,字符串映射为 `String`,布尔值映射为 `Boolean`。 以 InfluxDB 文档中的[示例数据](https://docs.influxdata.com/influxdb/v2/reference/key-concepts/data-elements/#sample-data)为例: diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md index 2a5ce07371..e87445386b 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md @@ -63,6 +63,8 @@ otelcol.auth.basic "credentials" { - `GREPTIME_DB`: GreptimeDB 数据库名称,默认是 `public`。 - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 +GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 无法启动。 + 有关从 OpenTelemetry 到 GreptimeDB 的指标数据模型转换的详细信息,请参阅 OpenTelemetry 指南中的[数据模型](/user-guide/ingest-data/for-observability/opentelemetry.md#数据模型)部分。 ### 日志 @@ -123,6 +125,8 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_DB`: GreptimeDB 数据库名称,默认是 `public`。 - `GREPTIME_LOG_TABLE_NAME`: 目标日志表名,默认为 `demo_logs`。 - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 + +GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 无法启动。 - `X-Greptime-Log-Extract-Keys`: 从 OTLP 日志属性中提取的键。详情请参阅 [OTLP/HTTP API 文档](/user-guide/ingest-data/for-observability/opentelemetry.md#otlphttp-api-1)。 有关从 OpenTelemetry 到 GreptimeDB 的日志数据模型转换的详细信息,请参阅 OpenTelemetry 指南中的[数据模型](/user-guide/ingest-data/for-observability/opentelemetry.md#数据模型-1)部分。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/elasticsearch.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/elasticsearch.md index bd4375e78d..66ff15eacb 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/elasticsearch.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/elasticsearch.md @@ -92,12 +92,12 @@ SELECT * FROM es_test; ``` mysql> SELECT * FROM es_test; -+------+------+----------------------------+ -| age | name | greptime_timestamp | -+------+------+----------------------------+ -| 30 | John | 2025-01-15 08:26:06.516665 | -| 25 | Jane | 2025-01-15 08:26:06.521510 | -+------+------+----------------------------+ ++----------------------------+------+------+ +| greptime_timestamp | age | name | ++----------------------------+------+------+ +| 2025-01-15 08:26:06.516665 | 30 | John | +| 2025-01-15 08:26:06.521510 | 25 | Jane | ++----------------------------+------+------+ 2 rows in set (0.13 sec) ``` @@ -167,12 +167,12 @@ setup.template.enabled: false namepass = ["tail"] [outputs.elasticsearch.headers] - "X-GREPTIME-DB-NAME" = "public" - "X-GREPTIME-PIPELINE-NAME" = "greptime_identity" + "X-GREPTIME-DB-NAME" = ["public"] + "X-GREPTIME-PIPELINE-NAME" = ["greptime_identity"] [[inputs.tail]] files = ["/tmp/test.log"] - from_beginning = true + initial_read_offset = "beginning" data_format = "value" data_type = "string" character_encoding = "utf-8" @@ -185,4 +185,4 @@ setup.template.enabled: false - `urls`: 指定 GreptimeDB 的 Elasticsearch 协议的 HTTP 地址,即 `http://${db_host}:${db_http_port}/v1/elasticsearch`; - `index_name`: 指定写入的表名; -- `outputs.elasticsearch.header`: 指定写入的 HTTP Header,上面的例子中配置了 `X-GREPTIME-DB-NAME` 和 `X-GREPTIME-PIPELINE-NAME` 两个 HTTP Header; +- `outputs.elasticsearch.headers`: 指定写入的 HTTP Header,上面的例子中配置了 `X-GREPTIME-DB-NAME` 和 `X-GREPTIME-PIPELINE-NAME` 两个 HTTP Header; diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md index bb71c28986..cf26261ca7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md @@ -64,7 +64,7 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-DB-Name "" + Header X-Greptime-DB-Name # 仅用于 logs [OUTPUT] @@ -77,9 +77,9 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-Log-Table-Name "" - Header X-Greptime-Pipeline-Name "" - Header X-Greptime-DB-Name "" + Header X-Greptime-Log-Table-Name + Header X-Greptime-Pipeline-Name + Header X-Greptime-DB-Name # 仅用于 traces [OUTPUT] @@ -92,8 +92,8 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-Pipeline-Name "greptime_trace_v1" - Header X-Greptime-DB-Name "" + Header X-Greptime-Pipeline-Name greptime_trace_v1 + Header X-Greptime-DB-Name ``` - `Metrics_uri`、`Logs_uri` 和 `Traces_uri`:分别用于发送 metrics、logs 和 traces 的端点。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/prometheus.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/prometheus.md index 385eaffaa0..e4fb1cef68 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/prometheus.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/prometheus.md @@ -71,6 +71,7 @@ remote_write: ``` 请显式设置 `send_native_histograms: true`,仅选择 v2 消息格式不会启用原生直方图发送。 +Prometheus 只有在 global 或 scrape 配置中设置 `scrape_native_histograms: true` 时才会采集原生直方图。 详见 [Prometheus 原生直方图文档](https://prometheus.io/docs/specs/native_histograms/#remote-write--remote-read)。 请使用 GreptimeDB 的 PromQL API 查询原生直方图。Prometheus Remote Read 目前仅返回标量样本,不返回原生直方图。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/splunk.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/splunk.md index 25d2f89f5f..d26e6905db 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/splunk.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/splunk.md @@ -286,6 +286,12 @@ Vector 批量发送时事件之间没有分隔符,所以在 raw 端点上一 [`splunk_hec` exporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/splunkhecexporter/README.md) 的配置方式类似: ```yaml +receivers: + otlp: + protocols: + grpc: + http: + exporters: splunk_hec: endpoint: "http://localhost:4000/v1/splunk/services/collector" diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md index 9d0cf5bc9b..b534f0421b 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md @@ -6,7 +6,7 @@ description: 介绍如何使用 Vector 将数据写入 GreptimeDB,包括最小 # Vector :::tip 注意 -本文档基于 Vector v0.49.0 版本编写。 +本文档基于 Vector v0.62.0 版本编写。 以下的所有示例配置均基于此版本。对于各个 sink 的 host 和 port 配置请根据自己 GreptimeDB 实例的实际情况进行调整。 下文中的所有 port 值均为默认值。 ::: @@ -56,15 +56,15 @@ Vector 使用 gRPC 与 GreptimeDB 进行通信,因此 Vector sink 的默认端 我们使用这样的规则将 Vector 指标存入 GreptimeDB: - 使用 `_` 作为 GreptimeDB 的表名,例如 `host_cpu_seconds_total`; -- 将指标中的时间戳作为 GreptimeDB 的时间索引,默认列名 `ts`; +- 将指标中的时间戳作为 GreptimeDB 的时间索引。`new_naming = true` 时(如上面的示例)列名为 `greptime_timestamp`,否则为 `ts`; - 指标所关联的 tag 列将被作为 GreptimeDB 的 tag 字段; - Vector 的指标,和其他指标类似,有多种子类型: - - Counter 和 Gauge 类型的指标,数值直接被存入 `val` 列; - - Set 类型,我们将集合的数据个数存入 `val` 列; + - Counter 和 Gauge 类型的指标,数值直接被存入 `greptime_value` 列(`new_naming` 为 false 时为 `val`); + - Set 类型,我们将集合的数据个数存入 `greptime_value` 列(`new_naming` 为 false 时为 `val`); - Distribution 类型,各个百分位数值点分别存入 `pxx` 列,其中 xx 是 quantile 数值,此外我们还会记录 `min/max/avg/sum/count` 列; - AggregatedHistoragm 类型,每个 bucket 的数值将被存入 `bxx` 列,其中 xx 是 bucket 数值的上限,此外我们还会记录 `sum/count` 列; - AggregatedSummary 类型,各个百分位数值点分别存入 `pxx` 列,其中 xx 是 quantile 数值,此外我们还会记录 `sum/count` 列; - - Sketch 类型,各个百分位数值点分别存入 `pxx` 列,其中 xx 是 quantile 数值,此外我们还会记录 `min/max/avg/sum` 列; + - Sketch 类型,各个百分位数值点分别存入 `pxx` 列,其中 xx 是 quantile 数值,此外我们还会记录 `count/min/max/avg/sum` 列; ### 使用 InfluxDB 行协议格式 @@ -81,18 +81,20 @@ type = "internal_metrics" [sinks.my_sink_id] type = "influxdb_metrics" inputs = [ "my_source_id" ] +version = "2" bucket = "public" endpoint = "http://:4000/v1/influxdb" org = "" token = "" ``` -上述配置使用的是 InfluxDB 行协议的 v2 版本。Vector 会根据 TOML 配置中的字段来判断 InfluxDB 协议的版本,所以请务必确保配置中存在 `bucket`、`org` 和 `token` 字段。具体字段的解释如下: +上述配置通过 `version = "2"` 使用 InfluxDB 行协议的 v2 版本。具体字段的解释如下: - `type`: InfluxDB 行协议的值为 `influxdb_metrics`. +- `version`: InfluxDB API 版本。Vector v0.60.0 起为必填项。 - `bucket`: GreptimeDB 中的 database 名称。 - `org`: GreptimeDB 中的组织名称(需置空)。 -- `token`: 用于身份验证的令牌(需置空)。由于 Influx 行协议的 token 有特殊形式,必须以 `Token ` 开头。这和 GreptimeDB 的鉴权方式有所不同,且目前不兼容。如果使用的是含有鉴权的 GreptimeDB 实例,请使用 `greptimedb_metrics`。 +- `token`: GreptimeDB 的认证信息,格式为 `:`。未开启认证时置空。 更多细节请参考 [InfluxDB Line Protocol 文档](../for-iot/influxdb-line-protocol.md) 了解如何使用 InfluxDB Line Protocol 将数据写入到 GreptimeDB。 @@ -111,7 +113,9 @@ type = "prometheus_remote_write" inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" -auth = { strategy = "basic", username = "", password = "" } +auth = { strategy = "basic", user = "", password = "" } +# GreptimeDB 的写入接口只接受 POST,Vector 发送 GET 的健康检查会失败。 +healthcheck.enabled = false ``` ## 写入日志数据 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/traces/read-write.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/traces/read-write.md index 3e7ef0fc35..c28d58ac8a 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/traces/read-write.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/traces/read-write.md @@ -42,10 +42,8 @@ OpenTelemetry Collector 将 traces 数据写入到 GreptimeDB。 ```shell docker run --rm \ --network host \ - -p 4317:4317 \ - -p 4318:4318 \ -v $(pwd)/config.yaml:/etc/otelcol-contrib/config.yaml \ - otel/opentelemetry-collector-contrib:0.159.0 + otel/opentelemetry-collector-contrib:0.165.0 ``` 其中 `config.yaml` 文件内容如下: diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/emqx.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/emqx.md index 0faab54160..61e3b4ead8 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/emqx.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/emqx.md @@ -1,10 +1,10 @@ --- keywords: [EMQX, MQTT 消息服务器, 物联网, 实时通信, 数据集成, 数据桥接] -description: EMQX 是一款开源的大规模分布式 MQTT 消息服务器,专为物联网和实时通信应用而设计。了解如何将 GreptimeDB 集成到 EMQX 中。 +description: EMQX 是一款大规模分布式 MQTT 消息服务器,专为物联网和实时通信应用而设计。了解如何将 GreptimeDB 集成到 EMQX 中。 --- # EMQX -[EMQX](https://www.emqx.io/) 是一款开源的大规模分布式 MQTT 消息服务器,专为物联网和实时通信应用而设计。EMQX 支持多种协议,包括 MQTT (3.1、3.1.1 和 5.0)、HTTP、QUIC 和 WebSocket 等,保证各种网络环境和硬件设备的可访问性。 +[EMQX](https://www.emqx.com/) 是一款大规模分布式 MQTT 消息服务器,专为物联网和实时通信应用而设计。EMQX 支持多种协议,包括 MQTT (3.1、3.1.1 和 5.0)、HTTP、QUIC 和 WebSocket 等,保证各种网络环境和硬件设备的可访问性。 GreptimeDB 可以作为 EMQX 的数据系统。请参考[将 MQTT 数据写入 GreptimeDB](https://docs.emqx.com/zh/emqx/latest/data-integration/data-bridge-greptimedb.html) 了解如何将 GreptimeDB 集成到 EMQX 中。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md index 6aca82ce95..6bf6d79869 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md @@ -133,7 +133,8 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;` 创建,或使用 `public`。 @@ -158,6 +159,8 @@ GreptimeDB 支持 [InfluxDB 行协议](../for-iot/influxdb-line-protocol.md)也 database = "" username = "" password = "" + ## GreptimeDB does not support creating databases through the InfluxDB API + skip_database_creation = true ``` @@ -178,7 +181,7 @@ GreptimeDB 的[数据模型](/user-guide/concepts/data-model.md) 是值得了解 在 GreptimeDB 中,它被表示为时间序列表中的一行数据。 表名对应于 measurement,列由三种类型组成:Tag、Field 和 Timestamp。 - GreptimeDB 使用 `TimestampNanosecond` 作为来自 [InfluxDB 行协议 API](/user-guide/ingest-data/for-iot/influxdb-line-protocol.md) 的时间戳数据类型。 -- GreptimeDB 使用 `Float64` 作为来自 InfluxDB 行协议 API 的数值数据类型。 +- GreptimeDB 按以下规则映射 InfluxDB 字段类型:浮点数映射为 `Float64`,整数(`i` 后缀)映射为 `Int64`,无符号整数(`u` 后缀)映射为 `UInt64`,字符串映射为 `String`,布尔值映射为 `Boolean`。 以 InfluxDB 文档中的[示例数据](https://docs.influxdata.com/influxdb/v2/reference/key-concepts/data-elements/#sample-data)为例: diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md index 2a5ce07371..e87445386b 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md @@ -63,6 +63,8 @@ otelcol.auth.basic "credentials" { - `GREPTIME_DB`: GreptimeDB 数据库名称,默认是 `public`。 - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 +GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 无法启动。 + 有关从 OpenTelemetry 到 GreptimeDB 的指标数据模型转换的详细信息,请参阅 OpenTelemetry 指南中的[数据模型](/user-guide/ingest-data/for-observability/opentelemetry.md#数据模型)部分。 ### 日志 @@ -123,6 +125,8 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_DB`: GreptimeDB 数据库名称,默认是 `public`。 - `GREPTIME_LOG_TABLE_NAME`: 目标日志表名,默认为 `demo_logs`。 - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 + +GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 无法启动。 - `X-Greptime-Log-Extract-Keys`: 从 OTLP 日志属性中提取的键。详情请参阅 [OTLP/HTTP API 文档](/user-guide/ingest-data/for-observability/opentelemetry.md#otlphttp-api-1)。 有关从 OpenTelemetry 到 GreptimeDB 的日志数据模型转换的详细信息,请参阅 OpenTelemetry 指南中的[数据模型](/user-guide/ingest-data/for-observability/opentelemetry.md#数据模型-1)部分。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md index bd4375e78d..66ff15eacb 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md @@ -92,12 +92,12 @@ SELECT * FROM es_test; ``` mysql> SELECT * FROM es_test; -+------+------+----------------------------+ -| age | name | greptime_timestamp | -+------+------+----------------------------+ -| 30 | John | 2025-01-15 08:26:06.516665 | -| 25 | Jane | 2025-01-15 08:26:06.521510 | -+------+------+----------------------------+ ++----------------------------+------+------+ +| greptime_timestamp | age | name | ++----------------------------+------+------+ +| 2025-01-15 08:26:06.516665 | 30 | John | +| 2025-01-15 08:26:06.521510 | 25 | Jane | ++----------------------------+------+------+ 2 rows in set (0.13 sec) ``` @@ -167,12 +167,12 @@ setup.template.enabled: false namepass = ["tail"] [outputs.elasticsearch.headers] - "X-GREPTIME-DB-NAME" = "public" - "X-GREPTIME-PIPELINE-NAME" = "greptime_identity" + "X-GREPTIME-DB-NAME" = ["public"] + "X-GREPTIME-PIPELINE-NAME" = ["greptime_identity"] [[inputs.tail]] files = ["/tmp/test.log"] - from_beginning = true + initial_read_offset = "beginning" data_format = "value" data_type = "string" character_encoding = "utf-8" @@ -185,4 +185,4 @@ setup.template.enabled: false - `urls`: 指定 GreptimeDB 的 Elasticsearch 协议的 HTTP 地址,即 `http://${db_host}:${db_http_port}/v1/elasticsearch`; - `index_name`: 指定写入的表名; -- `outputs.elasticsearch.header`: 指定写入的 HTTP Header,上面的例子中配置了 `X-GREPTIME-DB-NAME` 和 `X-GREPTIME-PIPELINE-NAME` 两个 HTTP Header; +- `outputs.elasticsearch.headers`: 指定写入的 HTTP Header,上面的例子中配置了 `X-GREPTIME-DB-NAME` 和 `X-GREPTIME-PIPELINE-NAME` 两个 HTTP Header; diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md index bb71c28986..cf26261ca7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md @@ -64,7 +64,7 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-DB-Name "" + Header X-Greptime-DB-Name # 仅用于 logs [OUTPUT] @@ -77,9 +77,9 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-Log-Table-Name "" - Header X-Greptime-Pipeline-Name "" - Header X-Greptime-DB-Name "" + Header X-Greptime-Log-Table-Name + Header X-Greptime-Pipeline-Name + Header X-Greptime-DB-Name # 仅用于 traces [OUTPUT] @@ -92,8 +92,8 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-Pipeline-Name "greptime_trace_v1" - Header X-Greptime-DB-Name "" + Header X-Greptime-Pipeline-Name greptime_trace_v1 + Header X-Greptime-DB-Name ``` - `Metrics_uri`、`Logs_uri` 和 `Traces_uri`:分别用于发送 metrics、logs 和 traces 的端点。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/prometheus.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/prometheus.md index 385eaffaa0..e4fb1cef68 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/prometheus.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/prometheus.md @@ -71,6 +71,7 @@ remote_write: ``` 请显式设置 `send_native_histograms: true`,仅选择 v2 消息格式不会启用原生直方图发送。 +Prometheus 只有在 global 或 scrape 配置中设置 `scrape_native_histograms: true` 时才会采集原生直方图。 详见 [Prometheus 原生直方图文档](https://prometheus.io/docs/specs/native_histograms/#remote-write--remote-read)。 请使用 GreptimeDB 的 PromQL API 查询原生直方图。Prometheus Remote Read 目前仅返回标量样本,不返回原生直方图。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/splunk.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/splunk.md index 25d2f89f5f..d26e6905db 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/splunk.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/splunk.md @@ -286,6 +286,12 @@ Vector 批量发送时事件之间没有分隔符,所以在 raw 端点上一 [`splunk_hec` exporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/splunkhecexporter/README.md) 的配置方式类似: ```yaml +receivers: + otlp: + protocols: + grpc: + http: + exporters: splunk_hec: endpoint: "http://localhost:4000/v1/splunk/services/collector" diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md index 9d0cf5bc9b..b534f0421b 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md @@ -6,7 +6,7 @@ description: 介绍如何使用 Vector 将数据写入 GreptimeDB,包括最小 # Vector :::tip 注意 -本文档基于 Vector v0.49.0 版本编写。 +本文档基于 Vector v0.62.0 版本编写。 以下的所有示例配置均基于此版本。对于各个 sink 的 host 和 port 配置请根据自己 GreptimeDB 实例的实际情况进行调整。 下文中的所有 port 值均为默认值。 ::: @@ -56,15 +56,15 @@ Vector 使用 gRPC 与 GreptimeDB 进行通信,因此 Vector sink 的默认端 我们使用这样的规则将 Vector 指标存入 GreptimeDB: - 使用 `_` 作为 GreptimeDB 的表名,例如 `host_cpu_seconds_total`; -- 将指标中的时间戳作为 GreptimeDB 的时间索引,默认列名 `ts`; +- 将指标中的时间戳作为 GreptimeDB 的时间索引。`new_naming = true` 时(如上面的示例)列名为 `greptime_timestamp`,否则为 `ts`; - 指标所关联的 tag 列将被作为 GreptimeDB 的 tag 字段; - Vector 的指标,和其他指标类似,有多种子类型: - - Counter 和 Gauge 类型的指标,数值直接被存入 `val` 列; - - Set 类型,我们将集合的数据个数存入 `val` 列; + - Counter 和 Gauge 类型的指标,数值直接被存入 `greptime_value` 列(`new_naming` 为 false 时为 `val`); + - Set 类型,我们将集合的数据个数存入 `greptime_value` 列(`new_naming` 为 false 时为 `val`); - Distribution 类型,各个百分位数值点分别存入 `pxx` 列,其中 xx 是 quantile 数值,此外我们还会记录 `min/max/avg/sum/count` 列; - AggregatedHistoragm 类型,每个 bucket 的数值将被存入 `bxx` 列,其中 xx 是 bucket 数值的上限,此外我们还会记录 `sum/count` 列; - AggregatedSummary 类型,各个百分位数值点分别存入 `pxx` 列,其中 xx 是 quantile 数值,此外我们还会记录 `sum/count` 列; - - Sketch 类型,各个百分位数值点分别存入 `pxx` 列,其中 xx 是 quantile 数值,此外我们还会记录 `min/max/avg/sum` 列; + - Sketch 类型,各个百分位数值点分别存入 `pxx` 列,其中 xx 是 quantile 数值,此外我们还会记录 `count/min/max/avg/sum` 列; ### 使用 InfluxDB 行协议格式 @@ -81,18 +81,20 @@ type = "internal_metrics" [sinks.my_sink_id] type = "influxdb_metrics" inputs = [ "my_source_id" ] +version = "2" bucket = "public" endpoint = "http://:4000/v1/influxdb" org = "" token = "" ``` -上述配置使用的是 InfluxDB 行协议的 v2 版本。Vector 会根据 TOML 配置中的字段来判断 InfluxDB 协议的版本,所以请务必确保配置中存在 `bucket`、`org` 和 `token` 字段。具体字段的解释如下: +上述配置通过 `version = "2"` 使用 InfluxDB 行协议的 v2 版本。具体字段的解释如下: - `type`: InfluxDB 行协议的值为 `influxdb_metrics`. +- `version`: InfluxDB API 版本。Vector v0.60.0 起为必填项。 - `bucket`: GreptimeDB 中的 database 名称。 - `org`: GreptimeDB 中的组织名称(需置空)。 -- `token`: 用于身份验证的令牌(需置空)。由于 Influx 行协议的 token 有特殊形式,必须以 `Token ` 开头。这和 GreptimeDB 的鉴权方式有所不同,且目前不兼容。如果使用的是含有鉴权的 GreptimeDB 实例,请使用 `greptimedb_metrics`。 +- `token`: GreptimeDB 的认证信息,格式为 `:`。未开启认证时置空。 更多细节请参考 [InfluxDB Line Protocol 文档](../for-iot/influxdb-line-protocol.md) 了解如何使用 InfluxDB Line Protocol 将数据写入到 GreptimeDB。 @@ -111,7 +113,9 @@ type = "prometheus_remote_write" inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" -auth = { strategy = "basic", username = "", password = "" } +auth = { strategy = "basic", user = "", password = "" } +# GreptimeDB 的写入接口只接受 POST,Vector 发送 GET 的健康检查会失败。 +healthcheck.enabled = false ``` ## 写入日志数据 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/traces/read-write.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/traces/read-write.md index 3e7ef0fc35..c28d58ac8a 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/traces/read-write.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/traces/read-write.md @@ -42,10 +42,8 @@ OpenTelemetry Collector 将 traces 数据写入到 GreptimeDB。 ```shell docker run --rm \ --network host \ - -p 4317:4317 \ - -p 4318:4318 \ -v $(pwd)/config.yaml:/etc/otelcol-contrib/config.yaml \ - otel/opentelemetry-collector-contrib:0.159.0 + otel/opentelemetry-collector-contrib:0.165.0 ``` 其中 `config.yaml` 文件内容如下: diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/emqx.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/emqx.md index a48cc28301..786886774a 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/emqx.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/emqx.md @@ -1,10 +1,10 @@ --- keywords: [EMQX, MQTT broker, IoT, real-time messaging, data integration, data ingestion] -description: Overview of integrating GreptimeDB with EMQX, an open-source MQTT broker for IoT and real-time messaging applications. +description: Overview of integrating GreptimeDB with EMQX, an MQTT broker for IoT and real-time messaging applications. --- # EMQX -[EMQX](https://www.emqx.io/) is an open-source, highly scalable, and feature-rich MQTT broker designed for IoT and real-time messaging applications. It supports various protocols, including MQTT (3.1, 3.1.1, and 5.0), HTTP, QUIC, and WebSocket. +[EMQX](https://www.emqx.com/) is a highly scalable MQTT broker designed for IoT and real-time messaging applications. It supports various protocols, including MQTT (3.1, 3.1.1, and 5.0), HTTP, QUIC, and WebSocket. GreptimeDB can be used as a data system for EMQX. To learn how to integrate GreptimeDB with EMQX, please refer to [Ingest MQTT Data into GreptimeDB](https://docs.emqx.com/en/emqx/latest/data-integration/data-bridge-greptimedb.html). diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md index cab9196f2e..5dbaabb594 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md @@ -133,7 +133,8 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;`, or use `public`. @@ -158,6 +159,8 @@ To configure Telegraf, simply add GreptimeDB URL into Telegraf configurations: database = "" username = "" password = "" + ## GreptimeDB does not support creating databases through the InfluxDB API + skip_database_creation = true ``` @@ -178,7 +181,7 @@ In GreptimeDB, it is represented as a row of data in the time-series table, where the table name aligns with the measurement, and the columns are divided into three types: Tag, Field, and Timestamp. - GreptimeDB uses `TimestampNanosecond` as the data type for timestamp data from the [InfluxDB line protocol API](/user-guide/ingest-data/for-iot/influxdb-line-protocol.md). -- GreptimeDB uses `Float64` as the data type for numeric data from the InfluxDB line protocol API. +- GreptimeDB maps InfluxDB field types as follows: floats to `Float64`, integers (`i` suffix) to `Int64`, unsigned integers (`u` suffix) to `UInt64`, strings to `String`, and booleans to `Boolean`. Consider the following [sample data](https://docs.influxdata.com/influxdb/v2/reference/key-concepts/data-elements/#sample-data) borrowed from InfluxDB docs as an example: diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md index 495b83c835..fabe35f6e7 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md @@ -63,6 +63,8 @@ otelcol.auth.basic "credentials" { - `GREPTIME_DB`: GreptimeDB database name, default is `public`. - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. +If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy fails to start when the credentials are empty. + For details on the metrics data model transformation from OpenTelemetry to GreptimeDB, refer to the [Data Model](/user-guide/ingest-data/for-observability/opentelemetry.md#data-model) section in the OpenTelemetry guide. ### Logs @@ -123,6 +125,8 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_DB`: GreptimeDB database name, default is `public`. - `GREPTIME_LOG_TABLE_NAME`: Target log table name, default is `demo_logs`. - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. + +If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy fails to start when the credentials are empty. - `X-Greptime-Log-Extract-Keys`: Keys extracted from OTLP log attributes. See the [OTLP/HTTP API documentation](/user-guide/ingest-data/for-observability/opentelemetry.md#otlphttp-api-1) for details. For details on the log data model transformation from OpenTelemetry to GreptimeDB, refer to the [Data Model](/user-guide/ingest-data/for-observability/opentelemetry.md#data-model-1) section in the OpenTelemetry guide. diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md index 48cf6578df..a17d777c42 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md @@ -92,12 +92,12 @@ We will see the following results: ``` mysql> SELECT * FROM es_test; -+------+------+----------------------------+ -| age | name | greptime_timestamp | -+------+------+----------------------------+ -| 30 | John | 2025-01-15 08:26:06.516665 | -| 25 | Jane | 2025-01-15 08:26:06.521510 | -+------+------+----------------------------+ ++----------------------------+------+------+ +| greptime_timestamp | age | name | ++----------------------------+------+------+ +| 2025-01-15 08:26:06.516665 | 30 | John | +| 2025-01-15 08:26:06.521510 | 25 | Jane | ++----------------------------+------+------+ 2 rows in set (0.13 sec) ``` @@ -174,12 +174,12 @@ If you are using [Telegraf](https://github.com/influxdata/telegraf) to collect l namepass = ["tail"] [outputs.elasticsearch.headers] - "X-GREPTIME-DB-NAME" = "public" - "X-GREPTIME-PIPELINE-NAME" = "greptime_identity" + "X-GREPTIME-DB-NAME" = ["public"] + "X-GREPTIME-PIPELINE-NAME" = ["greptime_identity"] [[inputs.tail]] files = ["/tmp/test.log"] - from_beginning = true + initial_read_offset = "beginning" data_format = "value" data_type = "string" character_encoding = "utf-8" @@ -194,4 +194,4 @@ Please pay attention to the following GreptimeDB-related configurations: - `index_name`: Specifies the table name that will be written to. -- `outputs.elasticsearch.header`: Specifies the HTTP Header for writing, where the example above specifies two parameters: `X-GREPTIME-DB-NAME` and `X-GREPTIME-PIPELINE-NAME`. +- `outputs.elasticsearch.headers`: Specifies the HTTP Header for writing, where the example above specifies two parameters: `X-GREPTIME-DB-NAME` and `X-GREPTIME-PIPELINE-NAME`. diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md index d54174a05c..5d469a81c7 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md @@ -65,7 +65,7 @@ Use a separate output for each signal because GreptimeDB uses signal-specific he Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-DB-Name "" + Header X-Greptime-DB-Name # Only for logs [OUTPUT] @@ -78,9 +78,9 @@ Use a separate output for each signal because GreptimeDB uses signal-specific he Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-Log-Table-Name "" - Header X-Greptime-Pipeline-Name "" - Header X-Greptime-DB-Name "" + Header X-Greptime-Log-Table-Name + Header X-Greptime-Pipeline-Name + Header X-Greptime-DB-Name # Only for traces [OUTPUT] @@ -93,8 +93,8 @@ Use a separate output for each signal because GreptimeDB uses signal-specific he Log_response_payload True Tls Off Tls.verify Off - Header X-Greptime-Pipeline-Name "greptime_trace_v1" - Header X-Greptime-DB-Name "" + Header X-Greptime-Pipeline-Name greptime_trace_v1 + Header X-Greptime-DB-Name ``` - `Metrics_uri`, `Logs_uri`, and `Traces_uri`: The endpoints for metrics, logs, and traces. diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/prometheus.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/prometheus.md index a6b477b47b..35655cfd42 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/prometheus.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/prometheus.md @@ -72,7 +72,8 @@ remote_write: ``` Set `send_native_histograms: true` explicitly. Selecting the v2 message format alone -does not enable native histogram sending. See the +does not enable native histogram sending. Prometheus scrapes native histograms only +when `scrape_native_histograms: true` is set in the global or scrape config. See the [Prometheus native histogram documentation](https://prometheus.io/docs/specs/native_histograms/#remote-write--remote-read). Query native histograms with GreptimeDB's PromQL API. Prometheus Remote Read diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/splunk.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/splunk.md index c73731ce27..c23fd75ea5 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/splunk.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/splunk.md @@ -286,6 +286,12 @@ Vector concatenates batched events with no separator, so on the raw endpoint a w The [`splunk_hec` exporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/splunkhecexporter/README.md) is configured the same way: ```yaml +receivers: + otlp: + protocols: + grpc: + http: + exporters: splunk_hec: endpoint: "http://localhost:4000/v1/splunk/services/collector" diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md index 0711f857ef..36feecba46 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md @@ -6,7 +6,7 @@ description: Instructions for integrating Vector with GreptimeDB, including conf # Vector :::tip NOTE -This document is based on Vector v0.49.0. All example configurations below are based on this version. Please adjust the host and port configurations for each sink according to your actual GreptimeDB instance. All port values below are defaults. +This document is based on Vector v0.62.0. All example configurations below are based on this version. Please adjust the host and port configurations for each sink according to your actual GreptimeDB instance. All port values below are defaults. ::: Vector is a high-performance observability data pipeline. It natively supports GreptimeDB as a metrics data receiver. Through Vector, you can receive metrics data from various sources including Prometheus, OpenTelemetry, StatsD, etc. GreptimeDB can serve as a sink component for Vector to receive metrics data. @@ -50,15 +50,15 @@ For more requirements, please visit [Vector GreptimeDB Configuration](https://ve The following rules are used when storing Vector metrics into GreptimeDB: - Use `_` as the table name in GreptimeDB, for example, `host_cpu_seconds_total`; -- Use the timestamp of the metric as the time index of GreptimeDB, the column name is `ts`; +- Use the timestamp of the metric as the time index of GreptimeDB. The column name is `greptime_timestamp` when `new_naming = true`, as in the example above, or `ts` otherwise; - Use the tags of the metric as GreptimeDB tags; - For Vector metrics which have multiple subtypes: - - For Counter and Gauge metrics, the values are stored in the `val` column; - - For Set metrics, the number of data points are stored in the `val` column; + - For Counter and Gauge metrics, the values are stored in the `greptime_value` column (`val` when `new_naming` is false); + - For Set metrics, the number of data points are stored in the `greptime_value` column (`val` when `new_naming` is false); - For Distribution metrics, the values of each percentile are stored in the `pxx` column, where xx is the percentile, and the `min/max/avg/sum/count` columns are also stored; - For AggregatedHistogram metrics, the values of each bucket are stored in the `bxx` column, where xx is the upper limit of the bucket, and the `sum/count` columns are also stored; - For AggregatedSummary metrics, the values of each percentile are stored in the `pxx` column, where xx is the percentile, and the `sum/count` columns are also stored; - - For Sketch metrics, the values of each percentile are stored in the `pxx` column, where xx is the percentile, and the `min/max/avg/sum` columns are also stored; + - For Sketch metrics, the values of each percentile are stored in the `pxx` column, where xx is the percentile, and the `count/min/max/avg/sum` columns are also stored; ### Using InfluxDB Line Protocol Format @@ -75,18 +75,20 @@ type = "internal_metrics" [sinks.my_sink_id] type = "influxdb_metrics" inputs = [ "my_source_id" ] +version = "2" bucket = "public" endpoint = "http://:4000/v1/influxdb" org = "" token = "" ``` -The above configuration uses v2 version of InfluxDB line protocol. Vector determines the InfluxDB protocol version based on fields in the TOML configuration, so please ensure the configuration contains `bucket`, `org`, and `token` fields. Specific field explanations: +The above configuration uses v2 of the InfluxDB line protocol, selected by `version = "2"`. Specific field explanations: - `type`: Value for InfluxDB line protocol is `influxdb_metrics`. +- `version`: InfluxDB API version. Required since Vector v0.60.0. - `bucket`: Database name in GreptimeDB. - `org`: Organization name in GreptimeDB (needs to be empty). -- `token`: Token for authentication (needs to be empty). Since Influx line protocol token has special format and must start with `Token `, this differs from GreptimeDB's authentication method and is currently not compatible. If using GreptimeDB instance with authentication, please use `greptimedb_metrics`. +- `token`: GreptimeDB credentials in the form `:`. Leave it empty when authentication is disabled. For more details, please refer to [InfluxDB Line Protocol documentation](../for-iot/influxdb-line-protocol.md) to learn how to write data to GreptimeDB using InfluxDB Line Protocol. @@ -105,7 +107,9 @@ type = "prometheus_remote_write" inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" -auth = { strategy = "basic", username = "", password = "" } +auth = { strategy = "basic", user = "", password = "" } +# GreptimeDB accepts only POST on the write endpoint, so the GET health check fails. +healthcheck.enabled = false ``` ## Writing Logs Data diff --git a/versioned_docs/version-1.3/user-guide/traces/read-write.md b/versioned_docs/version-1.3/user-guide/traces/read-write.md index df0f111c59..90ea693f85 100644 --- a/versioned_docs/version-1.3/user-guide/traces/read-write.md +++ b/versioned_docs/version-1.3/user-guide/traces/read-write.md @@ -46,10 +46,8 @@ instance, which will listen on ports `4317` (gRPC) and `4318` (HTTP): ```shell docker run --rm \ --network host \ - -p 4317:4317 \ - -p 4318:4318 \ -v $(pwd)/config.yaml:/etc/otelcol-contrib/config.yaml \ - otel/opentelemetry-collector-contrib:0.159.0 + otel/opentelemetry-collector-contrib:0.165.0 ``` The content of the `config.yaml` file is as follows: From 06157aa31e9179d31149c39054ad683b4c95460b Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Mon, 16 Nov 2026 21:09:33 -0800 Subject: [PATCH 2/5] docs: place the Alloy no-auth note after the variable list --- docs/user-guide/ingest-data/for-observability/alloy.md | 6 +++--- .../user-guide/ingest-data/for-observability/alloy.md | 6 +++--- .../user-guide/ingest-data/for-observability/alloy.md | 6 +++--- .../user-guide/ingest-data/for-observability/alloy.md | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/user-guide/ingest-data/for-observability/alloy.md b/docs/user-guide/ingest-data/for-observability/alloy.md index fabe35f6e7..f5ad46fd1d 100644 --- a/docs/user-guide/ingest-data/for-observability/alloy.md +++ b/docs/user-guide/ingest-data/for-observability/alloy.md @@ -63,7 +63,7 @@ otelcol.auth.basic "credentials" { - `GREPTIME_DB`: GreptimeDB database name, default is `public`. - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. -If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy fails to start when the credentials are empty. +If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy rejects the configuration when the credentials are empty. For details on the metrics data model transformation from OpenTelemetry to GreptimeDB, refer to the [Data Model](/user-guide/ingest-data/for-observability/opentelemetry.md#data-model) section in the OpenTelemetry guide. @@ -125,10 +125,10 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_DB`: GreptimeDB database name, default is `public`. - `GREPTIME_LOG_TABLE_NAME`: Target log table name, default is `demo_logs`. - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. - -If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy fails to start when the credentials are empty. - `X-Greptime-Log-Extract-Keys`: Keys extracted from OTLP log attributes. See the [OTLP/HTTP API documentation](/user-guide/ingest-data/for-observability/opentelemetry.md#otlphttp-api-1) for details. +If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy rejects the configuration when the credentials are empty. + For details on the log data model transformation from OpenTelemetry to GreptimeDB, refer to the [Data Model](/user-guide/ingest-data/for-observability/opentelemetry.md#data-model-1) section in the OpenTelemetry guide. ## Loki diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md index e87445386b..73f0ee525f 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md @@ -63,7 +63,7 @@ otelcol.auth.basic "credentials" { - `GREPTIME_DB`: GreptimeDB 数据库名称,默认是 `public`。 - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 -GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 无法启动。 +GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 会拒绝加载该配置。 有关从 OpenTelemetry 到 GreptimeDB 的指标数据模型转换的详细信息,请参阅 OpenTelemetry 指南中的[数据模型](/user-guide/ingest-data/for-observability/opentelemetry.md#数据模型)部分。 @@ -125,10 +125,10 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_DB`: GreptimeDB 数据库名称,默认是 `public`。 - `GREPTIME_LOG_TABLE_NAME`: 目标日志表名,默认为 `demo_logs`。 - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 - -GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 无法启动。 - `X-Greptime-Log-Extract-Keys`: 从 OTLP 日志属性中提取的键。详情请参阅 [OTLP/HTTP API 文档](/user-guide/ingest-data/for-observability/opentelemetry.md#otlphttp-api-1)。 +GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 会拒绝加载该配置。 + 有关从 OpenTelemetry 到 GreptimeDB 的日志数据模型转换的详细信息,请参阅 OpenTelemetry 指南中的[数据模型](/user-guide/ingest-data/for-observability/opentelemetry.md#数据模型-1)部分。 ## Loki diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md index e87445386b..73f0ee525f 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md @@ -63,7 +63,7 @@ otelcol.auth.basic "credentials" { - `GREPTIME_DB`: GreptimeDB 数据库名称,默认是 `public`。 - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 -GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 无法启动。 +GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 会拒绝加载该配置。 有关从 OpenTelemetry 到 GreptimeDB 的指标数据模型转换的详细信息,请参阅 OpenTelemetry 指南中的[数据模型](/user-guide/ingest-data/for-observability/opentelemetry.md#数据模型)部分。 @@ -125,10 +125,10 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_DB`: GreptimeDB 数据库名称,默认是 `public`。 - `GREPTIME_LOG_TABLE_NAME`: 目标日志表名,默认为 `demo_logs`。 - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 - -GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 无法启动。 - `X-Greptime-Log-Extract-Keys`: 从 OTLP 日志属性中提取的键。详情请参阅 [OTLP/HTTP API 文档](/user-guide/ingest-data/for-observability/opentelemetry.md#otlphttp-api-1)。 +GreptimeDB 未开启认证时,删除 `otelcol.auth.basic` 块和 exporter 中的 `auth` 属性。凭据为空时 Alloy 会拒绝加载该配置。 + 有关从 OpenTelemetry 到 GreptimeDB 的日志数据模型转换的详细信息,请参阅 OpenTelemetry 指南中的[数据模型](/user-guide/ingest-data/for-observability/opentelemetry.md#数据模型-1)部分。 ## Loki diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md index fabe35f6e7..f5ad46fd1d 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md @@ -63,7 +63,7 @@ otelcol.auth.basic "credentials" { - `GREPTIME_DB`: GreptimeDB database name, default is `public`. - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. -If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy fails to start when the credentials are empty. +If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy rejects the configuration when the credentials are empty. For details on the metrics data model transformation from OpenTelemetry to GreptimeDB, refer to the [Data Model](/user-guide/ingest-data/for-observability/opentelemetry.md#data-model) section in the OpenTelemetry guide. @@ -125,10 +125,10 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_DB`: GreptimeDB database name, default is `public`. - `GREPTIME_LOG_TABLE_NAME`: Target log table name, default is `demo_logs`. - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. - -If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy fails to start when the credentials are empty. - `X-Greptime-Log-Extract-Keys`: Keys extracted from OTLP log attributes. See the [OTLP/HTTP API documentation](/user-guide/ingest-data/for-observability/opentelemetry.md#otlphttp-api-1) for details. +If authentication is disabled in GreptimeDB, remove the `otelcol.auth.basic` block and the `auth` attribute of the exporter. Alloy rejects the configuration when the credentials are empty. + For details on the log data model transformation from OpenTelemetry to GreptimeDB, refer to the [Data Model](/user-guide/ingest-data/for-observability/opentelemetry.md#data-model-1) section in the OpenTelemetry guide. ## Loki From a60cd8982ff3c816405f1befef809dc7f24ab14b Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Mon, 16 Nov 2026 21:18:03 -0800 Subject: [PATCH 3/5] docs: note the tool versions the examples are tested with --- docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md | 2 ++ docs/user-guide/ingest-data/for-observability/alloy.md | 2 ++ docs/user-guide/ingest-data/for-observability/elasticsearch.md | 2 ++ docs/user-guide/ingest-data/for-observability/fluent-bit.md | 2 ++ .../user-guide/ingest-data/for-iot/influxdb-line-protocol.md | 2 ++ .../current/user-guide/ingest-data/for-observability/alloy.md | 2 ++ .../user-guide/ingest-data/for-observability/elasticsearch.md | 2 ++ .../user-guide/ingest-data/for-observability/fluent-bit.md | 2 ++ .../user-guide/ingest-data/for-iot/influxdb-line-protocol.md | 2 ++ .../user-guide/ingest-data/for-observability/alloy.md | 2 ++ .../user-guide/ingest-data/for-observability/elasticsearch.md | 2 ++ .../user-guide/ingest-data/for-observability/fluent-bit.md | 2 ++ .../user-guide/ingest-data/for-iot/influxdb-line-protocol.md | 2 ++ .../user-guide/ingest-data/for-observability/alloy.md | 2 ++ .../user-guide/ingest-data/for-observability/elasticsearch.md | 2 ++ .../user-guide/ingest-data/for-observability/fluent-bit.md | 2 ++ 16 files changed, 32 insertions(+) diff --git a/docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md b/docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md index 5dbaabb594..0a28fc4344 100644 --- a/docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md +++ b/docs/user-guide/ingest-data/for-iot/influxdb-line-protocol.md @@ -132,6 +132,8 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;`, or use `public`. diff --git a/docs/user-guide/ingest-data/for-observability/alloy.md b/docs/user-guide/ingest-data/for-observability/alloy.md index f5ad46fd1d..1d1a297c8e 100644 --- a/docs/user-guide/ingest-data/for-observability/alloy.md +++ b/docs/user-guide/ingest-data/for-observability/alloy.md @@ -8,6 +8,8 @@ description: Instructions on integrating GreptimeDB with Grafana Alloy for Prome [Grafana Alloy](https://grafana.com/docs/alloy/latest/) is an observability data pipeline for OpenTelemetry (OTel), Prometheus, Pyroscope, Loki, and many other metrics, logs, traces, and profiling tools. You can integrate GreptimeDB as a data sink for Alloy. +The examples on this page are tested with Grafana Alloy v1.22.0. + ## Prometheus Remote Write Configure GreptimeDB as remote write target: diff --git a/docs/user-guide/ingest-data/for-observability/elasticsearch.md b/docs/user-guide/ingest-data/for-observability/elasticsearch.md index a17d777c42..a541dba29e 100644 --- a/docs/user-guide/ingest-data/for-observability/elasticsearch.md +++ b/docs/user-guide/ingest-data/for-observability/elasticsearch.md @@ -159,6 +159,8 @@ Please pay attention to the following GreptimeDB-related configurations: ### Telegraf +The following example is tested with Telegraf v1.40.3. + If you are using [Telegraf](https://github.com/influxdata/telegraf) to collect logs, you can use its Elasticsearch plugin to write data to GreptimeDB, as shown below: ```toml diff --git a/docs/user-guide/ingest-data/for-observability/fluent-bit.md b/docs/user-guide/ingest-data/for-observability/fluent-bit.md index 5d469a81c7..d9c05c1539 100644 --- a/docs/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/docs/user-guide/ingest-data/for-observability/fluent-bit.md @@ -9,6 +9,8 @@ description: Instructions on integrating GreptimeDB with Fluent bit for Promethe You can forward Fluent Bit data to GreptimeDB. This document describes how to configure Fluent Bit to send logs, metrics, and traces to GreptimeDB. +The examples on this page are tested with Fluent Bit v5.2.0. + ## HTTP Using Fluent Bit's [HTTP Output Plugin](https://docs.fluentbit.io/manual/pipeline/outputs/http), you can send logs to GreptimeDB. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/influxdb-line-protocol.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/influxdb-line-protocol.md index 6bf6d79869..896fd8ce6e 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/influxdb-line-protocol.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-iot/influxdb-line-protocol.md @@ -132,6 +132,8 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;` 创建,或使用 `public`。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md index 73f0ee525f..3480ba3f78 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/alloy.md @@ -8,6 +8,8 @@ description: 介绍了如何将 GreptimeDB 配置为 Grafana Alloy 的数据接 [Grafana Alloy](https://grafana.com/docs/alloy/latest/) 是一个用于 OpenTelemetry (OTel)、Prometheus、Pyroscope、Loki 等其他指标、日志、追踪和分析工具的可观测性数据管道。 你可以将 GreptimeDB 集成为 Alloy 的数据接收端。 +本文示例已在 Grafana Alloy v1.22.0 上测试。 + ## Prometheus Remote Write 将 GreptimeDB 配置为远程写入目标: diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/elasticsearch.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/elasticsearch.md index 66ff15eacb..38bb481108 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/elasticsearch.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/elasticsearch.md @@ -152,6 +152,8 @@ setup.template.enabled: false ### Telegraf +以下示例已在 Telegraf v1.40.3 上测试。 + 如果你正在使用 [Telegraf](https://github.com/influxdata/telegraf) 来收集日志,你可以使用其 Elasticsearch 插件来将数据写入到 GreptimeDB,如下所示: ```toml diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md index cf26261ca7..42c2c9b5f7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md @@ -9,6 +9,8 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri 你可以将 Fluent Bit 数据转发到 GreptimeDB。本文档介绍如何配置 Fluent Bit 以将日志、指标和跟踪发送到 GreptimeDB。 +本文示例已在 Fluent Bit v5.2.0 上测试。 + ## HTTP 使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),你可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md index 6bf6d79869..896fd8ce6e 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md @@ -132,6 +132,8 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;` 创建,或使用 `public`。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md index 73f0ee525f..3480ba3f78 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md @@ -8,6 +8,8 @@ description: 介绍了如何将 GreptimeDB 配置为 Grafana Alloy 的数据接 [Grafana Alloy](https://grafana.com/docs/alloy/latest/) 是一个用于 OpenTelemetry (OTel)、Prometheus、Pyroscope、Loki 等其他指标、日志、追踪和分析工具的可观测性数据管道。 你可以将 GreptimeDB 集成为 Alloy 的数据接收端。 +本文示例已在 Grafana Alloy v1.22.0 上测试。 + ## Prometheus Remote Write 将 GreptimeDB 配置为远程写入目标: diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md index 66ff15eacb..38bb481108 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md @@ -152,6 +152,8 @@ setup.template.enabled: false ### Telegraf +以下示例已在 Telegraf v1.40.3 上测试。 + 如果你正在使用 [Telegraf](https://github.com/influxdata/telegraf) 来收集日志,你可以使用其 Elasticsearch 插件来将数据写入到 GreptimeDB,如下所示: ```toml diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md index cf26261ca7..42c2c9b5f7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md @@ -9,6 +9,8 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri 你可以将 Fluent Bit 数据转发到 GreptimeDB。本文档介绍如何配置 Fluent Bit 以将日志、指标和跟踪发送到 GreptimeDB。 +本文示例已在 Fluent Bit v5.2.0 上测试。 + ## HTTP 使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),你可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。 diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md index 5dbaabb594..0a28fc4344 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-iot/influxdb-line-protocol.md @@ -132,6 +132,8 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;`, or use `public`. diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md index f5ad46fd1d..1d1a297c8e 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/alloy.md @@ -8,6 +8,8 @@ description: Instructions on integrating GreptimeDB with Grafana Alloy for Prome [Grafana Alloy](https://grafana.com/docs/alloy/latest/) is an observability data pipeline for OpenTelemetry (OTel), Prometheus, Pyroscope, Loki, and many other metrics, logs, traces, and profiling tools. You can integrate GreptimeDB as a data sink for Alloy. +The examples on this page are tested with Grafana Alloy v1.22.0. + ## Prometheus Remote Write Configure GreptimeDB as remote write target: diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md index a17d777c42..a541dba29e 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md @@ -159,6 +159,8 @@ Please pay attention to the following GreptimeDB-related configurations: ### Telegraf +The following example is tested with Telegraf v1.40.3. + If you are using [Telegraf](https://github.com/influxdata/telegraf) to collect logs, you can use its Elasticsearch plugin to write data to GreptimeDB, as shown below: ```toml diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md index 5d469a81c7..d9c05c1539 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/fluent-bit.md @@ -9,6 +9,8 @@ description: Instructions on integrating GreptimeDB with Fluent bit for Promethe You can forward Fluent Bit data to GreptimeDB. This document describes how to configure Fluent Bit to send logs, metrics, and traces to GreptimeDB. +The examples on this page are tested with Fluent Bit v5.2.0. + ## HTTP Using Fluent Bit's [HTTP Output Plugin](https://docs.fluentbit.io/manual/pipeline/outputs/http), you can send logs to GreptimeDB. From b7ce5757a042133340ecac9d00ee20ed38d82d11 Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Mon, 16 Nov 2026 21:22:26 -0800 Subject: [PATCH 4/5] docs: point the Vector remote write health check to /health --- docs/user-guide/ingest-data/for-observability/vector.md | 4 ++-- .../user-guide/ingest-data/for-observability/vector.md | 4 ++-- .../user-guide/ingest-data/for-observability/vector.md | 4 ++-- .../user-guide/ingest-data/for-observability/vector.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/user-guide/ingest-data/for-observability/vector.md b/docs/user-guide/ingest-data/for-observability/vector.md index 36feecba46..549febafdf 100644 --- a/docs/user-guide/ingest-data/for-observability/vector.md +++ b/docs/user-guide/ingest-data/for-observability/vector.md @@ -108,8 +108,8 @@ inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" auth = { strategy = "basic", user = "", password = "" } -# GreptimeDB accepts only POST on the write endpoint, so the GET health check fails. -healthcheck.enabled = false +# The write endpoint accepts only POST, so send the GET health check to /health instead. +healthcheck.uri = "http://:4000/health" ``` ## Writing Logs Data diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md index b534f0421b..1bbf7262b4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md @@ -114,8 +114,8 @@ inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" auth = { strategy = "basic", user = "", password = "" } -# GreptimeDB 的写入接口只接受 POST,Vector 发送 GET 的健康检查会失败。 -healthcheck.enabled = false +# 写入接口只接受 POST,健康检查的 GET 请求改发到 /health。 +healthcheck.uri = "http://:4000/health" ``` ## 写入日志数据 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md index b534f0421b..1bbf7262b4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md @@ -114,8 +114,8 @@ inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" auth = { strategy = "basic", user = "", password = "" } -# GreptimeDB 的写入接口只接受 POST,Vector 发送 GET 的健康检查会失败。 -healthcheck.enabled = false +# 写入接口只接受 POST,健康检查的 GET 请求改发到 /health。 +healthcheck.uri = "http://:4000/health" ``` ## 写入日志数据 diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md index 36feecba46..549febafdf 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md @@ -108,8 +108,8 @@ inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" auth = { strategy = "basic", user = "", password = "" } -# GreptimeDB accepts only POST on the write endpoint, so the GET health check fails. -healthcheck.enabled = false +# The write endpoint accepts only POST, so send the GET health check to /health instead. +healthcheck.uri = "http://:4000/health" ``` ## Writing Logs Data From 68d2e60fcb52f50dbdf38401556de57dc260cb72 Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Tue, 17 Nov 2026 04:15:24 -0800 Subject: [PATCH 5/5] docs: use /v1/health for the Vector remote write health check --- docs/user-guide/ingest-data/for-observability/vector.md | 4 ++-- .../user-guide/ingest-data/for-observability/vector.md | 4 ++-- .../user-guide/ingest-data/for-observability/vector.md | 4 ++-- .../user-guide/ingest-data/for-observability/vector.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/user-guide/ingest-data/for-observability/vector.md b/docs/user-guide/ingest-data/for-observability/vector.md index 549febafdf..211ab7d654 100644 --- a/docs/user-guide/ingest-data/for-observability/vector.md +++ b/docs/user-guide/ingest-data/for-observability/vector.md @@ -108,8 +108,8 @@ inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" auth = { strategy = "basic", user = "", password = "" } -# The write endpoint accepts only POST, so send the GET health check to /health instead. -healthcheck.uri = "http://:4000/health" +# The write endpoint accepts only POST, so send the GET health check to /v1/health instead. +healthcheck.uri = "http://:4000/v1/health" ``` ## Writing Logs Data diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md index 1bbf7262b4..5a75c5f2d4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/vector.md @@ -114,8 +114,8 @@ inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" auth = { strategy = "basic", user = "", password = "" } -# 写入接口只接受 POST,健康检查的 GET 请求改发到 /health。 -healthcheck.uri = "http://:4000/health" +# 写入接口只接受 POST,健康检查的 GET 请求改发到 /v1/health。 +healthcheck.uri = "http://:4000/v1/health" ``` ## 写入日志数据 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md index 1bbf7262b4..5a75c5f2d4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/vector.md @@ -114,8 +114,8 @@ inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" auth = { strategy = "basic", user = "", password = "" } -# 写入接口只接受 POST,健康检查的 GET 请求改发到 /health。 -healthcheck.uri = "http://:4000/health" +# 写入接口只接受 POST,健康检查的 GET 请求改发到 /v1/health。 +healthcheck.uri = "http://:4000/v1/health" ``` ## 写入日志数据 diff --git a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md index 549febafdf..211ab7d654 100644 --- a/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md +++ b/versioned_docs/version-1.3/user-guide/ingest-data/for-observability/vector.md @@ -108,8 +108,8 @@ inputs = [ "my_source_id" ] endpoint = "http://:4000/v1/prometheus/write?db=" compression = "snappy" auth = { strategy = "basic", user = "", password = "" } -# The write endpoint accepts only POST, so send the GET health check to /health instead. -healthcheck.uri = "http://:4000/health" +# The write endpoint accepts only POST, so send the GET health check to /v1/health instead. +healthcheck.uri = "http://:4000/v1/health" ``` ## Writing Logs Data