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

Custom metrics; spring actuator; micrometer

christophe_van_
Newcomer

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.

 

9 REPLIES 9

Julius_Loman
DynaMight Legend
DynaMight Legend

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?


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

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.


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.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

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


Regards, Sebastian

greg_uctum
Newcomer

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?


Does this throw any other exception or error? The issue is related to micrometer, not to Dynatrace itself.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

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


sonja
Inactive

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

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)

Featured Posts