Ottomata has uploaded a new change for review.

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

Change subject: Override kafka jmxtrans metrics to test new config for version 
0.8.2.1
......................................................................

Override kafka jmxtrans metrics to test new config for version 0.8.2.1

Bug: T106581
Change-Id: I38a3ff2d7654b81824493c270ea63f0417c23206
---
M manifests/role/analytics/kafka.pp
1 file changed, 25 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/76/230576/1

diff --git a/manifests/role/analytics/kafka.pp 
b/manifests/role/analytics/kafka.pp
index 89b870f..24c1943 100644
--- a/manifests/role/analytics/kafka.pp
+++ b/manifests/role/analytics/kafka.pp
@@ -192,6 +192,31 @@
     class { '::kafka::server::jmxtrans':
         ganglia  => "${ganglia_host}:${ganglia_port}",
         statsd   => "${statsd_host}:${statsd_port}",
+        objects => {
+                'name'          => 'kafka.server:type=BrokerTopicMetrics',
+                'resultAlias'   => 'kafka.server.BrokerTopicMetrics',
+                'typeNames'     => ['name'],
+                'attrs'         => {
+                    'Count'             => { 'slope' => 'positive', 
'bucketType' => 'g' },
+                    'FifteenMinuteRate' => { 'slope' => 'both',     
'bucketType' => 'g' },
+                    'FiveMinuteRate'    => { 'slope' => 'both',     
'bucketType' => 'g' },
+                    'OneMinuteRate'     => { 'slope' => 'both',     
'bucketType' => 'g' },
+                    'MeanRate'          => { 'slope' => 'both',     
'bucketType' => 'g' },
+                },
+            },
+            {
+                'name'          => 
'kafka.server:type=BrokerTopicMetrics,name=*,topic=*',
+                'resultAlias'   => 'kafka.server.BrokerTopicMetrics',
+                'typeNames'     => ['name'],
+                'attrs'         => {
+                    'Count'             => { 'slope' => 'positive', 
'bucketType' => 'g' },
+                    'FifteenMinuteRate' => { 'slope' => 'both',     
'bucketType' => 'g' },
+                    'FiveMinuteRate'    => { 'slope' => 'both',     
'bucketType' => 'g' },
+                    'OneMinuteRate'     => { 'slope' => 'both',     
'bucketType' => 'g' },
+                    'MeanRate'          => { 'slope' => 'both',     
'bucketType' => 'g' },
+                },
+            },
+        }
     }
 
     # Monitor kafka in production

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

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

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

Reply via email to