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:
<span>management.metrics.export.dynatrace</span>:<br> <span># Required only if not using the OneAgent endpoint<br></span><span> # For SaaS: https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/ingest<br></span><span> # For managed deployments: https://{your-domain}/e/{your-environment-id}/api/v2/metrics/ingest<br></span> <span>uri</span>: <URI><br><br> <span># should be read from a secure source<br></span> <span>api-token</span>: <API-Token><br><br> <span># These properties can only be used with the v2 exporter.<br></span> <span>v2</span>:<br> <span># Sets a prefix that is prepended to each exported metric key.<br></span> <span>metric-key-prefix</span>: scmtesting1<br><br> <span># If set to true and a local OneAgent or operator is running, retrieves metadata<br></span><span> # and adds it as additional dimensions to all data points (default: true)<br></span> <span>enrich-with-dynatrace-metadata</span>: true<br><br> <span># Sets an arbitrary number of key-value pairs as default dimensions.<br></span><span> # Micrometer tags will overwrite these dimensions, if they have the same key.<br></span><span> # Each exported metric will contain these dimensions.<br></span> <span>default-dimensions</span>:<br> <span>stack</span>: <span>"anscdev2"<br></span><span><br></span> <span># The export interval in which metrics are sent to Dynatrace (default: 60s).<br></span> <span>step</span>: 60s
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.
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..
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 ?
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.