-
Notifications
You must be signed in to change notification settings - Fork 9.8k
promql: Add NHCB tests #14464
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: Add NHCB tests #14464
Conversation
@zenador as promised. 😄 |
@@ -103,156 +113,314 @@ eval instant at 50m histogram_fraction(0, 0.2, rate(testhistogram3[5m])) | |||
{start="positive"} 0.6363636363636364 | |||
{start="negative"} 0 | |||
|
|||
# Test histogram_quantile. | |||
# In the classic histogram, we can acces the corresponding bucket (if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# In the classic histogram, we can acces the corresponding bucket (if | |
# In the classic histogram, we can access the corresponding bucket (if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with tiny nit
eval instant at 47m histogram_quantile(5./6., rate(testhistogram2_bucket[15m])) | ||
{} 5 | ||
|
||
# Aggregated histogram: Everything in one. | ||
# Aggregated histogram: Everything in one. Note how NHCB doesn't require aggregation by le. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
# Aggregated histogram: Everything in one. Note how NHCB doesn't require aggregation by le. | |
# Aggregated histogram: Everything in one. Note how native histograms don't require aggregation by le. |
This adds equivalent NHCB tests to the existing classic histogram tests. Signed-off-by: beorn7 <beorn@grafana.com>
Comments addressed, will merge on green. |
This adds equivalent NHCB tests to the existing classic histogram tests.