Showing results for 
Show  only  | Search instead for 
Did you mean: 

micrometer metrics with dynatrace not showing on Dynatrace


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: 

# Required only if not using the OneAgent endpoint
# For SaaS: https://{your-environment-id}
# 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.
# 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.
stack: "anscdev2"

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



Krithika S 


Dynatrace Champion
Dynatrace Champion

Hello 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:

From the documentation: 


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.


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

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.. 

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. 

Have you already tried to change the log level (see 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.


ok sure. I did.,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856,name=directory, 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, gauge,8.05306368E8 1646953620009
system.cpu.count,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856, 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, 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, gauge,1.0 1646953620010
hikaricp.connections,dt.metrics.source=micrometer,dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-F7386E06F851A856,pool=HANA_BUYER2, 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 ?

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. 

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