From 0d7cd9f025933cd3632953b99f5bcc54d4434521 Mon Sep 17 00:00:00 2001 From: zhengbo Date: Tue, 10 Sep 2024 15:17:02 +0800 Subject: [PATCH] fix(doc): fix oceanbase doc about slow query introduction --- internal/export/doc/en/inputs/oceanbase.md | 9 ++++----- internal/export/doc/zh/inputs/oceanbase.md | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/internal/export/doc/en/inputs/oceanbase.md b/internal/export/doc/en/inputs/oceanbase.md index 46150c112d..0fcc86bcc2 100755 --- a/internal/export/doc/en/inputs/oceanbase.md +++ b/internal/export/doc/en/inputs/oceanbase.md @@ -75,13 +75,12 @@ Datakit could reports the SQLs, those executed time exceeded the threshold time This function is disabled by default, user could enabling it by modify Datakit's OceanBase configuration like followings: -Change the string value after `--slow-query-time` from `0s` to the threshold time, minimal value is 1 millsecond. Generally, recommand it to `10s`. +Change the string value after `slow_query_time` from `0s` to the threshold time, minimal value is 1 millsecond. Generally, recommand it to `10s`. ```conf - args = [ - ... - '--slow-query-time' , '10s', - ] + +slow_query_time = "0s" + ``` ???+ info "Fields description" diff --git a/internal/export/doc/zh/inputs/oceanbase.md b/internal/export/doc/zh/inputs/oceanbase.md index 428a00c025..6118dcce0d 100644 --- a/internal/export/doc/zh/inputs/oceanbase.md +++ b/internal/export/doc/zh/inputs/oceanbase.md @@ -78,13 +78,12 @@ Datakit 可以将执行超过用户自定义时间的 SQL 语句报告给观测 该功能默认情况下是关闭的,用户可以在 OceanBase 的配置文件中将其打开,方法如下: -将 `--slow-query-time` 后面的值从 `0s` 改成用户心中的阈值,最小值 1 毫秒。一般推荐 10 秒。 +将 `slow_query_time` 后面的值从 `0s` 改成用户心中的阈值,最小值 1 毫秒,一般推荐 10 秒。 ```conf - args = [ - ... - '--slow-query-time' , '10s' , - ] + +slow_query_time = "10s" + ``` ???+ info "字段说明"