Open joshwand opened 7 years ago
Hi @joshwand This has been in our todo list, but kept being pushed back. Might be a good idea to look into it. Thanks for the suggestion.
(pinging #2895)
We recommend -Dpinpoint.config=$PINPOINT_CONFIG_PATH/custom_pinpoint.config
I modified the code to get the config from our cloud config repository. This is really a simple fix. The hardest part is there are no single solution for all environment.
While working out config for my application (deployed using docker to AWS ECS), having to modify the
pinpoint.config
file and redeploy the image is very cumbersome. It'd be great to be able to set the various pinpoint config properties via environment variables or java System properties, e.g.:java -Dpinpoint.profiler.include=com.mycompany.* -jar myapp.jar
.or, Spring-Boot-style:
PINPOINT_PROFILER_INCLUDE=com.mycompany.* java -jar myapp.jar
Would make tweaking configs in a cloud environment much more developer-friendly.
(incidentally there are no good docs on best practices for setting up how much to include in
profiler.include
.. I keep ending up with too much or too little)Thanks!