# Apache KAFKA extension add producer, consumer, topic to MZ

**URL:** <https://community.dynatrace.com/t/apache-kafka-extension-add-producer-consumer-topic-to-mz/48431>\
**Category:** Dynatrace Tips\
**Tags:** kafka, apache, tips-and-tricks\
**Created:** [October 21, 2024, 9:29am UTC](https://community.dynatrace.com/t/apache-kafka-extension-add-producer-consumer-topic-to-mz/48431 "2024-10-21T09:29:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 21, 2024, 9:29am UTC](https://community.dynatrace.com/t/apache-kafka-extension-add-producer-consumer-topic-to-mz/48431/1 "2024-10-21T09:29:02Z")

</div>

Hi Folks,

Issue: If you use Apache KAFKA extension maybe you would attach the producers, consumers and topics to MZ for filtering purposes.

How to add producers, consumers and topics to an MZ? with tags. You should create a tag for the process and its producers and consumers.

 ![Mizs_2-1729502651386.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8399e04c0f45b5c791866f3a6d0815a6204974ce.png)

An then add these entity selectors to your MZ:

 ![Mizs_3-1729502814109.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/a/faa7ca8aa563dce4371a1edbd121d984181509a7.png)

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Stephen1\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Stephen1\_Lee](https://community.dynatrace.com/u/Stephen1_Lee)\
**Post date:** [November 5, 2024, 7:51pm UTC](https://community.dynatrace.com/t/apache-kafka-extension-add-producer-consumer-topic-to-mz/48431/2 "2024-11-05T19:51:16Z")

</div>

yes thanks for this.

I was using the same approach for DB extension.&nbsp; the same approach can be applied to almost any Dynatrace HUB 2.0 extension.&nbsp; The draw back is that sometimes your hostnames don’t have a nice pattern themselves.

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [November 6, 2024, 5:05am UTC](https://community.dynatrace.com/t/apache-kafka-extension-add-producer-consumer-topic-to-mz/48431/3 "2024-11-06T05:05:14Z")

</div>

Thanks. Helpful.
