<?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>topic Re: Raise a problem when license consumption is close to limit in Dynatrace Managed Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/289153#M4514</link>
    <description>&lt;P&gt;Since Dynatrace Managed version 1.326, new Cluster v2 APIs are available for retrieving host, Davis data, and DEM unit information. For details, see&amp;nbsp;&lt;A href="https://docs.dynatrace.com/managed/shortlink/release-notes-managed-sprint-326#track-your-cluster-license-usage-via-api" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/managed/shortlink/release-notes-managed-sprint-326#track-your-cluster-license-usage-via-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In an upcoming release, we will also provide cluster billing metrics that allow you to define alerts in the self-monitoring environment when your license units are running low. Stay tuned!&lt;/P&gt;
&lt;P&gt;We will also provide a dashboard for tracking the cluster license usage. See this preview:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-11-06 at 11.15.24.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30827i1766DD9582F4E9A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-11-06 at 11.15.24.png" alt="Screenshot 2025-11-06 at 11.15.24.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 06 Nov 2025 10:16:18 GMT</pubDate>
    <dc:creator>_Alexander_</dc:creator>
    <dc:date>2025-11-06T10:16:18Z</dc:date>
    <item>
      <title>Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286827#M4435</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We are using a Dynatrace Managed environment and would like to automatically raise a problem when license consumption (for example, DDUs) is close to being exhausted.&lt;/P&gt;
&lt;P&gt;I checked the available metrics but couldn’t find anything like ddu.used or hostunits.used. I did see some metrics such as billing.ddu.log.total, but for DDUs there are also &lt;STRONG&gt;metrics and traces&lt;/STRONG&gt; that need to be considered in the calculation, not just logs.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Is there a way to monitor the overall license consumption across all DDU categories?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Can we set up alerting or problem generation for approaching license limits in Dynatrace Managed?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If there are no direct metrics, what would be the recommended approach to achieve this?&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Any advice or best practices would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards, Deni&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 06:41:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286827#M4435</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-09-29T06:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286844#M4436</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Managed is more limited about that.&lt;/P&gt;&lt;P&gt;For DDU categories, you can try &lt;A title="this dashboard" href="https://guu84124.apps.dynatrace.com/ui/apps/dynatrace.classic.dashboards/#dashboard;gtf=-7d%20to%20now;gf=all;id=19cb7251-2105-4331-bd70-102bce8749fd" target="_blank" rel="noopener"&gt;this dashboard&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I do not know any way to alert automatically in Managed about that. I would say review before dashboard to checking trend, and compare to limit your license has.-&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 16:48:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286844#M4436</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-09-25T16:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286861#M4437</link>
      <description>&lt;P&gt;For these purposes we developed an Extension 2.0 which creates metrics per Dynatrace environment and you can then alert using Metric events. It scrapes the Cluster API and writes metrics.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 21:22:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286861#M4437</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-09-25T21:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286885#M4438</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;If I understand correct you suggest to create a custom extension which calls API to collect the license information and the sent a custom event via v2/events/ingest?&lt;/P&gt;&lt;P&gt;I searched in the swagger but can't find API to get licenses - I see only v1/config/clusterid&amp;nbsp; and v1/clusterversion nothing more in v1, v2 and config APIs connected to cluster or license.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 10:06:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286885#M4438</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-09-26T10:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286889#M4439</link>
      <description>&lt;P&gt;In managed you should know from your license the amount of DDUs you have (i.e. a fixed number)&lt;/P&gt;&lt;P&gt;What you can do is have a metric event to alert on this, but keep in mind this will be per environment.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;((builtin:billing.ddu.metrics.total:splitBy():sum:default(0):fold(sum))
+
(builtin:billing.ddu.log.total:splitBy():sum:default(0):fold(sum))
+
(builtin:billing.ddu.serverless.total:splitBy():sum:default(0):fold(sum))
+
(builtin:billing.ddu.events.total:splitBy():sum:default(0):fold(sum))
+
(builtin:billing.ddu.traces.total:splitBy():sum:default(0):fold(sum)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;That will give you the total amount used.&lt;/P&gt;&lt;P&gt;Let's say your total available is 1M, so put as a static threshold in the metric event with something like 800k.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With an extension, script or synthetic-test you could extract this information for the whole cluster from this API&amp;nbsp;&lt;A href="https://docs.dynatrace.com/managed/shortlink/api-cluster-get-license-consumption" target="_blank"&gt;https://docs.dynatrace.com/managed/shortlink/api-cluster-get-license-consumption&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also maybe something to have a look at are DDU pools, where you can assign a specific env a limit of DDUs allowed to be consumed.&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/davis-data-units#ddu-pools" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/davis-data-units#ddu-pools&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 10:42:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286889#M4439</guid>
      <dc:creator>mark_bley</dc:creator>
      <dc:date>2025-09-26T10:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286903#M4440</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;&amp;nbsp; -&amp;nbsp;&lt;A href="https://docs.dynatrace.com/managed/shortlink/api-cluster-environments-list-existing" target="_blank"&gt;https://docs.dynatrace.com/managed/shortlink/api-cluster-environments-list-existing&lt;/A&gt;&lt;BR /&gt;This includes consumption data (Classic licensing per environment).&lt;BR /&gt;&lt;BR /&gt;Mark's answer is also valid if you need it for a single environment. We had a requirement to alert on DDU consumption for two environments together, which is not possible with metrics just from a single environment.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 14:08:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/286903#M4440</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-09-26T14:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/287270#M4449</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm pasting the code which I'm using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;with requests.get(f"{DT_CLUSTER_URL}/api/cluster/v2/license/consumption", headers=headers, stream=True, verify=VERIFY_SSL) as response:
...
with inner_zip.open(json_filename) as json_file:
                with io.TextIOWrapper(json_file, encoding="utf-8") as text_file:
                    data = json.load(text_file)
                    env_entries = data.get("environmentBillingEntries", [])

                    for env in env_entries:
                        # Sum DDUs
                        for pool in env.get("davisDataUnits", []):
                            total_ddus += safe_float(pool.get("total", 0))

                        # Count hosts
                        host_usages = env.get("hostUsages", [])
                        total_hostunits += len(host_usages)

                        # Count DEMs (based on agent usages per host)
                        for host in host_usages:
                            total_dems += len(host.get("agentUsages", []))
print("Aggregated License Consumption (from license start until now):")
print(f"  Total DDUs used: {total_ddus:.2f}")
print(f"  Total DEMs used: {total_dems}")
print(f"  Total Host Units used: {total_hostunits}")
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw that there are two environments in this Managed Dynatrace Cluster. The information on the /cmc shows aggregating result for the current consumed/available licenses and that's why I'm also aggregating the results. The problem is that the results which I get completely differs from these shown in the /cmc:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggregated License Consumption (from license start until now):
  Total DDUs used: 93747.71
  Total DEMs used: 4428
  Total Host Units used: 4424&lt;/LI-CODE&gt;&lt;P&gt;but in the /cmc it is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Host Units: 15/15
DEM: 2.07k/10k
DDU: 599.51k/900k&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with that?&lt;/P&gt;&lt;P&gt;Regards, Deni&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 08:05:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/287270#M4449</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-10-03T08:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/289153#M4514</link>
      <description>&lt;P&gt;Since Dynatrace Managed version 1.326, new Cluster v2 APIs are available for retrieving host, Davis data, and DEM unit information. For details, see&amp;nbsp;&lt;A href="https://docs.dynatrace.com/managed/shortlink/release-notes-managed-sprint-326#track-your-cluster-license-usage-via-api" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/managed/shortlink/release-notes-managed-sprint-326#track-your-cluster-license-usage-via-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In an upcoming release, we will also provide cluster billing metrics that allow you to define alerts in the self-monitoring environment when your license units are running low. Stay tuned!&lt;/P&gt;
&lt;P&gt;We will also provide a dashboard for tracking the cluster license usage. See this preview:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-11-06 at 11.15.24.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30827i1766DD9582F4E9A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-11-06 at 11.15.24.png" alt="Screenshot 2025-11-06 at 11.15.24.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 10:16:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/289153#M4514</guid>
      <dc:creator>_Alexander_</dc:creator>
      <dc:date>2025-11-06T10:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/289156#M4515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4565"&gt;@_Alexander_&lt;/a&gt;&amp;nbsp;Thank you! Nice improvement!&lt;/P&gt;&lt;P&gt;Do you know if that dashboard is going to be deployed automatically or do we need to import it manually?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 12:19:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/289156#M4515</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-11-06T12:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Raise a problem when license consumption is close to limit</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/289164#M4516</link>
      <description>&lt;P&gt;It will be deployed automatically to the Local Self-Monitoring environment&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 14:49:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Raise-a-problem-when-license-consumption-is-close-to-limit/m-p/289164#M4516</guid>
      <dc:creator>_Alexander_</dc:creator>
      <dc:date>2025-11-06T14:49:43Z</dc:date>
    </item>
  </channel>
</rss>

