anchor.diff:          domain: 'kafka.log'
           bean: 'kafka.log:type=LogFlushStats,name=LogFlushRateAndTimeMs'
           attribute:
  -          MeanRate:
  -            metric_type: gauge
  -            alias: kafka.log.flush_rate
  +          Count:
  +            metric_type: rate
  +            alias: kafka.log.flush_rate.rate
  
positive.code:             alias: kafka.request.produce.time.99percentile
      - include:
          domain: 'kafka.network'
          bean: 'kafka.network:type=RequestMetrics,name=TotalTimeMs,request=Fetch'
          attribute:
            Mean:
              metric_type: gauge
              alias: kafka.request.fetch.time.avg
            99thPercentile:
              metric_type: gauge
              alias: kafka.request.fetch.time.99percentile
      - include:
          domain: 'kafka.network'
          bean: 'kafka.network:type=RequestMetrics,name=TotalTimeMs,request=UpdateMetadata'
  
negative.code:         domain: 'kafka.server'
          bean: 'kafka.server:type=KafkaRequestHandlerPool,name=RequestHandlerAvgIdlePercent'
          attribute:
            Count:
              metric_type: rate
              alias: kafka.request.handler.avg.idle.pct.rate
      - include:
          domain: 'kafka.server'
          bean: 'kafka.server:type=ProducerRequestPurgatory,name=PurgatorySize'
          attribute:
            Value:
              metric_type: gauge
              alias: kafka.request.producer_request_purgatory.size
      - include:
          domain: 'kafka.server'
          bean: 'kafka.server:type=FetchRequestPurgatory,name=PurgatorySize'
          attribute:
            Value:
              metric_type: gauge
              alias: kafka.request.fetch_request_purgatory.size
  
      #
      # Replication stats
      #
      - include:
          domain: 'kafka.server'
          bean: 'kafka.server:type=ReplicaManager,name=UnderReplicatedPartitions'
          attribute:
            Value:
              metric_type: gauge
              alias: kafka.replication.under_replicated_partitions
      - include:
          domain: 'kafka.server'
          bean: 'kafka.server:type=ReplicaManager,name=IsrShrinksPerSec'
          attribute:
            Count:
              metric_type: rate
              alias: kafka.replication.isr_shrinks.rate
      - include:
          domain: 'kafka.server'
          bean: 'kafka.server:type=ReplicaManager,name=IsrExpandsPerSec'
          attribute:
            Count:
              metric_type: rate
              alias: kafka.replication.isr_expands.rate
      - include:
          domain: 'kafka.controller'
          bean: 'kafka.controller:type=ControllerStats,name=LeaderElectionRateAndTimeMs'
          attribute:
            Count:
              metric_type: rate
              alias: kafka.replication.leader_elections.rate
      - include:
          domain: 'kafka.controller'
          bean: 'kafka.controller:type=ControllerStats,name=UncleanLeaderElectionsPerSec'
          attribute:
            Count:
              metric_type: rate
              alias: kafka.replication.unclean_leader_elections.rate
      - include:
          domain: 'kafka.controller'
          bean: 'kafka.controller:type=KafkaController,name=OfflinePartitionsCount'
          attribute:
            Value:
              metric_type: gauge
              alias: kafka.replication.offline_partitions_count
      - include:
          domain: 'kafka.controller'
          bean: 'kafka.controller:type=KafkaController,name=ActiveControllerCount'
          attribute:
            Value:
              metric_type: gauge
              alias: kafka.replication.active_controller_count
      - include:
          domain: 'kafka.server'
          bean: 'kafka.server:type=ReplicaManager,name=PartitionCount'
          attribute:
            Value:
              metric_type: gauge
              alias: kafka.replication.partition_count
      - include:
          domain: 'kafka.server'
          bean: 'kafka.server:type=ReplicaManager,name=LeaderCount'
          attribute:
            Value:
              metric_type: gauge
              alias: kafka.replication.leader_count
      - include:
          domain: 'kafka.server'
          bean: 'kafka.server:type=ReplicaFetcherManager,name=MaxLag,clientId=Replica'
          attribute:
            Value:
              metric_type: gauge
              alias: kafka.replication.max_lag
  
      #
      # Log flush stats
  