title: How can I calculate the number of metrics by unique labels without specifying a label in Prometheus/Grafana?
body: <p>Because all URLs are dynamic, I cannot specify a specific URL when I group labels. Because every time a unique URL can appear.</p>
  <p>Here's an example from metrics.</p>
  <pre><code>16:00:00
  http_trace{method=&quot;GET&quot;,status=&quot;404&quot;,uri=&quot;/actuator/conditions/777&quot;,} 1.0
  http_trace{method=&quot;GET&quot;,status=&quot;200&quot;,uri=&quot;/actuator/conditions&quot;,} 3.0
  http_trace{method=&quot;GET&quot;,status=&quot;200&quot;,uri=&quot;/actuator/test&quot;,} 3.0
  http_trace{method=&quot;GET&quot;,status=&quot;200&quot;,uri=&quot;/actuator/beans&quot;,} 3.0
  
  16:00:30
  http_trace{method=&quot;GET&quot;,status=&quot;404&quot;,uri=&quot;/actuator/conditions/777&quot;,} 4.0
  http_trace{method=&quot;GET&quot;,status=&quot;200&quot;,uri=&quot;/actuator/conditions&quot;,} 2.0
  http_trace{method=&quot;GET&quot;,status=&quot;200&quot;,uri=&quot;/actuator/test&quot;,} 6.0
  http_trace{method=&quot;GET&quot;,status=&quot;200&quot;,uri=&quot;/actuator/beans123&quot;,} 7.0
  </code></pre>
  <p>How can I make Promethus or Grafana Query - So that I get that number.?</p>
  <pre><code>uri=&quot;/actuator/conditions/777&quot; -&gt; 5.0
  uri=&quot;/actuator/conditions&quot; -&gt; 5.0
  uri=&quot;/actuator/test&quot; -&gt; 9.0
  uri=&quot;/actuator/beans&quot; -&gt; 3.0
  uri=&quot;/actuator/beans123&quot; -&gt; 7.0
  </code></pre>
  <p>Thanks.</p>