default: false
input:
  module: jolokia
  metricset: jmx
  defaults:
    namespace: "broker"
    hosts: ["localhost:8779"]
    path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"
    jmx.mappings:
      - mbean: 'kafka.network:type=RequestChannel,name=RequestQueueSize'
        attributes:
          - attr: Value
            field: request.channel.queue.size
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=FailedProduceRequestsPerSec'
        attributes:
          - attr: OneMinuteRate
            field: request.produce.failed_per_second
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=FailedFetchRequestsPerSec'
        attributes:
          - attr: OneMinuteRate
            field: request.fetch.failed_per_second
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=FailedProduceRequestsPerSec'
        attributes:
          - attr: OneMinuteRate
            field: request.produce.failed
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=FailedFetchRequestsPerSec'
        attributes:
          - attr: OneMinuteRate
            field: request.fetch.failed
      - mbean: 'kafka.controller:type=ControllerStats,name=LeaderElectionRateAndTimeMs'
        attributes:
          - attr: OneMinuteRate
            field: replication.leader_elections
      - mbean: 'kafka.controller:type=ControllerStats,name=UncleanLeaderElectionsPerSec'
        attributes:
          - attr: OneMinuteRate
            field: replication.unclean_leader_elections
      - mbean: 'kafka.server:type=SessionExpireListener,name=ZooKeeperDisconnectsPerSec'
        attributes:
          - attr: OneMinuteRate
            field: session.zookeeper.disconnect
      - mbean: 'kafka.server:type=SessionExpireListener,name=ZooKeeperExpiresPerSec'
        attributes:
          - attr: OneMinuteRate
            field: session.zookeeper.expire
      - mbean: 'kafka.server:type=SessionExpireListener,name=ZooKeeperReadOnlyConnectsPerSec'
        attributes:
          - attr: OneMinuteRate
            field: session.zookeeper.readonly
      - mbean: 'kafka.server:type=SessionExpireListener,name=ZooKeeperSyncConnectsPerSec'
        attributes:
          - attr: OneMinuteRate
            field: session.zookeeper.sync
      - mbean: 'kafka.log:type=LogFlushStats,name=LogFlushRateAndTimeMs'
        attributes:
          - attr: OneMinuteRate
            field: log.flush_rate
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=BytesRejectedPerSec,topic=*'
        attributes:
          - attr: OneMinuteRate
            field: topic.net.rejected.bytes_per_sec
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec,topic=*'
        attributes:
          - attr: OneMinuteRate
            field: topic.net.in.bytes_per_sec
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=BytesOutPerSec,topic=*'
        attributes:
          - attr: OneMinuteRate
            field: topic.net.out.bytes_per_sec
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec,topic=*'
        attributes:
          - attr: OneMinuteRate
            field: topic.messages_in
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=BytesRejectedPerSec'
        attributes:
          - attr: OneMinuteRate
            field: net.rejected.bytes_per_sec
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec'
        attributes:
          - attr: OneMinuteRate
            field: net.in.bytes_per_sec
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=BytesOutPerSec'
        attributes:
          - attr: OneMinuteRate
            field: net.out.bytes_per_sec
      - mbean: 'kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec'
        attributes:
          - attr: OneMinuteRate
            field: messages_in


