Ottomata has submitted this change and it was merged.

Change subject: Eventloggging alarm that triggers when sql insertion decreases
......................................................................


Eventloggging alarm that triggers when sql insertion decreases

Bug: T119771
Change-Id: Ic39dfcaa62f79e743bc2336fc79ef1614234a023
---
M modules/eventlogging/manifests/monitoring/graphite.pp
1 file changed, 17 insertions(+), 0 deletions(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved



diff --git a/modules/eventlogging/manifests/monitoring/graphite.pp 
b/modules/eventlogging/manifests/monitoring/graphite.pp
index 24cefea..e7553be 100644
--- a/modules/eventlogging/manifests/monitoring/graphite.pp
+++ b/modules/eventlogging/manifests/monitoring/graphite.pp
@@ -56,4 +56,21 @@
         until         => '10min',
         contact_group => 'analytics',
     }
+
+
+    # Warn/Alert if the db inserts of EventLogging data have dropped 
dramatically
+    # Since the MySQL consumer is at the bottom of the pipeline
+    # this metric is a good proxy to make sure events are flowing through the
+    # kafka pipeline
+    monitoring::graphite_threshold { 'eventlogging_overall_inserted_rate':
+        description   => 'Overall insertion rate from MySQL consumer',
+        metric        => "eventlogging.overall.inserted.rate",
+        warning       => 100,
+        critical      => 10,
+        percentage    => 20, # At least 3 of the (25 - 10) = 15 readings
+        from          => '25min',
+        until         => '10min',
+        contact_group => 'analytics',
+        under         => true
+    }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic39dfcaa62f79e743bc2336fc79ef1614234a023
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Nuria <nu...@wikimedia.org>
Gerrit-Reviewer: Nuria <nu...@wikimedia.org>
Gerrit-Reviewer: Ottomata <o...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to