-
Notifications
You must be signed in to change notification settings - Fork 19
App running with both Java Agent and Micrometer registry shows duplicate entity #106
Comments
I'm noticing the same issue, any interim workaround available ? |
NerdGraph returns this info about the entities with the same name (in case this helps):
|
Ok, so this is a bit of a drag and, frankly, this is probably a shortcoming that we should work on fixing/addressing. In the meantime, however, I think there may be a workaround. This involves getting the
I know that's a lot of hand waiving around #3, but I haven't had a chance to try doing that yet. If you can get it wired up that way as a workaround, please let us know, and please keep in mind that this is NOT the long-term expected solution. Also, this will not impact data that has already been ingested with the other entity, but should apply to newly ingested data going forward. We should provide something more useful. Thanks again for working with us on this. |
A better approach might be to poll JMX for the linking metadata mbean that can be exposed by the agent (although that also requires agent configuration). |
There is an example of setting up the |
Hi @georgej-github , any luck in trying the workaround @breedx-nr suggested? I know it is not ideal 😞 If you have a moment, please let us know if it worked. Thank you! |
Hi @XiXiaPdx , unfortunately not, at this point we're going with the Micrometer NewRelic registry so we can integrate with the NR Java agent as we already use it in our environments. Does the roadmap for NewRelic's registry intend to support the features that Micrometer's registry currently provides, including NR agent integration ? |
@georgej-github Ah, I see. I'm glad you found a solution around this issue. I'm curious what features in the Micrometer NewRelic registry (just to be clear, you are referring to this registry?) you would like the NewRelic registry to support? Or to ask in another way, what problems do our NewRelic registry not solve for you right now? Your use case will help our internal product manager understand this issue better. I have a general understanding of the Micrometer one. It either takes a NR insights api key to send events or if the NR Agent is installed, it delegates to the NR agent to send custom events, which very likely get sampled, and you don't need the insights api key. Thank you for responding and helping us improve our offering! |
Hi team, I've also run into this issue. I've tried the workaround mentioned above (i.e. Are there any other potential workarounds, or will this be just pending a fix? |
I would also prefer a workaround instead of switching to micrometers-new-relic libraries. I would appreciate any help for providing a working example |
Today I was informed by @XiXiaPdx that the telemetry-sdk supports the license key (have a look at: newrelic/newrelic-telemetry-sdk-java#257). The micrometer-registry-newrelic must now be aligned with that new feature of the SDK in order to get rid of the duplicate entity, right? |
@rfelgent micrometer-registry-newrelic will need to be updated before it will accept a license key. That issue is being tracked here #126 |
thank you very much for the link @XiXiaPdx. one more question: would the support for license key also solve this issue. As far as I unerstand - yes?! |
Hi @XiXiaPdx, apologies for the late response, |
@dhiren-mudgil-olx thank you for bringing this issue to our attention. Unfortunately, we do not have the engineering capacity to take up this issue. If any contributors would like to do some agent coding however, we would gladly review any PR(s) submitted. |
App contains both java agent and micrometer registry created duplicate entity in new relic.
Here is the code for configuring the registry
appName = comms-push-token-consumer-staging-ireland
The text was updated successfully, but these errors were encountered: