Repository navigation
[docs] Add native histograms documentation and example - #1518
Merged
Merged
Conversation
Document native histograms (native_buckets) in the percentiles how-to: what they are, the schema, how each surfacer exports them, and how to get them into Prometheus, by scraping or over OTLP. Add an example config as well. Part of #1480.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Last part of native histogram support (#1480): documentation and an example for
native_buckets, which landed in #1514 to #1517.Docs
All of it is in the "Percentiles, Histograms, and Distributions" how-to, where distributions are documented today.
latency_metric_namefor the probes that uselatency_distribution, when only some of them do.scrape_native_histograms: true, when cloudprober serves the protobuf format, what a text scrape gets, the OTLP route, example queries, and NHCB conversion as the alternative for those who only want fewer time series.native_buckets. It shows the proto in its proto2 form, with the defaults in the proto, which is whatdist.protobecomes with [metrics] Switch dist.proto to proto2 #1519.Config reference pages are not touched; a separate workflow generates them from the protos.
Example
examples/percentiles/native_histograms.cfg: an HTTP probe withnative_buckets {}andlatency_metric_name: "latency_dist", next to a DNS probe that exports latency as a number. Prometheus scrape config and a p95 query are in the comments. Also added a "Percentiles" row toexamples/README.md.Testing
-configtestandtools/test_example_configs.sh.latency_distwas stored as native histograms,latencyof the DNS probe as a number, and the two queries in the docs returned sensible values.