Skip to content

Commit

Permalink
dcos: add label_join and label_replace
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Jan 26, 2025
1 parent 9a34037 commit 97d4c5f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
17 changes: 16 additions & 1 deletion docs/user-guide/query-data/promql.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,19 @@ None

- Unsupported:

None
None

### Other Functions

- Supported:
| Function | Example |
| :----------------- | :----------------------------- |
| label_join | `label_join(up{job="api-server",src1="a",src2="b",src3="c"}, "foo", ",", "src1", "src2", "src3")` |
| label_replace | `label_replace(up{job="api-server",service="a:c"}, "foo", "$1", "service", "(.*):.*")` |

- Unsupported:
| Function | Example |
| :----------------- | :----------------------------- |
| sort_by_label | TBD |
| sort_by_label_desc | TBD |

Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,20 @@ PromQL 的时间戳精度受制于查询语法的限制,最高只支持毫秒

- 不支持:


### 其他函数

- 支持:
| Function | Example |
| :----------------- | :----------------------------- |
| label_join | `label_join(up{job="api-server",src1="a",src2="b",src3="c"}, "foo", ",", "src1", "src2", "src3")` |
| label_replace | `label_replace(up{job="api-server",service="a:c"}, "foo", "$1", "service", "(.*):.*")` |

- 不支持:
| Function | Example |
| :----------------- | :----------------------------- |
| sort_by_label | TBD |
| sort_by_label_desc | TBD |


0 comments on commit 97d4c5f

Please sign in to comment.