Skip to content

Commit 6e20883

Browse files
authored
chore: refine fluent bit (#2185)
1 parent baffb4d commit 6e20883

File tree

4 files changed

+20
-24
lines changed
  • docs/user-guide/ingest-data/for-observability
  • i18n/zh/docusaurus-plugin-content-docs
  • versioned_docs/version-0.17/user-guide/ingest-data/for-observability

4 files changed

+20
-24
lines changed

docs/user-guide/ingest-data/for-observability/fluent-bit.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ You can forward Fluent Bit data to GreptimeDB. This document describes how to co
1212
## Http
1313

1414
Using Fluent Bit's [HTTP Output Plugin](https://docs.fluentbit.io/manual/pipeline/outputs/http), you can send logs to GreptimeDB.
15+
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).
1516

1617
```conf
1718
[OUTPUT]
1819
Name http
1920
Match *
2021
Host greptimedb
2122
Port 4000
22-
Uri /v1/ingest?db=public&table=your_table&pipeline_name=pipeline_if_any
23+
Uri /v1/ingest?db=public&table=your_table&pipeline_name=greptime_identity
2324
Format json
2425
Json_date_key scrape_timestamp
2526
Json_date_format iso8601
@@ -43,8 +44,6 @@ In params Uri,
4344
- `table` is the table name you want to write logs to.
4445
- `pipeline_name` is the pipeline name you want to use for processing logs.
4546

46-
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.
47-
4847
## OpenTelemetry
4948

5049
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.

i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/fluent-bit.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri
1111

1212
## Http
1313

14-
使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),您可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。
14+
使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),你可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。
15+
在配置 Fluent Bit 之前,请确保你已经了解[日志写入流程](/user-guide/logs/overview.md)[如何使用 pipelines](/user-guide/logs/use-custom-pipelines.md)
1516

1617
```
1718
[OUTPUT]
1819
Name http
1920
Match *
2021
Host greptimedb
2122
Port 4000
22-
Uri /v1/ingest?db=public&table=your_table&pipeline_name=pipeline_if_any
23+
Uri /v1/ingest?db=public&table=your_table&pipeline_name=greptime_identity
2324
Format json
2425
Json_date_key scrape_timestamp
2526
Json_date_format iso8601
@@ -38,15 +39,13 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri
3839

3940
`uri` 参数中:
4041

41-
- `db` 是您要写入日志的数据库名称。
42-
- `table` 是您要写入日志的表名称。
43-
- `pipeline_name` 是您要用于处理日志的管道名称。
44-
45-
本示例中,使用的是 [Logs Http API](/reference/pipeline/write-log-api.md#http-api) 接口。如需更多信息,请参阅 [写入日志](/user-guide/logs/use-custom-pipelines.md#使用-pipeline-写入日志) 文档。
42+
- `db` 是你要写入日志的数据库名称。
43+
- `table` 是你要写入日志的表名称。
44+
- `pipeline_name` 是你要用于处理日志的管道名称。
4645

4746
## OpenTelemetry
4847

49-
GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry)您可以将指标、日志和跟踪发送到 GreptimeDB。
48+
GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry)你可以将指标、日志和跟踪发送到 GreptimeDB。
5049

5150
```
5251
[OUTPUT]
@@ -118,6 +117,6 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O
118117

119118
`Uri` 参数中:
120119

121-
- `db` 是您要写入指标的数据库名称
120+
- `db` 是你要写入指标的数据库名称
122121

123122
有关从 Prometheus 到 GreptimeDB 的数据模型转换的详细信息,请参阅 Prometheus Remote Write 指南中的[数据模型](/user-guide/ingest-data/for-observability/prometheus.md#data-model)部分。

i18n/zh/docusaurus-plugin-content-docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri
1111

1212
## Http
1313

14-
使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),您可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。
14+
使用 Fluent Bit 的 [HTTP 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/http),你可以将日志发送到 GreptimeDB。Http 接口目前支持日志的写入。
15+
在配置 Fluent Bit 之前,请确保你已经了解[日志写入流程](/user-guide/logs/overview.md)[如何使用 pipelines](/user-guide/logs/use-custom-pipelines.md)
1516

1617
```
1718
[OUTPUT]
1819
Name http
1920
Match *
2021
Host greptimedb
2122
Port 4000
22-
Uri /v1/ingest?db=public&table=your_table&pipeline_name=pipeline_if_any
23+
Uri /v1/ingest?db=public&table=your_table&pipeline_name=greptime_identity
2324
Format json
2425
Json_date_key scrape_timestamp
2526
Json_date_format iso8601
@@ -38,15 +39,13 @@ description: 将 GreptimeDB 与 Fluent bit 集成以实现 Prometheus Remote Wri
3839

3940
`uri` 参数中:
4041

41-
- `db` 是您要写入日志的数据库名称。
42-
- `table` 是您要写入日志的表名称。
43-
- `pipeline_name` 是您要用于处理日志的管道名称。
44-
45-
本示例中,使用的是 [Logs Http API](/reference/pipeline/write-log-api.md#http-api) 接口。如需更多信息,请参阅 [写入日志](/user-guide/logs/use-custom-pipelines.md#使用-pipeline-写入日志) 文档。
42+
- `db` 是你要写入日志的数据库名称。
43+
- `table` 是你要写入日志的表名称。
44+
- `pipeline_name` 是你要用于处理日志的管道名称。
4645

4746
## OpenTelemetry
4847

49-
GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry)您可以将指标、日志和跟踪发送到 GreptimeDB。
48+
GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [OpenTelemetry 输出插件](https://docs.fluentbit.io/manual/pipeline/outputs/opentelemetry)你可以将指标、日志和跟踪发送到 GreptimeDB。
5049

5150
```
5251
[OUTPUT]
@@ -118,6 +117,6 @@ GreptimeDB 也可以配置为 OpenTelemetry 收集器。使用 Fluent Bit 的 [O
118117

119118
`Uri` 参数中:
120119

121-
- `db` 是您要写入指标的数据库名称
120+
- `db` 是你要写入指标的数据库名称
122121

123122
有关从 Prometheus 到 GreptimeDB 的数据模型转换的详细信息,请参阅 Prometheus Remote Write 指南中的[数据模型](/user-guide/ingest-data/for-observability/prometheus.md#data-model)部分。

versioned_docs/version-0.17/user-guide/ingest-data/for-observability/fluent-bit.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ You can forward Fluent Bit data to GreptimeDB. This document describes how to co
1212
## Http
1313

1414
Using Fluent Bit's [HTTP Output Plugin](https://docs.fluentbit.io/manual/pipeline/outputs/http), you can send logs to GreptimeDB.
15+
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).
1516

1617
```conf
1718
[OUTPUT]
1819
Name http
1920
Match *
2021
Host greptimedb
2122
Port 4000
22-
Uri /v1/ingest?db=public&table=your_table&pipeline_name=pipeline_if_any
23+
Uri /v1/ingest?db=public&table=your_table&pipeline_name=greptime_identity
2324
Format json
2425
Json_date_key scrape_timestamp
2526
Json_date_format iso8601
@@ -43,8 +44,6 @@ In params Uri,
4344
- `table` is the table name you want to write logs to.
4445
- `pipeline_name` is the pipeline name you want to use for processing logs.
4546

46-
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.
47-
4847
## OpenTelemetry
4948

5049
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.

0 commit comments

Comments
 (0)