From 022fe4631f307e3c3286b7d402fa6eb54bab6423 Mon Sep 17 00:00:00 2001 From: Yiran Date: Fri, 24 Oct 2025 14:48:47 +0800 Subject: [PATCH 1/3] chore: refine fluent bit --- .../ingest-data/for-observability/fluent-bit.md | 5 ++--- .../ingest-data/for-observability/fluent-bit.md | 15 ++++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) 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 59cb82a30..571ae5beb 100644 --- a/docs/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/docs/user-guide/ingest-data/for-observability/fluent-bit.md @@ -12,6 +12,7 @@ You can forward Fluent Bit data to GreptimeDB. This document describes how to co ## Http Using Fluent Bit's [HTTP Output Plugin](https://docs.fluentbit.io/manual/pipeline/outputs/http), you can send logs to GreptimeDB. +Before configuring Fluent Bit, ensure that you understand the [log ingestion flow](/user-guide/logs/overview.md) and [how to use pipelines](/user-guide/logs/use-custom-pipelines.md). ```conf [OUTPUT] @@ -19,7 +20,7 @@ Using Fluent Bit's [HTTP Output Plugin](https://docs.fluentbit.io/manual/pipelin Match * Host greptimedb Port 4000 - Uri /v1/ingest?db=public&table=your_table&pipeline_name=pipeline_if_any + Uri /v1/ingest?db=public&table=your_table&pipeline_name=greptime_identity Format json Json_date_key scrape_timestamp Json_date_format iso8601 @@ -43,8 +44,6 @@ In params Uri, - `table` is the table name you want to write logs to. - `pipeline_name` is the pipeline name you want to use for processing logs. -In this example, the [Logs Http API](/reference/pipeline/write-log-api.md#http-api) interface is used. For more information, refer to the [Write Logs](/user-guide/logs/use-custom-pipelines.md#ingest-logs-using-the-pipeline) guide. - ## OpenTelemetry GreptimeDB can also be configured as OpenTelemetry collector. Using Fluent Bit's [OpenTelemetry Output Plugin](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry), you can send metrics, logs, and traces to GreptimeDB. 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 ee0d29f82..778b0d5e8 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 @@ -11,7 +11,8 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri ## Http -使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),您可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。 +使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),你可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。 +在配置 Fluent Bit 之前,请确保你已经了解[日志写入流程](/user-guide/logs/overview.md)和[如何使用 pipelines](/user-guide/logs/use-custom-pipelines.md)。 ``` [OUTPUT] @@ -19,7 +20,7 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri Match * Host greptimedb Port 4000 - Uri /v1/ingest?db=public&table=your_table&pipeline_name=pipeline_if_any + Uri /v1/ingest?db=public&table=your_table&pipeline_name=greptime_identity Format json Json_date_key scrape_timestamp Json_date_format iso8601 @@ -38,15 +39,15 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri 在 `uri` 参数中: -- `db` 是您要写入日志的数据库名称。 -- `table` 是您要写入日志的表名称。 -- `pipeline_name` 是您要用于处理日志的管道名称。 +- `db` 是你要写入日志的数据库名称。 +- `table` 是你要写入日志的表名称。 +- `pipeline_name` 是你要用于处理日志的管道名称。 本示例中,使用的是 [Logs Http API](/reference/pipeline/write-log-api.md#http-api) 接口。如需更多信息,请参阅 [写入日志](/user-guide/logs/use-custom-pipelines.md#使用-pipeline-写入日志) 文档。 ## OpenTelemetry -GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry),您可以将指标、日志和跟踪发送到 GreptimeDB。 +GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry),你可以将指标、日志和跟踪发送到 GreptimeDB。 ``` [OUTPUT] @@ -118,6 +119,6 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O 在 `Uri` 参数中: -- `db` 是您要写入指标的数据库名称。 +- `db` 是你要写入指标的数据库名称。 有关从 Prometheus 到 GreptimeDB 的数据模型转换的详细信息,请参阅 Prometheus Remote Write 指南中的[数据模型](/user-guide/ingest-data/for-observability/prometheus.md#data-model)部分。 From 9cdf1e4516b8d387e8eceac34da6de153e36da89 Mon Sep 17 00:00:00 2001 From: Yiran Date: Fri, 24 Oct 2025 14:49:01 +0800 Subject: [PATCH 2/3] apply to v0.17 --- .../ingest-data/for-observability/fluent-bit.md | 15 ++++++++------- .../ingest-data/for-observability/fluent-bit.md | 5 ++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md b/i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md index ee0d29f82..778b0d5e8 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md @@ -11,7 +11,8 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri ## Http -使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),您可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。 +使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),你可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。 +在配置 Fluent Bit 之前,请确保你已经了解[日志写入流程](/user-guide/logs/overview.md)和[如何使用 pipelines](/user-guide/logs/use-custom-pipelines.md)。 ``` [OUTPUT] @@ -19,7 +20,7 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri Match * Host greptimedb Port 4000 - Uri /v1/ingest?db=public&table=your_table&pipeline_name=pipeline_if_any + Uri /v1/ingest?db=public&table=your_table&pipeline_name=greptime_identity Format json Json_date_key scrape_timestamp Json_date_format iso8601 @@ -38,15 +39,15 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri 在 `uri` 参数中: -- `db` 是您要写入日志的数据库名称。 -- `table` 是您要写入日志的表名称。 -- `pipeline_name` 是您要用于处理日志的管道名称。 +- `db` 是你要写入日志的数据库名称。 +- `table` 是你要写入日志的表名称。 +- `pipeline_name` 是你要用于处理日志的管道名称。 本示例中,使用的是 [Logs Http API](/reference/pipeline/write-log-api.md#http-api) 接口。如需更多信息,请参阅 [写入日志](/user-guide/logs/use-custom-pipelines.md#使用-pipeline-写入日志) 文档。 ## OpenTelemetry -GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry),您可以将指标、日志和跟踪发送到 GreptimeDB。 +GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry),你可以将指标、日志和跟踪发送到 GreptimeDB。 ``` [OUTPUT] @@ -118,6 +119,6 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O 在 `Uri` 参数中: -- `db` 是您要写入指标的数据库名称。 +- `db` 是你要写入指标的数据库名称。 有关从 Prometheus 到 GreptimeDB 的数据模型转换的详细信息,请参阅 Prometheus Remote Write 指南中的[数据模型](/user-guide/ingest-data/for-observability/prometheus.md#data-model)部分。 diff --git a/versioned_docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md b/versioned_docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md index 59cb82a30..571ae5beb 100644 --- a/versioned_docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/versioned_docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md @@ -12,6 +12,7 @@ You can forward Fluent Bit data to GreptimeDB. This document describes how to co ## Http Using Fluent Bit's [HTTP Output Plugin](https://docs.fluentbit.io/manual/pipeline/outputs/http), you can send logs to GreptimeDB. +Before configuring Fluent Bit, ensure that you understand the [log ingestion flow](/user-guide/logs/overview.md) and [how to use pipelines](/user-guide/logs/use-custom-pipelines.md). ```conf [OUTPUT] @@ -19,7 +20,7 @@ Using Fluent Bit's [HTTP Output Plugin](https://docs.fluentbit.io/manual/pipelin Match * Host greptimedb Port 4000 - Uri /v1/ingest?db=public&table=your_table&pipeline_name=pipeline_if_any + Uri /v1/ingest?db=public&table=your_table&pipeline_name=greptime_identity Format json Json_date_key scrape_timestamp Json_date_format iso8601 @@ -43,8 +44,6 @@ In params Uri, - `table` is the table name you want to write logs to. - `pipeline_name` is the pipeline name you want to use for processing logs. -In this example, the [Logs Http API](/reference/pipeline/write-log-api.md#http-api) interface is used. For more information, refer to the [Write Logs](/user-guide/logs/use-custom-pipelines.md#ingest-logs-using-the-pipeline) guide. - ## OpenTelemetry GreptimeDB can also be configured as OpenTelemetry collector. Using Fluent Bit's [OpenTelemetry Output Plugin](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry), you can send metrics, logs, and traces to GreptimeDB. From 0704e86414b19c674f8d3486bee0a1d3b3812299 Mon Sep 17 00:00:00 2001 From: Yiran Date: Fri, 24 Oct 2025 14:50:37 +0800 Subject: [PATCH 3/3] chore --- .../user-guide/ingest-data/for-observability/fluent-bit.md | 2 -- .../user-guide/ingest-data/for-observability/fluent-bit.md | 2 -- 2 files changed, 4 deletions(-) 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 778b0d5e8..367c290b0 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 @@ -43,8 +43,6 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri - `table` 是你要写入日志的表名称。 - `pipeline_name` 是你要用于处理日志的管道名称。 -本示例中,使用的是 [Logs Http API](/reference/pipeline/write-log-api.md#http-api) 接口。如需更多信息,请参阅 [写入日志](/user-guide/logs/use-custom-pipelines.md#使用-pipeline-写入日志) 文档。 - ## OpenTelemetry GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry),你可以将指标、日志和跟踪发送到 GreptimeDB。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md b/i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md index 778b0d5e8..367c290b0 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md @@ -43,8 +43,6 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri - `table` 是你要写入日志的表名称。 - `pipeline_name` 是你要用于处理日志的管道名称。 -本示例中,使用的是 [Logs Http API](/reference/pipeline/write-log-api.md#http-api) 接口。如需更多信息,请参阅 [写入日志](/user-guide/logs/use-custom-pipelines.md#使用-pipeline-写入日志) 文档。 - ## OpenTelemetry GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry),你可以将指标、日志和跟踪发送到 GreptimeDB。