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

该项目是否解决了promql存在四种运算符的问题 #10

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

该项目是否解决了promql存在四种运算符的问题 #10

sunism opened this issue Mar 19, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

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

see #11

@machinly machinly added the duplicate This issue or pull request already exists label Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants