Alert variables


I need to setup multiple alerts and i what to specify a constant threshold the alert to be triggered at. But if i want to change the threshold it would be nice if i can change it in one single place and not edit every alert rule.

Is there any way that i can define a variable to be used for all the alerts ?

I’m using as a datasource : Victoriametrics. I’ve thought about storing these variables inside a SQL datasource and querying the DB on every alert for the threshold.

Is there any “easier” way?