title: Does PromQL have ternary operator or How to query on condition?
body: <pre><code>sum(process_open_fds) &gt; bool max(process_max_fds)*0.9
  </code></pre>
  
  <p>If the above returns true, i would like to perform topk(10, process_open_fds). How can we have this both in a single query. </p>
  
  <p>Tried like below - but no luck though</p>
  
  <pre><code>sum(process_open_fds) &gt; bool max(process_max_fds)*0.9 &gt; 1 and topk(10, process_open_fds)
  </code></pre>