Debugging Prometheus queries

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? Ive explained the reason for this in Understanding Prometheus queries and why they might not work Getting started In Prometheus specify a query sum (rate(traces_span_metrics_duration_milliseconds_bucket[1m]) ) by(le)…