16 Mar 2022
11:20 PM
- last edited on
17 Mar 2022
01:50 AM
by
MaciejNeumann
Hello everyone.
Our customers are testing to get metrics for Spring batch systems built with AWS ECS via Micrometer. Oneagent is built into ECS. I intended to enable "HTTP metric" for the target host (ECS) according to the Dynatrace documentation, but "HTTP metric" does not exist in "Settings> General".
Is it possible to get metrics via Micrometer in AWS ECS?
Regards,
Toshimasa Shirai.
You could try pushing metric direct to cluster or active gate via API, it should work. I managed to get metrics in EC2 but not ECS, however it should work the same. This is the article I followed
I used
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.2</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
management.metrics.export.dynatrace.apiToken=<token>
management.metrics.export.dynatrace.uri=https://activegate:9999/e/<env-id>
management.metrics.export.dynatrace.deviceId=webflux-dynatrace-customer
management.metrics.export.dynatrace.enabled=true
Cheers,
Alex
Hello! please note that we have a new version of the Dynatrace registry for Micrometer - here's the documentation: https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-metho....
the main advantage with the new version is that you can correlate the metrics from Micrometer to your entities in Dynatrace.
Hello Shirai,
are you using the Dynatrace registry for Micrometer? https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-metho...
If you have a OneAgent deployed locally, the metrics will be sent through the OneAgent metrics API (the documentation link in your description). To enable it, you need to look for "Dynatrace OneAgent StatsD, Pipe, HTTP Metric API" under Settings > Monitoring > Monitored technologies in the tab "Supported technology".
I hope this helps!
Sonja
The method of using Oneagent didn't work in our environment. As you commented, we are trying to use the API to push to the Dynatrace endpoint URL. If it works as expected, I will comment here.
Hi @Shirai,
Did the solution provided by Sonja was correct, or did it not work as expected?