Skip to content

Commit

Permalink
add OutOfMemoryErrors alert (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
lomobot authored Jul 19, 2024
1 parent ea6f260 commit 1d877bb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions memcached-mixin/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@
summary: 'Memcached connections at critical level.',
},
},
{
alert: 'MemcachedOutOfMemoryErrors',
expr: |||
sum without (slab) (rate(memcached_slab_items_outofmemory_total[5m])) > 0
|||,
'for': '15m',
labels: {
severity: 'warning',
},
annotations: {
description: 'Memcached instance {{ $labels.job }} / {{ $labels.instance }} has OutOfMemory errors for at least 15 minutes, current rate is {{ printf "%0.0f" $value }}',
summary: 'Memcached has OutOfMemory errors.',
},
},
],
},
],
Expand Down

0 comments on commit 1d877bb

Please sign in to comment.