Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/252396

Change subject: Add a paging alert for Redis memory utilization
......................................................................

Add a paging alert for Redis memory utilization

Per Aaron's request in T118331, but see task for discussion.
Follows Ifb16b43b4.

Bug: T118331
Change-Id: I6101a4484cb7408298ac0f82b37d9d94cd7050d4
---
M manifests/role/redisdb.pp
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/96/252396/1

diff --git a/manifests/role/redisdb.pp b/manifests/role/redisdb.pp
index 99c4d65..4332ff0 100644
--- a/manifests/role/redisdb.pp
+++ b/manifests/role/redisdb.pp
@@ -37,6 +37,14 @@
         password          => $passwords::redis::main_password,
     }
 
+    monitoring::graphite_threshold { 'redis_memory_utilization':
+        description     => 'redis memory utilization',
+        metric          => 
"servers.${::hostname}.redis.6379.memory.external_view",
+        warning         => to_bytes($maxmemory) * 0.60,
+        critical        => to_bytes($maxmemory) * 0.50,
+        nagios_critical => true,
+    }
+
     if $::standard::has_ganglia {
         include redis::ganglia
     }

-- 
To view, visit https://gerrit.wikimedia.org/r/252396
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6101a4484cb7408298ac0f82b37d9d94cd7050d4
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <o...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to