'How to write query on the elements value in prometheus

I have a metrics called - kube_node_status_condition in which I have elements that have value 0 or 1.

enter image description here

I need to write the query in such a way that it will only list the elements which has value 1. How to do so? Thanks in advance.



Solution 1:[1]

Use the following query:

kube_node_status_condition==1

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marcelo Ávila de Oliveira