-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could ADOT collect metrics from a Spring Boot metrics REST endpoint? #467
Comments
Yes, in principle that's doable. Can you share more details about the metrics your app exposes? Are those Prometheus metrics? |
yes that is correct. Spring basically exposes metrics in a format which prometheus can understand. It is called an actuator endpoint. More details can be found here. I tried this adot config to acheive this but it only scrapes the ecs container metrics but not my spring application metrics.
Error:
|
It appears to be the same question as on StackOverflow. |
yes. any suggestion on my problem statement? Does the config look ok to you? Thanks |
This was a note to have the conversation in one place, with all the information necessary (for example, at SO you're providing details about the compute, ECS) and here not, which makes it impossible to answer the question properly. |
Answered it on SO, closing this one. |
Thanks for answering my question on SO and sorry for the confusion. I tried your suggestion but ADOT is still unable to scrape the metrics from a custom prometheus endpoint. However it is able to scrape ecs fargate container metrics as show by you. Since i cant update SO with my latest configuration. I am attaching the config here again for your reference.
task definition:
ERROR:
Want to make it clear one more time, ADOT is able to scrape ecs container metrics and i see it in AMG. But its not able to scrape metrics from "dos/api/metrics" Spring actutaor API in our Spring boot app. And i suspect otel collector is not able to resolve "localhost" from the target in adot-config.yaml even though it is a side car container to my app container. I dont want to hardcode my ECS task ip address in the target because it can change with time. |
Hello everyone.
I have read the aws-observability, and it contains some receivers (e.g. awsecscontainermetricsreceiver , awsxrayreceiver, awscontainerinsightreceiver).
I want to collect metrics from my custom spring boot application endpoint by using OTEL collector technology , the data follow would be like
spring boot app exposes an REST API (metrics) -> OTEL receiver (e. g. ADOT receiver, Prometheus receiver)-> OTEL processor -> OTEL exporter
Eventually we want AMP to scrape this custom metrics an AMG to display the results.
The text was updated successfully, but these errors were encountered: