title: PromQL Prometheus Query - How do we specify a data range in absolute terms
body: <p>From Grafana Query inspector I am able to get the data for a date range ; Example</p>
  <p><code>rate(node_disk_read_bytes_total{job=&quot;node-exporter&quot;,instance=&quot;172.18.0.2:9100&quot;,device=~&quot;nvme.*&quot;}[20m])</code></p>
  <p><a href="https://i.stack.imgur.com/VGGY9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VGGY9.png" alt="enter image description here" /></a></p>
  <p>I can also give an absolute data time range. When I use the Prometheus GUI to query directly, I am not sure of the syntax of putting the date time range. I know it is in Unix Epoch time</p>
  <p>What I have tried in PromQL from reading the docs</p>
  <p><code>rate(node_disk_read_bytes_total{job=&quot;node-exporter&quot;,instance=&quot;172.18.0.2:9100&quot;,device=~&quot;nvme.*&quot;}[10m] @ 1648473649)[1d:10m]</code></p>
  <p><code>1648473649 = Monday, 28 March 2022 13:20:49</code> <a href="https://www.epochconverter.com/" rel="nofollow noreferrer">https://www.epochconverter.com/</a></p>
  <p>This works, without error and gives data, but the data is wrong (you can see from output it is giving one value all the way 38775.46666666667.</p>
  <p><a href="https://i.stack.imgur.com/SVk0T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SVk0T.png" alt="enter image description here" /></a></p>
  <p>Also, I would like to give to and from as date timestamps in the above query.</p>
  <p>The query which gives proper data in PromQL</p>
  <p><code>rate(node_disk_read_bytes_total{job=&quot;node-exporter&quot;,instance=&quot;172.18.0.2:9100&quot;,device=~&quot;nvme.*&quot;}[10m])[7d:10m]</code></p>
  <p><a href="https://i.stack.imgur.com/2RObK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2RObK.png" alt="enter image description here" /></a></p>