Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-20104

Kafka Controller metrics are not being displayed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • ambari-metrics
    • None

    Description

      Kafka metrics fetched through rest Api's are not giving results .
      1. /api/v1/clusters/cl1/services/KAFKA/components/KAFKA_BROKER?fields=metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesInPerSec/1MinuteRate[1486990387,1486993987,15],metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesOutPerSec/1MinuteRate[1486990387,1486993987,15],metrics/kafka/server/BrokerTopicMetrics/AllTopicsMessagesInPerSec/1MinuteRate[1486990387,1486993987,15]

      {
        "href" : "<>/api/v1/clusters/cl1/services/KAFKA/components/KAFKA_BROKER?fields=metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesInPerSec/1MinuteRate[1486990387,1486993987,15],metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesOutPerSec/1MinuteRate[1486990387,1486993987,15],metrics/kafka/server/BrokerTopicMetrics/AllTopicsMessagesInPerSec/1MinuteRate[1486990387,1486993987,15]",
        "ServiceComponentInfo" : {
          "cluster_name" : "cl1",
          "component_name" : "KAFKA_BROKER",
          "service_name" : "KAFKA"
        }
      }
      

      2. /api/v1/clusters/cl1/services/KAFKA/components/KAFKA_BROKER?fields=metrics/kafka/controller/KafkaController/ActiveControllerCount[1486990432,1486994032,15]

      {
        "href" : "https://<>/api/v1/clusters/cl1/services/KAFKA/components/KAFKA_BROKER?fields=metrics/kafka/controller/KafkaController/ActiveControllerCount[1486990432,1486994032,15]",
        "ServiceComponentInfo" : {
          "cluster_name" : "cl1",
          "component_name" : "KAFKA_BROKER",
          "service_name" : "KAFKA"
        }
      }
      

      similarly with

      3. /api/v1/clusters/cl1/services/KAFKA/components/KAFKA_BROKER?fields=metrics/kafka/controller/ControllerStats/LeaderElectionRateAndTimeMs/1MinuteRate[1486990476,1486994076,15],metrics/kafka/controller/ControllerStats/UncleanLeaderElectionsPerSec/1MinuteRate[1486990476,1486994076,15]

      4. /api/v1/clusters/cl1/services/KAFKA/components/KAFKA_BROKER?fields=metrics/kafka/server/ReplicaManager/PartitionCount[1486990522,1486994122,15],metrics/kafka/server/ReplicaManager/UnderReplicatedPartitions[1486990522,1486994122,15],metrics/kafka/server/BrokerTopicMetrics/ReplicaManager/LeaderCount[1486990522,1486994122,15]

      This can also be seen in the UI

      Attachments

        1. AMBARI-20104.patch
          2 kB
          Aravindan Vijayan

        Activity

          People

            avijayan Aravindan Vijayan
            pradarttana Pradarttana
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: