Closed naveenbm closed 4 years ago
Hi!
What's the exact problem you're trying to solve?
Because this library is meant for us (Dynatrace) to be used in go-based buildpacks to avoid a lot of code-duplication there. It kinds sounds like you're trying to use it to build a service broker with it.
Regarding item 1:
The service name we look for is not hardcoded to be exactly dynatrace
, we just look for a service that has dynatrace
in the name: https://github.com/Dynatrace/libbuildpack-dynatrace/blob/master/hook.go#L198
This is also a requirement we mention in our official documentation:
https://www.dynatrace.com/support/help/technology-support/cloud-platforms/cloud-foundry/installation-and-operation/application-only/deploy-oneagent-on-pivotal-web-services-for-application-only-monitoring/#expand-1354option-1-create-a-user-provided-service
We will definitly not change that, because we have to match for something.
Regarding item 2: I'm not sure i fully understood the problem here. Do you want the property names for the credentials to be customizable? If yes, how would we then find what we need to configure our agent?
Maybe a short explanation of how our buildpack integrations roughly work helps a bit here:
dynatrace
in it (This can be dynatrace-service
, dynatrace-whatever
, dynatrace-foobar
.... you get the idea)@naveenbm Any updates from your side on this issue?
Closing this, since there wasn't any feedback on this anymore.
We are noticing a couple of issues when trying to get Dynatrace Oneagent working for non-java buildpacks
Some background - We have a common APM service broker which handles service creation for different APM tools (Dynatrace-AppMon, Dynatrace-Oneagent, AppD, etc) and sets the right VCAP variables based on the configurations.
To distinguish the two variants of the Dynatrace service - we use different names (oneagent is used as service.Name for Dynatrace_Oneagent). This hardcoding in the libbuildpack-dynatrace causes DT oneagent support to fail out of the box.
Please let me know if any other details are needed.