Re: [prometheus-users] Per-host thresholds in prometheus alert

2021-02-26 Thread Stuart Clark
On 26/02/2021 14:18, David Leadbeater wrote: See https://www.robustperception.io/using-time-series-as-alert-thresholds On Fri, 26 Feb 2021 at 14:16, Andrew Kulikov > wrote: Hi, I have, for example, simple alert for low swap: name: Low swap exp

Re: [prometheus-users] Per-host thresholds in prometheus alert

2021-02-26 Thread David Leadbeater
See https://www.robustperception.io/using-time-series-as-alert-thresholds On Fri, 26 Feb 2021 at 14:16, Andrew Kulikov wrote: > Hi, > > I have, for example, simple alert for low swap: > > name: Low swap > expr: swap_used_percent > 80 > for: 10m > labels: > severity: warning > annotations: >

[prometheus-users] Per-host thresholds in prometheus alert

2021-02-26 Thread Andrew Kulikov
Hi, I have, for example, simple alert for low swap: name: Low swap expr: swap_used_percent > 80 for: 10m labels: severity: warning annotations: description: Swap usage is {{ $value | printf "%.2f" }}% on {{ $labels.host }} summary: Low swap For some hosts it's normal to use 50% of s