diff --git a/docs/user-guide/ingest-data/for-iot/emqx.md b/docs/user-guide/ingest-data/for-iot/emqx.md index a48cc2830..786886774 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 cab9196f2..0a28fc434 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,8 +132,11 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;`, or use `public`. @@ -158,6 +161,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 +183,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 495b83c83..1d1a297c8 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: @@ -63,6 +65,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 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. ### Logs @@ -125,6 +129,8 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. - `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/docs/user-guide/ingest-data/for-observability/elasticsearch.md b/docs/user-guide/ingest-data/for-observability/elasticsearch.md index 48cf6578d..a541dba29 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) ``` @@ -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 @@ -174,12 +176,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 +196,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 d54174a05..d9c05c153 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. @@ -65,7 +67,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 +80,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 +95,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 a6b477b47..35655cfd4 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 c73731ce2..c23fd75ea 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 0711f857e..211ab7d65 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 = "" } +# 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/docs/user-guide/traces/read-write.md b/docs/user-guide/traces/read-write.md index df0f111c5..90ea693f8 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 0faab5416..61e3b4ead 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 6aca82ce9..896fd8ce6 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,8 +132,11 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;` 创建,或使用 `public`。 @@ -158,6 +161,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 +183,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 2a5ce0737..3480ba3f7 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 配置为远程写入目标: @@ -63,6 +65,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#数据模型)部分。 ### 日志 @@ -125,6 +129,8 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 - `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/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 bd4375e78..38bb48110 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) ``` @@ -152,6 +152,8 @@ setup.template.enabled: false ### Telegraf +以下示例已在 Telegraf v1.40.3 上测试。 + 如果你正在使用 [Telegraf](https://github.com/influxdata/telegraf) 来收集日志,你可以使用其 Elasticsearch 插件来将数据写入到 GreptimeDB,如下所示: ```toml @@ -167,12 +169,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 +187,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 bb71c2898..42c2c9b5f 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 接口目前支持日志的写入。 @@ -64,7 +66,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 +79,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 +94,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 385eaffaa..e4fb1cef6 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 25d2f89f5..d26e6905d 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 9d0cf5bc9..5a75c5f2d 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 = "" } +# 写入接口只接受 POST,健康检查的 GET 请求改发到 /v1/health。 +healthcheck.uri = "http://:4000/v1/health" ``` ## 写入日志数据 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 3e7ef0fc3..c28d58ac8 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 0faab5416..61e3b4ead 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 6aca82ce9..896fd8ce6 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,8 +132,11 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;` 创建,或使用 `public`。 @@ -158,6 +161,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 +183,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 2a5ce0737..3480ba3f7 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 配置为远程写入目标: @@ -63,6 +65,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#数据模型)部分。 ### 日志 @@ -125,6 +129,8 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_USERNAME` 和 `GREPTIME_PASSWORD`: GreptimeDB 的[鉴权认证信息](/user-guide/deployments-administration/authentication/static.md)。 - `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/elasticsearch.md b/i18n/zh/docusaurus-plugin-content-docs/version-1.3/user-guide/ingest-data/for-observability/elasticsearch.md index bd4375e78..38bb48110 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) ``` @@ -152,6 +152,8 @@ setup.template.enabled: false ### Telegraf +以下示例已在 Telegraf v1.40.3 上测试。 + 如果你正在使用 [Telegraf](https://github.com/influxdata/telegraf) 来收集日志,你可以使用其 Elasticsearch 插件来将数据写入到 GreptimeDB,如下所示: ```toml @@ -167,12 +169,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 +187,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 bb71c2898..42c2c9b5f 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 接口目前支持日志的写入。 @@ -64,7 +66,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 +79,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 +94,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 385eaffaa..e4fb1cef6 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 25d2f89f5..d26e6905d 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 9d0cf5bc9..5a75c5f2d 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 = "" } +# 写入接口只接受 POST,健康检查的 GET 请求改发到 /v1/health。 +healthcheck.uri = "http://:4000/v1/health" ``` ## 写入日志数据 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 3e7ef0fc3..c28d58ac8 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 a48cc2830..786886774 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 cab9196f2..0a28fc434 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,8 +132,11 @@ curl 'http://localhost:4000/v1/influxdb/write?db=public&u=&p=;`, or use `public`. @@ -158,6 +161,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 +183,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 495b83c83..1d1a297c8 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: @@ -63,6 +65,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 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. ### Logs @@ -125,6 +129,8 @@ otelcol.exporter.otlphttp "greptimedb_logs" { - `GREPTIME_USERNAME` and `GREPTIME_PASSWORD`: The [authentication credentials](/user-guide/deployments-administration/authentication/static.md) for GreptimeDB. - `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/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 48cf6578d..a541dba29 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) ``` @@ -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 @@ -174,12 +176,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 +196,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 d54174a05..d9c05c153 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. @@ -65,7 +67,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 +80,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 +95,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 a6b477b47..35655cfd4 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 c73731ce2..c23fd75ea 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 0711f857e..211ab7d65 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 = "" } +# 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/versioned_docs/version-1.3/user-guide/traces/read-write.md b/versioned_docs/version-1.3/user-guide/traces/read-write.md index df0f111c5..90ea693f8 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: