<p>I executed query to get pods running time and I noticed a strange thing that the data in the Graph is not the same in the panel table
as picture shows the table panel display only running pods<br />
<a href="https://i.stack.imgur.com/IE0R3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IE0R3.jpg" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/SNcWw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SNcWw.jpg" alt="enter image description here" /></a></p>
<p>and when I print the result of this query with java code I only get the data in table</p>

trey
<p>Graph's legend show all metrics that are present on graph. That means, all metrics that were scraped within graphs time range and satisfy your query.</p>
<p>Table, on the other hand, shows only current<sup>1</sup> metrics. Same applies to query executed through code.</p>
<p>Notice: Prometheus' API has two related endpoints: <code>/api/v1/query</code> and <code>/api/v1/query_range</code>. Those are endpoints to get query results in single time point and over time range, respectively. Documentation on mentioned endpoints can be found <a href="https://prometheus.io/docs/prometheus/latest/querying/api/" rel="nofollow noreferrer">here</a>.</p>
<p>Your library most likely has similar functionality.</p>
<hr />
<p><sup>1</sup> Current in relation of time selected for query. In UI, it is configured through field &quot;Evaluation time&quot;, in API it's parameter <code>time</code>.</p>
