Ottomata has submitted this change and it was merged.

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, 26 insertions(+), 0 deletions(-)

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



diff --git a/manifests/role/analytics/kafka.pp 
b/manifests/role/analytics/kafka.pp
index 89b870f..1d214ad 100644
--- a/manifests/role/analytics/kafka.pp
+++ b/manifests/role/analytics/kafka.pp
@@ -192,6 +192,32 @@
     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: merged
Gerrit-Change-Id: I38a3ff2d7654b81824493c270ea63f0417c23206
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to