30 Apr 2019 01:26 PM - last edited on 03 Oct 2022 11:04 AM by Ana_Kuzmenchuk
Hello,
Our application landscape consists of multiple spring boot
applications. Our applications have a health page, generated by spring
actuator.
I would like to sync the health endpoints with dynatrace. In
order to generate a dynatrace problem if the health state is “DOWN”.
The framework micrometer (https://micrometer.io/docs/registry/dynatrace)
is used to send metrics to dynatrace. I was able to setup my project with
micrometer and, according to the logs, the metrics were send to dynatrace. Where
can I view these metrics in dynatrace? Is it possible to setup rules to create
a dynatrace problem?
Kind regards,
Christophe.
Solved! Go to Solution.
30 Apr 2019 01:44 PM
It looks like micrometer is posting timeseries data to custom devices in Dynatrace. Are you able to see the custom devices in your Dynatrace tenant?
Which ID did you use?
30 Apr 2019 01:51 PM
I'm not sure what you mean with custom device. I assume I don't need to add a custom device.
I used the ID of the process group that is send the metrics. For example: PROCESS_GROUP_INSTANCE-6E863D93FDD6B038, the ID I used was 6E863D93FDD6B038.
30 Apr 2019 09:41 PM
It's not possible to push metrics to arbitrary entities. Metrics can be pushed only for entities of "custom device" type. Look in the left menu in Technologies and see if you have any of those custom devices.
Looking at the code, it seems it will be named "java", unless you have configured the technologyType to a value.
01 May 2019 07:42 AM
To show custom device you should pick new id, not the existing one. In such case you will see those metrics on new custom network device. You should see it in technologies dashboard.
To have problems raised based on those metrics you need to create custom thresholds as well. As I know anomaly’s detection does not work with AI on those metrics so far.
Sebastian
05 Dec 2019 03:08 PM
Apologies if this is unrelated, but did you ever have an issue with Tomcat being unable to start after following the instructions from that link? I'm working on a Spring application that uses Tomcat. Going one step at a time, adding in the library to my build.gradle file returns an error on running the app that it needs DynaTrace configuration values added. Putting those together via yaml and the DynaTrace config class results in "org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat" so I was wondering if you ever came across this problem and what you may have done to solve it?
06 Dec 2019 08:13 AM
Does this throw any other exception or error? The issue is related to micrometer, not to Dynatrace itself.
06 Dec 2019 02:12 PM
No it does not. I know it's a micrometer issue as the library is coming from micrometer, but as this was one of the few searches I came across were someone successfully implemented it, I wanted to check and see if the previous user had had the same problem
07 Feb 2022 09:30 AM
Hello! I just wanted to let you know - and for future references - that we have published a new version of the micrometer registry for Dynatrace: https://micrometer.io/docs/registry/dynatrace, with simplified deployment and that automatically connecting your Micrometer metrics to the topology.
Documentation: https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-metho...
Sonja
10 Feb 2023 04:54 PM
Quick question, is possible to to use the ingest logs api to have spring boot actuator (spring boot 3.0 uses micrometer under the hood) to send/post logs to Dynatrance via the Log Monitoring API (https://{environmentid}.live.dynatrace.com/api/v2/logs/ingest)