title: How to visualize average response time of all requests
body: <p>I have a metric <code>http_request_duration_seconds</code> which is a histogram based on Action,</p>
  
  <blockquote>
    <p>http_request_duration_seconds The duration of HTTP requests processed
    by an ASP.NET Core application. TYPE http_request_duration_seconds
    histogram</p>
  </blockquote>
  
  <p>which data is :</p>
  
  <pre><code>http_request_duration_seconds_sum{code="200",method="GET",controller="Player",action="Load"} 0.4301564
  http_request_duration_seconds_count{code="200",method="GET",controller="Player",action="Load"} 1
  http_request_duration_seconds_sum{code="200",method="POST",controller="Auth",action="Token"} 0.2790333
  http_request_duration_seconds_count{code="200",method="POST",controller="Auth",action="Token"} 1
  </code></pre>
  
  <p>Now in Grafana, I want to visualize the average of response time of all my actions in a specified time frame for example 5 minutes.</p>
  
  <p>In this example data, my desired output for this moment should be <code>(0.43 + 0.27) / ( 1 + 1)</code></p>
  
  <p>What is the <code>promql</code> query to do that?</p>