PromQL query not working in Grafana but works in Prometheus

  • What Grafana version and what operating system are you using?
    10.0.3 Ubuntu

  • What are you trying to achieve?
    Some of my SNMP devices report metrics for components which don’t exist, showing 0 value for fan speed, etc.

  • How are you trying to achieve it?
    In Prometheus webpage I can filter them out like this: ledFanUnitSpeedLeft{job="snmp_cled"} > 1. So I tried that same query in Grafana.

  • What happened?
    The results show all components, even those with 0 fan speed.

  • What did you expect to happen?
    I should only see the components which exist.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No

  • Did you follow any online instructions? If so, what is the URL?
    No