I want to use a Java Agent to collect metrics, manually implement custom metrics, and have Prometheus scrape them. #12801
Unanswered
shinozakisatoshi11
asked this question in
Q&A
Replies: 1 comment 3 replies
-
when using agent use
currently we don't provide such annotations for recording metrics |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am Japanese, so please excuse my limited English.
As mentioned in the title, I want to achieve this. However, since Prometheus uses a pull model, it resulted in having two servers. I've tried various approaches to avoid this, but I was unsuccessful. I apologize for my limited knowledge of Java agents, but is there a way to use this configuration or something similar within the application?
Things I have tried:
Attempted to obtain the Java agent provider (exporter).
In javaagent, there are some traces that can be annotated (@withspan) to affect the agent, but no metrics?
Beta Was this translation helpful? Give feedback.
All reactions