Define another alert rule. It is okay to give it the same name, as long as
the labels are definitely distinct.

/MR

On Wed, Sep 9, 2020 at 10:53 AM neel patel <[email protected]> wrote:

> Hi Team,
>
> I have defined below the alert rule which says if disk usage exceeds 80%,
> it should raise the critical alert. Can I define in the same rule file if
> disk usage is between > 60 % & < 80% should be considered as a warning ? Or
> do I have to define another alert rule for the warning level ?
>
> ```
>   # Disk usage in percentage
>   - alert: DiskUsageInPercentage
>     expr: disk_usage_percentage > 80
>     for: 10m
>     labels:
>       severity: critical
>     annotations:
>       summary: "Disk usage in percentage on {{ $labels.instance }}"
>       description: "{{ $labels.instance }} has disk usage percentage above
> threshold value of 80% (current value: {{ $value }}%)"
> ```
>
> Let us know in case of any query. Help will be appreciated.
>
> Thanks,
> Neel
>
> --
> 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/CAPTvBttLZ7CcmoRTTpU%2BbGeHLQJDut6dTEmCVz54KhOjNCtZjQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/prometheus-users/CAPTvBttLZ7CcmoRTTpU%2BbGeHLQJDut6dTEmCVz54KhOjNCtZjQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAMV%3D_gZ8Qt56NEfq%3DgXaK_ETwTtNS%3DXkU8ZHFRem_CzKkfRmTg%40mail.gmail.com.

Reply via email to