Search code examples
prometheusprometheus-node-exporter

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

  • Use the following query:

    kube_node_status_condition==1