Alert based on the fields of a select

Hi Guys,

I have a graph based on select with two fields, total resources and allocated resources.

I would like to create an alert when the allocated resources were equal to the total resources.

Is possible?

If you can write a metrics query that subtracts the total from the allocated, then you can specify an alert on that result


if I understand, I need to write one metric for every field from de same metric.

Does it impact performance?