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

bug: reverse mapping for promql is not performed #279

Closed
ernado opened this issue Dec 27, 2023 · 0 comments · Fixed by #288
Closed

bug: reverse mapping for promql is not performed #279

ernado opened this issue Dec 27, 2023 · 0 comments · Fixed by #288
Assignees
Labels
bug Something isn't working

Comments

@ernado
Copy link
Member

ernado commented Dec 27, 2023

Having query

EVAL http_server_duration

And metrics

SELECT DISTINCT name FROM metrics_points WHERE name LIKE 'http.%'
http.server.duration_bucket
http.server.duration_count
http.server.duration_max
http.server.duration_min
http.server.duration_sum
http.server.request_content_length
http.server.response_content_length

The rendered query is

SELECT * FROM `metrics_points` WHERE true
	AND toUnixTimestamp64Nano(timestamp) >= 1703685540000000000
	AND toUnixTimestamp64Nano(timestamp) <= 1703686140000000000
AND (
name = 'http_server_duration'
)
ORDER BY timestamp

Points were ingested via gRPC OTLP protocol.
This can be reproduced in dev/local/ch.

@ernado ernado added the bug Something isn't working label Dec 27, 2023
@ernado ernado assigned tdakkota and ernado and unassigned tdakkota Dec 27, 2023
ernado added a commit that referenced this issue Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants