No, but you can expand the rules files using a preprocessor of your choice.

If you want the threshold to be different for different time series, then 
see https://www.robustperception.io/using-time-series-as-alert-thresholds

On Monday, 27 February 2023 at 13:58:47 UTC inmar tzemach wrote:

> Is it possible to add parameters in rules files expression?
> Something like:
>     expr: (100 - (avg by (instance) 
> (irate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)) > {{ $treshhold}}
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/22d86a14-bb6a-4adb-9b37-8bd7bce5a71cn%40googlegroups.com.

Reply via email to