docs: Issue with "Histograms and summaries"
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 717
- Forks
- 1.2k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 19
Description
Page: https://prometheus.io/docs/practices/histograms/
Describe the issue:
I have been trying to display otel histogram data in prometheus.
I don't know the best way of displaying the information so it is clear when there is a problem.
I thought one way would be to display the percentage of figures in each bucket
I tried
sum(rate(traces_span_metrics_duration_milliseconds_bucket[1m])) by (le)
/
sum(rate(traces_span_metrics_duration_milliseconds_count[1m])) * 100
but that produces no data
I tried
sum(rate(traces_span_metrics_duration_milliseconds_bucket[1m])) by (le)
/
sum(rate(traces_span_metrics_duration_milliseconds_bucket{le="+Inf"[1m])) * 100
but this also produces no data.
It would be great if you could give some examples of promql queries to plot histogram data, in histogram, or heatmap pictures.
My data is from OTEL so I have records from about 20 spans .... each with a LE histogram. I'd like to know the best way to display this data as well.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the histograms and summaries page at https://prometheus.io/docs/practices/histograms/ and review how its existing examples explain bucket data. Reproduce the reported PromQL queries with representative OTEL histogram data, then document clear PromQL examples and suitable histogram or heatmap visualizations. Done means the page explains how to interpret and display this data without producing empty results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- prometheus
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100