Understanding Prometheus queries and why they might not work

I had a query sum (rate(traces_span_metrics_duration_milliseconds_bucket[1m]) ) by(le) / sum(rate(traces_span_metrics_duration_milliseconds_count[1m]) ) and it returned no data. Why? I discuss how I debugged this problem in Debugging Prometheus queries The Prometheus documentation has a sections on queries and data. Prometheus calculations Data types There are different sorts of data in Prometheus…