# Need help in writing an alerting rule

**URL:** <https://discuss.prometheus.io/t/need-help-in-writing-an-alerting-rule/1264>\
**Category:** General Help/Support\
**Created:** [October 26, 2022, 11:57am UTC](https://discuss.prometheus.io/t/need-help-in-writing-an-alerting-rule/1264 "2022-10-26T11:57:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chronicle](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@chronicle](https://discuss.prometheus.io/u/chronicle)\
**Post date:** [October 26, 2022, 11:57am UTC](https://discuss.prometheus.io/t/need-help-in-writing-an-alerting-rule/1264/1 "2022-10-26T11:57:22Z")

</div>

Hi All,  
I am new to prometheus tool. Need some help with writing an alerting rule.

I have an existing rule with the following expression

Eg:  
expr: ( resourcelimit\_current / resourcelimit\_param ) \* 100 \> 80

I want to modify it such that if the resourcelimit\_param=0, it shouldn’t trigger an alert. Is there a way I could achieve this? Any help would be much appreciated!
