# Dynatrace Managed Cluster API or Self Monitoring Metric to expose used & quotas set for HU/DEM/DDUs/...

**URL:** <https://community.dynatrace.com/t/dynatrace-managed-cluster-api-or-self-monitoring-metric-to-expose-used-quotas-set-for-hu-dem-ddus/49114>\
**Category:** Dynatrace Managed\
**Tags:** cluster-management-console, self-monitoring, licensing\
**Created:** [November 28, 2024, 3:06pm UTC](https://community.dynatrace.com/t/dynatrace-managed-cluster-api-or-self-monitoring-metric-to-expose-used-quotas-set-for-hu-dem-ddus/49114 "2024-11-28T15:06:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrik\_steuer](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@patrik\_steuer](https://community.dynatrace.com/u/patrik_steuer)\
**Post date:** [November 28, 2024, 3:06pm UTC](https://community.dynatrace.com/t/dynatrace-managed-cluster-api-or-self-monitoring-metric-to-expose-used-quotas-set-for-hu-dem-ddus/49114/1 "2024-11-28T15:06:23Z")

</div>

We need to be able to monitor consumed host unit/DEM/DDU licenses. Currently, Dynatrace only provides an API for UI users which provides these values (/rest/clustermanagement/license).

So we would like to be able to create alerts whenever we consume 90% of the assigned licenses.

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [November 29, 2024, 7:29am UTC](https://community.dynatrace.com/t/dynatrace-managed-cluster-api-or-self-monitoring-metric-to-expose-used-quotas-set-for-hu-dem-ddus/49114/2 "2024-11-29T07:29:41Z")

</div>

Hi Patrik,

For creating alerting, you can use the following metrics:

- To control HU:&nbsp;dsfm:billing.hostunit.connected
- To control DEMs:&nbsp; &nbsp; &nbsp;builtin:billing.apps.web.sessionsWithReplayByApplication (DEMs for usersessions with session replay), builtin:billing.apps.web.sessionsWithoutReplayByApplication&nbsp;(DEMs for usersessions without session replay), builtin:billing.apps.web.userActionPropertiesByApplication&nbsp;(DEMs with useractions properties) and builtin:billing.synthetic.actions (DEM for synthetic)
- To control DDUs:&nbsp;builtin:billing.ddu.serverless.total (for Serverless), builtin:billing.ddu.metrics.total: (for custom metrics), builtin:billing.ddu.log.total (for logs), and builtin:billing.ddu.events.total (for events).

Hope it helps.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![patrik\_steuer](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@patrik\_steuer](https://community.dynatrace.com/u/patrik_steuer)\
**Post date:** [December 2, 2024, 1:42pm UTC](https://community.dynatrace.com/t/dynatrace-managed-cluster-api-or-self-monitoring-metric-to-expose-used-quotas-set-for-hu-dem-ddus/49114/3 "2024-12-02T13:42:11Z")

</div>

Hi Elena,

- To control HU:&nbsp;dsfm:billing.hostunit.connected
  - Query in local self-monitoring environment: dsfm:billing.hostunit.connected:splitBy(“dt.tenant.uuid”):max:splitBy():sum
  - This does not show how many host units are licensed within the cluster. So, an alert needs manual maintenance and must be adopted with each license change.

- On DEMs:
  - These are environment specific metrics, so a cluster-wide alert is not possible.

- On DDU:
  - These are environment-specific metrics, so a cluster-wide alert is not possible.
  - DDU consumption is reported per reporting interval, e.g. 1 minute.
  - Licensing is based on consumption over time. E.g. since the setup of the cluster. Such an aggregated alerting capability is not provided by Dynatrace.

So, I can agree with you that alerting on HU is theoretically possible, even if it is not comfortable. It is not possible for the others.
