Giuseppe Lavagetto has uploaded a new change for review.

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

Change subject: mobileapps: add experimental cluster check
......................................................................

mobileapps: add experimental cluster check

Since our basic lvs checks for services basically require just a static
asset, they are not exactly telling when some issue happens that doesn't
kill the service completely crashing it. We thus introduce an
experimental check that uses service_checker to check the LVS endpoint
for our applications, and will output alerts to IRC and mail to the
services team.

Bug: T134551
Change-Id: I8300b3094a59d434d9c09bfeb2d8b5aaf9d32575
---
M modules/lvs/manifests/monitor.pp
1 file changed, 20 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/89/288589/1

diff --git a/modules/lvs/manifests/monitor.pp b/modules/lvs/manifests/monitor.pp
index b27d72a..2c2e060 100644
--- a/modules/lvs/manifests/monitor.pp
+++ b/modules/lvs/manifests/monitor.pp
@@ -11,4 +11,24 @@
     $yaml_tmp_var = template('lvs/monitor_lvs.erb')
     $monitors = parseyaml($yaml_tmp_var)
     create_resources(lvs::monitor_service_http_https, $monitors)
+
+    # Experimental load-balancer monitoring for services using service-checker
+    @monitoring::service { 'check_mobileapps_cluster':
+        host  => 'mobileapps.svc.eqiad.wmnet',
+        group => 'lvs',
+        description => 'Mobileapps LVS eqiad',
+        check_command => 
'check_wmf_service!http://mobileapps.svc.eqiad.wmnet:8888!15',
+        critical => false,
+        contact_group => 'admins,team-services',
+    }
+
+    # Experimental load-balancer monitoring for services using service-checker
+    @monitoring::service { 'check_mobileapps_cluster':
+        host  => 'mobileapps.svc.codfw.wmnet',
+        group => 'lvs',
+        description => 'Mobileapps LVS eqiad',
+        check_command => 
'check_wmf_service!http://mobileapps.svc.codfw.wmnet:8888!15',
+        critical => false,
+        contact_group => 'admins,team-services',
+    }    
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8300b3094a59d434d9c09bfeb2d8b5aaf9d32575
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to