# micrometer metrics with dynatrace not showing on Dynatrace

**URL:** <https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422>\
**Category:** Automations\
**Tags:** integrations, dynatrace-managed\
**Created:** [March 8, 2022, 11:18pm UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422 "2022-03-08T23:18:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krithikaselvapa](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Krithikaselvapa](https://community.dynatrace.com/u/Krithikaselvapa)\
**Post date:** [March 8, 2022, 11:18pm UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/1 "2022-03-08T23:18:40Z")

</div>

Hi all,

Im wokring on integrating micrometer with dynatrace minoring for app metrics, I see some metrics from mcirometer registry.(simple registry). im facing some issue while getting the data to Dyna UI.

see that the API returned 202 when called api/metrics/ingest 9v2) api.api logs for the same exporter v2 is missing from app logs. how do I go about troubleshooting this ? would appreciate the help..

this is the config used for app:

```auto
management.metrics.export.dynatrace:
  # Required only if not using the OneAgent endpoint
  # For SaaS: https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/ingest
  # For managed deployments: https://{your-domain}/e/{your-environment-id}/api/v2/metrics/ingest
  uri: <URI>

  # should be read from a secure source
  api-token: <API-Token>

  # These properties can only be used with the v2 exporter.
  v2:
    # Sets a prefix that is prepended to each exported metric key.
    metric-key-prefix: scmtesting1

    # If set to true and a local OneAgent or operator is running, retrieves metadata
    # and adds it as additional dimensions to all data points (default: true)
    enrich-with-dynatrace-metadata: true

    # Sets an arbitrary number of key-value pairs as default dimensions.
    # Micrometer tags will overwrite these dimensions, if they have the same key.
    # Each exported metric will contain these dimensions.
    default-dimensions:
      stack: "anscdev2"

    # The export interval in which metrics are sent to Dynatrace (default: 60s).
    step: 60s

```

thanks,

Krithika S

---

<div class="post-metadata">

**Author:** ![sonja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sonja/32/10349_2.png) [@sonja](https://community.dynatrace.com/u/sonja)\
**Post date:** [March 9, 2022, 10:04am UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/2 "2022-03-09T10:04:49Z")

</div>

Hello&nbsp;Krithika!

are you trying to export Micrometer metrics to Dynatrace? you mention you see some metrics - where do you see them? are you missing any?

in case you are not seeing any metrics in Dynatrace, you could check if you have included the Gradle or maven decencies in your application:

 ![sonja_0-1646820585752.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/a/7ad017f654b06803755a7e3b09400541760f81b9.png)

From the documentation:&nbsp;[Send Micrometer metrics to Dynatrace — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods/micrometer#expand--maven--2)

This integration is only for exporting metrics. Are you looking into exporting logs to Dynatrace as well?  
Feel free to share more details about what you are trying to achieve.

Sonja

P.S: for security purposes, I have removed the URL and token from the configuration file. They both looked ok to me.

---

<div class="post-metadata">

**Author:** ![Krithikaselvapa](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Krithikaselvapa](https://community.dynatrace.com/u/Krithikaselvapa)\
**Post date:** [March 9, 2022, 3:24pm UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/3 "2022-03-09T15:24:24Z")

</div>

Hi, Gm.

yes im exporting micrometer metric to dynatrace .yes I have dependency to latest 1.8.3 in my app.metrics are exported with registry. but I dont see the logging of any api error or reply in app logs. it remains silent. Nor does it appear in dyna UI , so its not exported as of now. how could I go about troubleshooting this..

---

<div class="post-metadata">

**Author:** ![Krithikaselvapa](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Krithikaselvapa](https://community.dynatrace.com/u/Krithikaselvapa)\
**Post date:** [March 9, 2022, 5:11pm UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/4 "2022-03-09T17:11:48Z")

</div>

im mostly trying to achieve the metrics integration only not for logs for now. the logs I spoke where from the app side logs for debugging purposes.

---

<div class="post-metadata">

**Author:** ![sonja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sonja/32/10349_2.png) [@sonja](https://community.dynatrace.com/u/sonja)\
**Post date:** [March 10, 2022, 10:36am UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/5 "2022-03-10T10:36:19Z")

</div>

Have you already tried to change the log level (see [Send Micrometer metrics to Dynatrace — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/micrometer-metrics-ingest#troubleshooting-with-logs))

```auto
logging.level.io.micrometer.dynatrace: DEBUG

```

If you have tried and are not getting any additional information, I would recommend opening a support ticket for our team to have a closer look.

Sonja

---

<div class="post-metadata">

**Author:** ![Krithikaselvapa](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Krithikaselvapa](https://community.dynatrace.com/u/Krithikaselvapa)\
**Post date:** [March 10, 2022, 11:37pm UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/6 "2022-03-10T23:37:16Z")

</div>

ok sure. I did.

```auto
jdbc.connections.active,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856,name=directory,dt.entity.host=HOST-656FD45094DD7463 gauge,0.0 1646953620009
jvm.memory.max,area=heap,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856,id=G1\ Old\ Gen,dt.entity.host=HOST-656FD45094DD7463 gauge,8.05306368E8 1646953620009
system.cpu.count,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856,dt.entity.host=HOST-656FD45094DD7463 gauge,32.0 1646953620009
http.server.requests,exception=None,method=GET,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856,uri=/persistence/directory/listReviewTypeCodeGroups,outcome=SUCCESS,status=200,dt.entity.host=HOST-656FD45094DD7463 gauge,min=204.459227,max=204.459227,sum=204.459227,count=1 1646953620010
jdbc.connections.idle,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856,name=community,dt.entity.host=HOST-656FD45094DD7463 gauge,1.0 1646953620010
hikaricp.connections,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856,pool=HANA_BUYER2,dt.entity.host=HOST-656FD45094DD7463 gauge,1.0 1646953620010

```

now I dont see my custom metrics to the logs only system metrics are coming up. so how should I publish the custom micro meter metric to dynaexporter v2 ? are you guys doing it automatically or need I do something.. with statsd to dynatrace ?

---

<div class="post-metadata">

**Author:** ![Krithikaselvapa](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Krithikaselvapa](https://community.dynatrace.com/u/Krithikaselvapa)\
**Post date:** [March 11, 2022, 10:35pm UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/7 "2022-03-11T22:35:09Z")

</div>

Hi all,

thanks for helping me triage the work on Dynatrace integration. I was able to integrate with debug logs to see where the registry mismatch was there. actually for prod system I had to use dynatrace meter registry and not simple meter registry which does the job.. thanks.

---

<div class="post-metadata">

**Author:** ![sonja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sonja/32/10349_2.png) [@sonja](https://community.dynatrace.com/u/sonja)\
**Post date:** [March 14, 2022, 6:57am UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/8 "2022-03-14T06:57:39Z")

</div>

great news! thanks for letting me know you were able to find the issue.

---

<div class="post-metadata">

**Author:** ![amitkumar4](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@amitkumar4](https://community.dynatrace.com/u/amitkumar4)\
**Post date:** [May 4, 2026, 3:49pm UTC](https://community.dynatrace.com/t/micrometer-metrics-with-dynatrace-not-showing-on-dynatrace/34422/9 "2026-05-04T15:49:07Z")

</div>

Hi&nbsp;[@sonja](https://community.dynatrace.com/user/1281)&nbsp;, i am exporting Dynatrace metrics in a similar way, but facing an issue while querying the count over a period of time for a metric of type Timer, which is exported as a gauge by micrometer-dynatrace-registry.  
It will be of great help, if you can look into the following ticket -&nbsp;  
[https://community.dynatrace.com/t5/Open-Q-A/Unable-to-query-on-a-micrometer-timer-metric-with-respect-to/td-p/298939](https://community.dynatrace.com/topic/298939)
