<p>I write the query below to get the up time for the microvices.</p>
<p><code>base_jvm_uptime_seconds{kubernetes_name=&quot;namepspce1&quot;}</code></p>
<p>However, it returns multiple values, so the grafana returns &quot;Only queries that return single series/table is supported&quot;. I am wondering how can I the first velus from the query result?</p>
<p>I tried <code>base_jvm_uptime_seconds{kubernetes_name=&quot;namepspce1&quot;}[0]</code>, but it doesn't work..</p>
<p>Thanks!</p>

user3464179
<p>I suggest you first inspect the label values of these multiple time series by running the query in Prometheus Graph console.
The you'll need to decide which one you want to display. Random first usually isn't the best idea.
But you can always do <code>topk(1,query)</code> if it helps. Just turn the Instant mode on in the Grafana Query editor.</p>
