Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

读请求没有解决运算符不同的问题 #11

Open
sunism opened this issue Mar 19, 2021 · 1 comment
Open

读请求没有解决运算符不同的问题 #11

sunism opened this issue Mar 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@sunism
Copy link

sunism commented Mar 19, 2021

prometheus有以下4中运算符
=: Select labels that are exactly equal to the provided string.
!=: Select labels that are not equal to the provided string.
=: Select labels that regex-match the provided string.
!
: Select labels that do not regex-match the provided string.
我看代码中在查询时,直接多lable进行拼接,并没有判断运算符的不同。
例如:
up{host="localhost",instance="localhost:8080",job!="cadvisor", sunzheng!"nihao"}
这种请求发送到后台后,会有type字段。目前该项目只有=,这种情况,其他三种条件并没有解决
请求后续有解决码?

@machinly
Copy link
Member

machinly commented Mar 19, 2021

Clarify the issues.
Need support label matcher operators !=, =~, !~.

Example:

up{host="localhost", instance~="localhost:8080", job!="cadvisor", sunzheng~!"nihao"}

@machinly machinly added the enhancement New feature or request label Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants