GWicke has uploaded a new change for review.

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

Change subject: Add basic alerts on RESTBase error rates and storage latencies
......................................................................

Add basic alerts on RESTBase error rates and storage latencies

Bug: T78514
Change-Id: Ic4b083cfd49436013b7958e9424c8ff131095726
---
M modules/restbase/manifests/init.pp
1 file changed, 18 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/04/215004/1

diff --git a/modules/restbase/manifests/init.pp 
b/modules/restbase/manifests/init.pp
index 3374828..a02fe5e 100644
--- a/modules/restbase/manifests/init.pp
+++ b/modules/restbase/manifests/init.pp
@@ -135,4 +135,22 @@
             '/etc/init.d/restbase'
         ],
     }
+
+    monitoring::graphite_threshold { 'restbase_request_5xx_rate':
+        description     => 'RESTBase requests returning 5xx, in req/s',
+        metric          => 
'restbase.v1_page_html_-title-_-revision--_tid-.GET.5xx.sample_rate',
+        from            => '30minutes',
+        warning         => '1', # 1 5xx/s
+        critical        => '3', # 5 5xx/s
+        percentage      => '20',
+    }
+
+    monitoring::graphite_threshold { 'restbase_html_storage_hit_latency':
+        description     => 'RESTBase HTML storage load mean latency',
+        metric          => 
'movingMedian(restbase.sys_key-rev-value_-bucket-_-key--_revision--_tid-.GET.2xx.mean,
 15)',
+        from            => '30minutes',
+        warning         => '25', # 25ms
+        critical        => '50', # 50ms
+        percentage      => '50',
+    }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4b083cfd49436013b7958e9424c8ff131095726
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: GWicke <gwi...@wikimedia.org>

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

Reply via email to