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 doesn't support =~ on metric __name__ #5182

Closed
0neSe7en opened this issue Dec 17, 2024 · 2 comments · Fixed by #5191
Closed

PromQL doesn't support =~ on metric __name__ #5182

0neSe7en opened this issue Dec 17, 2024 · 2 comments · Fixed by #5191
Labels
A-query Involves code in query path C-bug Category Bugs

Comments

@0neSe7en
Copy link

What type of bug is this?

Incorrect result

What subsystems are affected?

Frontend

Minimal reproduce step

tql eval(1733995543,1734595483, '10m') {__name__=~"metric_a|metric_b"}

What did you expect to see?

query from metric_a and metric_b

What did you see instead?

Table not found: greptime.metrics.metric_a|metric_a

What operating system did you use?

doesn't matter

What version of GreptimeDB did you use?

0.11.0

Relevant log output and stack trace

No response

@0neSe7en 0neSe7en added the C-bug Category Bugs label Dec 17, 2024
@0neSe7en 0neSe7en changed the title PromQL doesn't support =~ on metric name PromQL doesn't support =~ on metric __name__ Dec 17, 2024
@evenyag evenyag added the A-query Involves code in query path label Dec 17, 2024
@killme2008
Copy link
Contributor

Yes, the current implementation cannot retrieve multiple metrics in a single query.

@waynexia
Copy link
Member

This limitation is documented here https://docs.greptime.com/user-guide/query-data/promql#selector, I add a validation for this case in #5191, thanks for reporting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query Involves code in query path C-bug Category Bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants