Don't display data out of range

  • What Grafana version and what operating system are you using?
    Grafana 8.3.3 on Ubuntu 20.04

  • What are you trying to achieve?
    Filter data out of range from a sensor pull from Prometheus

  • How are you trying to achieve it?
    That is the question

I have a prometheus datasource that recover data from many sensor (Temperature and humidity in this case)
When the sensor has something wrong he send “-999” value
I would like not to display this -999 value in the graph in grafana

Something like filtering “humidity value” and not display it if not in 0-100% range

Any idea to do it?
If not possible in grafana, it is maybe possible in prometheus?

Thanks

Hello
I found the solution.
In the graph of grafana just type in the metrics browser fields “value AND (value> -900)”
And it works fine