I have a histogram in Prometheus, and in Grafana I'm trying to get a graph of the distribution of counts for one of the labels as a percent over time. I'm currently trying something like
sum(rate(histogram_count{label1="value1"}[5m])) by (label2)
/
sum(rate(histogram_count{label1="value1"}[5m]))
but it's not returning any values. Am I doing something wrong? I just want the sum of counts for each value of label2, divided by the total sum of counts.