-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add documentation for custom_values usage in NHCB #16757
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
Add documentation for custom_values usage in NHCB #16757
Conversation
4506693
to
3429940
Compare
Thanks for doing this. However, we do not explain the histogram details in this file anyway, so just explaining NHCB feel out of place. I think we should just extend the documentation in docs/configuration/unit_testing_rules.md , which in referenced in promql/promqltest/README.md . Just adding a line for |
13f8767
to
a857278
Compare
Thanks for the clarification. I’ve now moved the change to the correct file and added the custom_values line as you suggested. Let me know if anything else needs updating. |
✅ Fixed the indentation for the custom_values field comment. Let me know if there’s anything else you’d like changed! |
I think what we have to change is the description of the
We need to add the case of -53 and say that in that case upper bucket boundaries are defined in custom_values like for classic histograms and you shouldn't use z_bucket, z_bucket_w, n_buckets, n_offset. |
Signed-off-by: rishi-jat <rishijat098@gmail.com> Signed-off-by: Rishi Jat <rishijat098@gmail.com>
Signed-off-by: Rishi Jat <rishijat098@gmail.com>
Signed-off-by: Rishi Jat <rishijat098@gmail.com>
Signed-off-by: Rishi Jat <rishijat098@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: Rishi Jat <rishijat098@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: Rishi Jat <rishijat098@gmail.com>
Signed-off-by: Rishi Jat <rishijat098@gmail.com>
29f52c7
to
e398fea
Compare
I’ve made the changes to the schema field as suggested. Please have a look and let me know if there’s anything else to add. |
Hi @krajorama / @roidelapluie, |
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 some rewording
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: Rishi Jat <rishijat098@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: Rishi Jat <rishijat098@gmail.com>
Hi @roidelapluie, just checking in to see if you might have a moment to review this PR. It now includes the changes @krajorama suggested and all checks are passing. Happy to make any further updates if needed. |
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.
Nice, thanks everyone.
This PR updates
docs/configuration/unit_testing_rules.md
to document the usage of thecustom_values
field for manually defining native histogram buckets.custom_values
under the native histogram formatFixes: #16755