Skip to main content
ddharam
Gold ⭐️
Gold ⭐️
Jan 1, 2017 7:00 AM UTC

How to limit kafka metrics so as to not crash the ambari metrics collector

  • Oct 5, 2026 8:54 AM UTC
  • 1 reply
  • 2594 views
  • Translate All

Issue:

In a heavily utilized kafka cluster AMS will keep on crashing with error

"ERROR org.apache.hadoop.hbase.client.AsyncProcess: Cannot get replica 0 location for {"totalColumns":5,"row":"kafka.server.FetcherLagMetrics."

Solution:

1. Run the following command to gather the amount of metrics being collected:

curl http://<Ambari-metrics-collector-host>:6188/ws/v1/timeline/metrics/metadata

2. From Ambari UI -> Kafka -> Configs -> Fliter

search for: "external.kafka.metrics.exclude.prefix"

3. Add the following at the end:

kafka.log.Log

4. Restart Kafka.

This will exclude additional metrics from getting captured and will increase the stability of the AMS.

1 reply

Nandinin
Gold ⭐️
Gold ⭐️
Oct 22, 2020 2:38 AM UTC
SME || Kafka | Schema Registry | SMM | SRM