Ottomata has uploaded a new change for review.

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


Change subject: Updating README with jmxtrans documentation; adding example 
jmxtrans json file
......................................................................

Updating README with jmxtrans documentation; adding example jmxtrans json file

Change-Id: I3191177010817a9ef3044a467341eb85da67f225
---
M README.md
A kafka-jmxtrans.json.md
2 files changed, 939 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/kafka 
refs/changes/47/93947/1

diff --git a/README.md b/README.md
index 2b9487f..05d0c05 100644
--- a/README.md
+++ b/README.md
@@ -140,3 +140,22 @@
     zookeeper_chroot => ['/kafka/clusterB'],
 }
 ```
+
+## jmxtrans monitoring
+
+This module contains a class called ```kafka::server::jmxtrans```.  It contains
+a useful jmxtrans JSON config object that can be used to tell jmxtrans to send
+to any output writer (Ganglia, Graphite, etc.).  To you use this, you will need
+the [puppet-jmxtrans](https://github.com/wikimedia/puppet-jmxtrans) module.
+
+```puppet
+# Include this class on each of your Kafka Broker Servers.
+class { '::kafka::server::jmxtrans':
+    ganglia => 'ganglia.example.com',
+}
+```
+
+This will install jmxtrans and start render JSON config files for sending
+JVM and Kafka Broker stats to Ganglia.
+See [kafka-jmxtrans.json.md](blob/master/kafka-jmxtrans.json.md) for a fully
+rendered jmxtrans Kafka JSON config file.
diff --git a/kafka-jmxtrans.json.md b/kafka-jmxtrans.json.md
new file mode 100644
index 0000000..73088a9
--- /dev/null
+++ b/kafka-jmxtrans.json.md
@@ -0,0 +1,920 @@
+This jmxtrans JSON was generated using the 
[puppet-jmxtrans](https://github.com/wikimedia/puppet-jmxtrans)
+puppet module and the ```kafka::server::jmxtrans``` class from this module.  If
+you don't want to use the ```puppet-jmxtrans``` module, you may use this as a
+starting point for your own jmxtrans JSON config file.
+
+As is, this sends JMX metrics to both Ganglia and to a outfile.  You may add
+your own ```outputWriters``` as needed.
+
+```json
+{ "servers":
+  [ { "host": "broker1.exapmle.org"
+    , "port": 9999
+    , "queries":
+      [
+        { "obj": 
"\"kafka.log\":type=\"LogFlushStats\",name=\"LogFlushRateAndTimeMs\""
+        , "attr": [ "Count" ]
+        , "resultAlias": "kafka.log.LogFlushStats.LogFlush"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "POSITIVE"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.log\":type=\"LogFlushStats\",name=\"LogFlushRateAndTimeMs\""
+        , "attr": [ "FifteenMinuteRate" ]
+        , "resultAlias": "kafka.log.LogFlushStats.LogFlush"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.log\":type=\"LogFlushStats\",name=\"LogFlushRateAndTimeMs\""
+        , "attr": [ "FiveMinuteRate" ]
+        , "resultAlias": "kafka.log.LogFlushStats.LogFlush"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.log\":type=\"LogFlushStats\",name=\"LogFlushRateAndTimeMs\""
+        , "attr": [ "MeanRate" ]
+        , "resultAlias": "kafka.log.LogFlushStats.LogFlush"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.log\":type=\"LogFlushStats\",name=\"LogFlushRateAndTimeMs\""
+        , "attr": [ "OneMinuteRate" ]
+        , "resultAlias": "kafka.log.LogFlushStats.LogFlush"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.server\":type=\"BrokerTopicMetrics\",name=*"
+        , "attr": [ "Count" ]
+        , "resultAlias": "kafka.server.BrokerTopicMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "POSITIVE"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.server\":type=\"BrokerTopicMetrics\",name=*"
+        , "attr": [ "FifteenMinuteRate" ]
+        , "resultAlias": "kafka.server.BrokerTopicMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.server\":type=\"BrokerTopicMetrics\",name=*"
+        , "attr": [ "FiveMinuteRate" ]
+        , "resultAlias": "kafka.server.BrokerTopicMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.server\":type=\"BrokerTopicMetrics\",name=*"
+        , "attr": [ "MeanRate" ]
+        , "resultAlias": "kafka.server.BrokerTopicMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.server\":type=\"BrokerTopicMetrics\",name=*"
+        , "attr": [ "OneMinuteRate" ]
+        , "resultAlias": "kafka.server.BrokerTopicMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"UnderReplicatedPartitions\""
+        , "attr": [ "Value" ]
+        , "resultAlias": 
"kafka.server.ReplicaManager.UnderReplicatedPartitions"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "partitions"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"PartitionCount\""
+        , "attr": [ "Value" ]
+        , "resultAlias": "kafka.server.ReplicaManager.PartitionCount"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "partitions"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"LeaderCount\""
+        , "attr": [ "Value" ]
+        , "resultAlias": "kafka.server.ReplicaManager.LeaderCount"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "leaders"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"ISRShrinksPerSec\""
+        , "attr": [ "Count" ]
+        , "resultAlias": "kafka.server.ReplicaManager.ISRShrinks"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "POSITIVE"
+              , "units": "shrinks"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"ISRShrinksPerSec\""
+        , "attr": [ "FifteenMinuteRate" ]
+        , "resultAlias": "kafka.server.ReplicaManager.ISRShrinks"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "shrinks/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"ISRShrinksPerSec\""
+        , "attr": [ "FiveMinuteRate" ]
+        , "resultAlias": "kafka.server.ReplicaManager.ISRShrinks"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "shrinks/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"ISRShrinksPerSec\""
+        , "attr": [ "MeanRate" ]
+        , "resultAlias": "kafka.server.ReplicaManager.ISRShrinks"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "shrinks/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"ISRShrinksPerSec\""
+        , "attr": [ "OneMinuteRate" ]
+        , "resultAlias": "kafka.server.ReplicaManager.ISRShrinks"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "shrinks/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"IsrExpandsPerSec\""
+        , "attr": [ "Count" ]
+        , "resultAlias": "kafka.server.ReplicaManager.IsrExpands"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "POSITIVE"
+              , "units": "expands"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"IsrExpandsPerSec\""
+        , "attr": [ "FifteenMinuteRate" ]
+        , "resultAlias": "kafka.server.ReplicaManager.IsrExpands"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "expands/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"IsrExpandsPerSec\""
+        , "attr": [ "FiveMinuteRate" ]
+        , "resultAlias": "kafka.server.ReplicaManager.IsrExpands"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "expands/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"IsrExpandsPerSec\""
+        , "attr": [ "MeanRate" ]
+        , "resultAlias": "kafka.server.ReplicaManager.IsrExpands"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "expands/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.server\":type=\"ReplicaManager\",name=\"IsrExpandsPerSec\""
+        , "attr": [ "OneMinuteRate" ]
+        , "resultAlias": "kafka.server.ReplicaManager.IsrExpands"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "expands/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.server\":type=\"ReplicaFetcherManager\",name=*"
+        , "attr": [ "Value" ]
+        , "resultAlias": "kafka.server.ReplicaFetcherManager"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.server\":type=\"ProducerRequestPurgatory\",name=*"
+        , "attr": [ "Value" ]
+        , "resultAlias": "kafka.server.ProducerRequestPurgatory"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.server\":type=\"FetchRequestPurgatory\",name=*"
+        , "attr": [ "Value" ]
+        , "resultAlias": "kafka.server.ProducerRequestPurgatory"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.network\":type=\"RequestMetrics\",name=\"*-RequestsPerSec\""
+        , "attr": [ "Count" ]
+        , "resultAlias": "kafka.network.RequestMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "POSITIVE"
+              , "units": "requests"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.network\":type=\"RequestMetrics\",name=\"*-RequestsPerSec\""
+        , "attr": [ "FifteenMinuteRate" ]
+        , "resultAlias": "kafka.network.RequestMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "units": "requests/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.network\":type=\"RequestMetrics\",name=\"*-RequestsPerSec\""
+        , "attr": [ "FiveMinuteRate" ]
+        , "resultAlias": "kafka.network.RequestMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "units": "requests/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.network\":type=\"RequestMetrics\",name=\"*-RequestsPerSec\""
+        , "attr": [ "MeanRate" ]
+        , "resultAlias": "kafka.network.RequestMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "units": "requests/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.network\":type=\"RequestMetrics\",name=\"*-RequestsPerSec\""
+        , "attr": [ "OneMinuteRate" ]
+        , "resultAlias": "kafka.network.RequestMetrics"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "units": "requests/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": "\"kafka.controller\":type=\"KafkaController\",name=*"
+        , "attr": [ "Value" ]
+        , "resultAlias": "kafka.controller.KafkaController"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              , "typeNames": ["name"]
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "typeNames": ["name"]
+              , "slope": "BOTH"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"LeaderElectionRateAndTimeMs\""
+        , "attr": [ "Count" ]
+        , "resultAlias": "kafka.controller.ControllerStats.LeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "POSITIVE"
+              , "units": "calls"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"LeaderElectionRateAndTimeMs\""
+        , "attr": [ "FifteenMinuteRate" ]
+        , "resultAlias": "kafka.controller.ControllerStats.LeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"LeaderElectionRateAndTimeMs\""
+        , "attr": [ "FiveMinuteRate" ]
+        , "resultAlias": "kafka.controller.ControllerStats.LeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"LeaderElectionRateAndTimeMs\""
+        , "attr": [ "MeanRate" ]
+        , "resultAlias": "kafka.controller.ControllerStats.LeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"LeaderElectionRateAndTimeMs\""
+        , "attr": [ "OneMinuteRate" ]
+        , "resultAlias": "kafka.controller.ControllerStats.LeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "calls/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"UncleanLeaderElectionsPerSec\""
+        , "attr": [ "Count" ]
+        , "resultAlias": 
"kafka.controller.ControllerStats.UncleanLeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "POSITIVE"
+              , "units": "elections"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"UncleanLeaderElectionsPerSec\""
+        , "attr": [ "FifteenMinuteRate" ]
+        , "resultAlias": 
"kafka.controller.ControllerStats.UncleanLeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "elections/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"UncleanLeaderElectionsPerSec\""
+        , "attr": [ "FiveMinuteRate" ]
+        , "resultAlias": 
"kafka.controller.ControllerStats.UncleanLeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "elections/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"UncleanLeaderElectionsPerSec\""
+        , "attr": [ "MeanRate" ]
+        , "resultAlias": 
"kafka.controller.ControllerStats.UncleanLeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "elections/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      , { "obj": 
"\"kafka.controller\":type=\"ControllerStats\",name=\"UncleanLeaderElectionsPerSec\""
+        , "attr": [ "OneMinuteRate" ]
+        , "resultAlias": 
"kafka.controller.ControllerStats.UncleanLeaderElection"
+        , "outputWriters":
+          [
+            { "@class": "com.googlecode.jmxtrans.model.output.KeyOutWriter"
+            , "settings":
+              { "outputFile": "/tmp/jmxtrans.out"
+              }
+            }
+          , { "@class" : "com.googlecode.jmxtrans.model.output.GangliaWriter"
+            , "settings":
+              { "host": "ganglia.example.com"
+              , "port": 8649
+              , "slope": "BOTH"
+              , "units": "elections/second"
+              , "groupName": "kafka"
+              }
+            }
+          ]
+        }
+      ]
+    }
+  ]
+}
+```
\ No newline at end of file

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

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

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

Reply via email to