# Getting stats from JMX vs Micrometers

**URL:** <https://community.dynatrace.com/t/getting-stats-from-jmx-vs-micrometers/44230>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, account-management\
**Created:** [February 21, 2024, 6:55pm UTC](https://community.dynatrace.com/t/getting-stats-from-jmx-vs-micrometers/44230 "2024-02-21T18:55:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenoitSigouin](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@BenoitSigouin](https://community.dynatrace.com/u/BenoitSigouin)\
**Post date:** [February 21, 2024, 6:55pm UTC](https://community.dynatrace.com/t/getting-stats-from-jmx-vs-micrometers/44230/1 "2024-02-21T18:55:19Z")

</div>

Hi all,

What is the most effective regarding complexity & overall cost(ddu) ?

- setup every single jmx stat that I want to see in dynatrace one by one
- use micrometer to push all stats for my springboot instance

regards

---

<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:** [February 21, 2024, 10:27pm UTC](https://community.dynatrace.com/t/getting-stats-from-jmx-vs-micrometers/44230/2 "2024-02-21T22:27:05Z")

</div>

Hi&nbsp;[@BenoitSigouin](https://community.dynatrace.com/user/61854),

I thnik you should try both and compare them.

Regarding DDU if you collect the jmx metrics via oneagents the DDU consumtion is deducted from included metrics of host units (so will not consume DDU check the link below). Micrometer metrics always will consume DDU.

> **[DDUs for metrics](https://docs.dynatrace.com/docs/license/classic-licensing/davis-data-units/metric-cost-calculation)**
>
> Understand how to calculate Davis data unit consumption and costs related to monitored metrics.

In one of my env. for the last24h these jmx mertics are only reported DDU not consumed DDU.

 ![Mizs_0-1708554343788.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/e/6ef987ab6714319f168369b19664a3f9cb71a732.png)

I hope it helps.

Best regards,

Mizső
