Ottomata has submitted this change and it was merged.

Change subject: Track event counts in Graphite
......................................................................


Track event counts in Graphite

This patch defines a new role class, 'role::eventlogging::graphite', and
assigns it to hafnium. By declaring the class a node becomes an
EventLogging git-deploy deployment target (via
modules/eventlogging/manifests/init.pp). It also provisions a single
EventLogging event consumer which will maintain a count of incoming
events, broken down by schema, in Graphite, via StatsD.

Change-Id: I558d39e0453c44846d223994a74d8921ef9f0585
---
M manifests/role/eventlogging.pp
M manifests/site.pp
2 files changed, 18 insertions(+), 1 deletion(-)

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



diff --git a/manifests/role/eventlogging.pp b/manifests/role/eventlogging.pp
index b29bc76..c5147a6 100644
--- a/manifests/role/eventlogging.pp
+++ b/manifests/role/eventlogging.pp
@@ -166,3 +166,20 @@
         contact_group => 'admins,analytics',
     }
 }
+
+
+# == Class: role::eventlogging::graphite
+#
+# Keeps a running count of incoming events by schema in Graphite by
+# emitting 'eventlogging.SCHEMA_REVISION:1' on each event to a StatsD
+# instance.
+#
+class role::eventlogging::graphite {
+    include eventlogging
+    include misc::graphite::pystatsd
+
+    eventlogging::service::consumer { 'graphite':
+        input  => 'tcp://vanadium.eqiad.wmnet:8600',
+        output => 'statsd://127.0.0.1:8125',
+    }
+}
diff --git a/manifests/site.pp b/manifests/site.pp
index 61442f1..379090f 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -2837,7 +2837,7 @@
     include standard,
         groups::wikidev,
         accounts::olivneh,
-        misc::graphite::pystatsd
+        role::eventlogging::graphite
 
     sudo_user { 'olivneh':
         privileges => ['ALL = (ALL) NOPASSWD: ALL'],

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I558d39e0453c44846d223994a74d8921ef9f0585
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: Ottomata <o...@wikimedia.org>
Gerrit-Reviewer: Ryan Lane <rl...@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