Skip to content

Commit

Permalink
fix typo and sync chinese translation
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Jan 23, 2025
1 parent 5eba9a1 commit 752bee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/user-guide/query-data/promql.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Both string and float literals are supported, with the same [rule](https://prome

### Selector

Both instant and range selector are supported. But notice that in both Prometheus and GreptimeDB, the label matching on metric name is an exception. Negative matching (e.g. `{__name__!="request_count}"`) is not allowed Othees like equal-matching or regex-matching are supported.
Both instant and range selector are supported. But notice that in both Prometheus and GreptimeDB, the label matching on metric name is an exception. Negative matching (e.g. `{__name__!="request_count}"`) is not allowed. Others like equal-matching or regex-matching are supported.

Time duration and offset are supported, but `@` modifier is not supported yet.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,17 @@ metric{__field__!~"field_1|field_2"}
- tag: `String`
- value: `Double`

目前 GreptimeDB 只支持 PromQL 的一个子集,下方附上了兼容性列表。你也可以在[跟踪问题](https://github.com/GreptimeTeam/greptimedb/issues/1042)中查看我们最新的兼容性报告
GreptimeDB 目前已实现了大部分(超过 90%)的 PromQL 功能。您可以在下方查看详细的兼容性列表,或者通过此 [issue](https://github.com/GreptimeTeam/greptimedb/issues/1042) 了解我们最新的功能支持情况

### 字符(Literal)

支持字符串和浮点数,与 PromQL 的[规则](https://prometheus.io/docs/prometheus/latest/querying/basics/#literals)相同。

### 选择器

- 支持即时和范围选择器,但唯独不支持 `label` 和指标名字的不匹配判断,例如 `{__name__!="request_count}"`,等价匹配的情况是支持的,例如 `{__name__="request_count}"`
- 支持时间长度和偏移量,但不支持 `@` 修改器。
Instant 选择器和 Range 选择器均已支持。需要注意的是,在 Prometheus 和 GreptimeDB 中,指标名称的标签匹配有一个特殊限制:不支持反向匹配(例如 `{__name__!="request_count"}`)。但其他匹配方式,如等值匹配和正则匹配都是完全支持的。

时间区间和时间偏移修饰符均已支持,但目前尚未支持 `@` 修饰符。

### 时间精度

Expand Down

0 comments on commit 752bee9

Please sign in to comment.