Skip to content

Commit

Permalink
Merge branch '2401-oceanbase-doc' into 'dev'
Browse files Browse the repository at this point in the history
Resolve "oceanbase 文档中的慢查询描述修复"

See merge request cloudcare-tools/datakit!3203
  • Loading branch information
谭彪 committed Sep 25, 2024
2 parents 3286d4c + 0d7cd9f commit 089eca1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions internal/export/doc/en/inputs/oceanbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,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"
Expand Down
9 changes: 4 additions & 5 deletions internal/export/doc/zh/inputs/oceanbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,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 "字段说明"
Expand Down

0 comments on commit 089eca1

Please sign in to comment.