<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Apache Kafka entities limit in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Apache-Kafka-entities-limit/ta-p/273844</link>
    <description>&lt;P&gt;&lt;LI-TOC indent="15" liststyle="disc" maxheadinglevel="2"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H1 id="toc-hId-1846786847"&gt;Summary&lt;/H1&gt;
&lt;P&gt;Out of the box, the Apache Kafka extension never exposes more than 500 entities per Apache Kafka component. However, the actual Kafka cluster might have more than those, and they are all detected. The limitation is placed on the UI, and it can be re-configured.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 id="toc-hId--705370114"&gt;Problem&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;You might notice that the number of custom entities coming up after enabling the Apache Kafka extension is limited to 500. This doesn’t mean that there’s a limit to how many entities can be detected. It means that, for performance reasons, there needs to be a restriction on how many are going to be listed in the UI. There's an easy way to work around this, which also proves that the entities are indeed detected:&amp;nbsp;you can get the Topics you’re missing if you filter the list by name (it works with a “contains” logic):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lefteris_0-1743162105473.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27269iFD763E0A015E522A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lefteris_0-1743162105473.png" alt="Lefteris_0-1743162105473.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H1 id="toc-hId--1514716740"&gt;Resolution&lt;/H1&gt;
&lt;H2&gt;Changing the limit&lt;/H2&gt;
&lt;P&gt;The limit is configurable, but it requires that you change the extension definition. The way to go about this is to &lt;A href="https://www.dynatrace.com/hub/detail/apache-kafka/?query=kafka&amp;amp;filter=all#release-notes" target="_blank" rel="noopener"&gt;download the full package via the public Hub&lt;/A&gt;, edit the &lt;FONT face="courier new,courier"&gt;extension.yaml&lt;/FONT&gt; file, then &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extensions20/extension-lifecycle" target="_blank" rel="noopener"&gt;upload the new version&lt;/A&gt; to the cluster. The implication here is that the extension then becomes a custom one, meaning you are now responsible for its maintenance.&lt;/P&gt;
&lt;P&gt;What you need to change is the &lt;FONT face="courier new,courier"&gt;entitiesLimit&amp;nbsp;&lt;/FONT&gt;field within the &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-ui/unified-analysis/unified-analysis-reference#entities-list-cards" target="_blank" rel="noopener"&gt;entities list card&lt;/A&gt; of the yaml, under the corresponding entity screen. For &lt;FONT face="courier new,courier"&gt;kafka:topic&lt;/FONT&gt;, it currently looks like so:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;entitiesListCards:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - key: kafkatopic_list_self&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pageSize: 15&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; displayName: List of Kafka Topics&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; displayCharts: true&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; enableDetailsExpandability: true&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberOfVisibleCharts: 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Notice how there’s no entry for the entity limits. That’s cause the latter uses its default value, 500. You can get the exhaustive list of possible fields and values for extensions 2.0 via the &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/extensions-20/schemas/get-file" target="_blank" rel="noopener"&gt;/api/v2/extensions/schemas/ API&lt;/A&gt;. Specifically for &amp;nbsp;the entities list card, you’d have to make a request to:&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;https://&amp;lt;your_tenant&amp;gt;/api/v2/extensions/schemas/1.303/screen.card.entities.list.schema.json&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The field we’re interested in here is this one:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"entitiesLimit": {&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description": "The limit of entities quantity fetched from the server.",&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "integer",&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "default": 500,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "minimum": 100,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "maximum": 5000&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;It follows that if you want to maximize the size of the Topics list, you’d have to add this line to the &lt;FONT face="courier new,courier"&gt;entitiesListCards&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;entitiesLimit: 5000&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Entities API&lt;/H2&gt;
&lt;P&gt;Another way to list all custom entities created and monitored by the extension is to use the &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/entity-v2/get-entities-list" target="_blank" rel="noopener"&gt;monitored entities api&lt;/A&gt;. To access all topics, use the entity selector &lt;FONT face="courier new,courier"&gt;type(kafka:topic)&lt;/FONT&gt;, then select a &lt;FONT face="courier new,courier"&gt;pageSize&lt;/FONT&gt; value higher than 500. For example, if you pass the following parameters, you will get up to 1000 topics:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "entitySelector": "type(kafka:topic)",&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "pageSize": 1000&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 id="toc-hId-228093595"&gt;What's next&lt;/H1&gt;
&lt;P&gt;If the above doesn't work for you, you should open a support ticket. Make sure to include:&lt;/P&gt;
&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Links to the entities lists on the Dynatrace side.&lt;/LI&gt;
&lt;LI&gt;Some kind of proof from the Apache Kafka side (screenshots etc) that entities are missing from the above list.&lt;/LI&gt;
&lt;LI&gt;A link to this article and proof that you've already taken the suggested steps.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 14 Apr 2025 07:39:31 GMT</pubDate>
    <dc:creator>Lefteris</dc:creator>
    <dc:date>2025-04-14T07:39:31Z</dc:date>
    <item>
      <title>Apache Kafka entities limit</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Apache-Kafka-entities-limit/ta-p/273844</link>
      <description>&lt;P&gt;&lt;LI-TOC indent="15" liststyle="disc" maxheadinglevel="2"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H1 id="toc-hId-1846786847"&gt;Summary&lt;/H1&gt;
&lt;P&gt;Out of the box, the Apache Kafka extension never exposes more than 500 entities per Apache Kafka component. However, the actual Kafka cluster might have more than those, and they are all detected. The limitation is placed on the UI, and it can be re-configured.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 id="toc-hId--705370114"&gt;Problem&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;You might notice that the number of custom entities coming up after enabling the Apache Kafka extension is limited to 500. This doesn’t mean that there’s a limit to how many entities can be detected. It means that, for performance reasons, there needs to be a restriction on how many are going to be listed in the UI. There's an easy way to work around this, which also proves that the entities are indeed detected:&amp;nbsp;you can get the Topics you’re missing if you filter the list by name (it works with a “contains” logic):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lefteris_0-1743162105473.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27269iFD763E0A015E522A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lefteris_0-1743162105473.png" alt="Lefteris_0-1743162105473.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H1 id="toc-hId--1514716740"&gt;Resolution&lt;/H1&gt;
&lt;H2&gt;Changing the limit&lt;/H2&gt;
&lt;P&gt;The limit is configurable, but it requires that you change the extension definition. The way to go about this is to &lt;A href="https://www.dynatrace.com/hub/detail/apache-kafka/?query=kafka&amp;amp;filter=all#release-notes" target="_blank" rel="noopener"&gt;download the full package via the public Hub&lt;/A&gt;, edit the &lt;FONT face="courier new,courier"&gt;extension.yaml&lt;/FONT&gt; file, then &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extensions20/extension-lifecycle" target="_blank" rel="noopener"&gt;upload the new version&lt;/A&gt; to the cluster. The implication here is that the extension then becomes a custom one, meaning you are now responsible for its maintenance.&lt;/P&gt;
&lt;P&gt;What you need to change is the &lt;FONT face="courier new,courier"&gt;entitiesLimit&amp;nbsp;&lt;/FONT&gt;field within the &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-ui/unified-analysis/unified-analysis-reference#entities-list-cards" target="_blank" rel="noopener"&gt;entities list card&lt;/A&gt; of the yaml, under the corresponding entity screen. For &lt;FONT face="courier new,courier"&gt;kafka:topic&lt;/FONT&gt;, it currently looks like so:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;entitiesListCards:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - key: kafkatopic_list_self&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pageSize: 15&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; displayName: List of Kafka Topics&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; displayCharts: true&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; enableDetailsExpandability: true&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numberOfVisibleCharts: 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Notice how there’s no entry for the entity limits. That’s cause the latter uses its default value, 500. You can get the exhaustive list of possible fields and values for extensions 2.0 via the &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/extensions-20/schemas/get-file" target="_blank" rel="noopener"&gt;/api/v2/extensions/schemas/ API&lt;/A&gt;. Specifically for &amp;nbsp;the entities list card, you’d have to make a request to:&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;https://&amp;lt;your_tenant&amp;gt;/api/v2/extensions/schemas/1.303/screen.card.entities.list.schema.json&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The field we’re interested in here is this one:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"entitiesLimit": {&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description": "The limit of entities quantity fetched from the server.",&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "integer",&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "default": 500,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "minimum": 100,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "maximum": 5000&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;It follows that if you want to maximize the size of the Topics list, you’d have to add this line to the &lt;FONT face="courier new,courier"&gt;entitiesListCards&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;entitiesLimit: 5000&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Entities API&lt;/H2&gt;
&lt;P&gt;Another way to list all custom entities created and monitored by the extension is to use the &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/entity-v2/get-entities-list" target="_blank" rel="noopener"&gt;monitored entities api&lt;/A&gt;. To access all topics, use the entity selector &lt;FONT face="courier new,courier"&gt;type(kafka:topic)&lt;/FONT&gt;, then select a &lt;FONT face="courier new,courier"&gt;pageSize&lt;/FONT&gt; value higher than 500. For example, if you pass the following parameters, you will get up to 1000 topics:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "entitySelector": "type(kafka:topic)",&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "pageSize": 1000&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 id="toc-hId-228093595"&gt;What's next&lt;/H1&gt;
&lt;P&gt;If the above doesn't work for you, you should open a support ticket. Make sure to include:&lt;/P&gt;
&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Links to the entities lists on the Dynatrace side.&lt;/LI&gt;
&lt;LI&gt;Some kind of proof from the Apache Kafka side (screenshots etc) that entities are missing from the above list.&lt;/LI&gt;
&lt;LI&gt;A link to this article and proof that you've already taken the suggested steps.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Apr 2025 07:39:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Apache-Kafka-entities-limit/ta-p/273844</guid>
      <dc:creator>Lefteris</dc:creator>
      <dc:date>2025-04-14T07:39:31Z</dc:date>
    </item>
  </channel>
</rss>

