Skip to content

How to use same instance of Prometheus default registry in agent as well as in application #6912

Answered by laurit
srinusanduri asked this question in Q&A
Discussion options

You must be logged in to vote

AgentClassLoader uses child first delegation, if a class is present in inst it will be loaded by agent class loader regardless of whether bootstrap loader can also load it. This exception means that you have probably packaged prometheus classes in agent in inst directory (loaded by agent class loader) and also at the root of the jar (loaded by bootstrap loader). Check you agent jar and remove the prometheus classes from inst.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@srinusanduri
Comment options

Answer selected by srinusanduri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants