1) Custom action script to install & configure OMS for Kafka are located Storm.
2) Navigate to the cluster page on the Azure Management portal.
3) Select “Custom Action scripts”
4) Provide the script from Step #1 as the script path.
5) Parameters =
Note for old clusters (created before 11/15/2016): Kafka exposes JMX metrics on port 9999. However, for Hdinsight clusters created before 11/15/2016, this is not the case. For these old clusters, please logon to Ambari, and add the following to live advanced-kafka-env: export JMX_PORT=${JMX_PORT:-9999} You may need to restart kafka brokers after this for it to take effect.
Navigate to OMS Portal > Log Search.
Here are some sample queries you can do:
Tables | Details |
---|---|
log_kafkaserver_CL | Kafka broker’s server.log file |
log_kafkacontroller_CL | Kafka broker’s controller.log file |
kafkametrics_CL | Kafka JMX metrics |
Type=Perf ObjectName="Logical Disk" (CounterName="Free Megabytes") InstanceName="_Total" Computer='hn*-*' or Computer='wn*-*'
| measure avg(CounterValue) by Computer interval 1HOUR
Type:Perf CounterName="% Processor Time" InstanceName="_Total" Computer='hn*-*' or Computer='wn*-*'
| measure avg(CounterValue) by Computer interval 1HOUR
Type=kafkametrics_CL ClusterName_s="kafkaomstest3" InstanceName_s="kafka-BrokerTopicMetrics-MessagesInPerSec-Count"
| measure avg(kafka_BrokerTopicMetrics_MessagesInPerSec_Count_value_d) by HostName_s interval 1HOUR
Type=kafkametrics_CL HostName_s="wn0-kafkao" InstanceName_s="kafka-BrokerTopicMetrics-BytesInPerSec-Count"
| measure avg(kafka_BrokerTopicMetrics_BytesInPerSec_Count_value_d) interval 1HOUR
Type=kafkametrics_CL ClusterName_s="kafkaomstest3" InstanceName_s="kafka-BrokerTopicMetrics-BytesOutPerSec-Count"
| measure avg(kafka-BrokerTopicMetrics-BytesOutPerSec-Count_value_d) interval 1HOUR