How to get alert (min/max) threshold values from query?

Hello,

I’m storing the actual value and (min / max) values in the InfluxDB. How can I use these values to set an alert?

you will have to write complex query that somehow uses those other series min/max using some form of influxdb sub queries.

Not sure if it’s possible using the InfluxDB query language.

Actually, I want to use the value in the database as an alarm value.