apache / skywalking

APM, Application Performance Monitoring System
https://skywalking.apache.org/
Apache License 2.0
23.91k stars 6.53k forks source link

[Feature] Load default config file from classpath with Enviroment variable override #12771

Closed alievrenkut closed 1 week ago

alievrenkut commented 1 week ago

Search before asking

Description

Load default config file from classpath so that we can override it with environment variables. For example it is not possible to start agent while we already have SW_AGENT_NAME env property. This only works if we put config file next to jar file. It should work without any config file.

Use case

I want to only write -javaagent:/path/to/skywalking-agent.jar and agent picks configuration from environment variables.

Related issues

No response

Are you willing to submit a pull request to implement this on your own?

Code of Conduct