There may be scenarios where you want to change the initial app name discovered by the agent. (By default the app is named by the root directory of the app). You may also wish to have a different environment name for different apps being hosted on the same server.
The app name and environment name defined by the agent can easily be altered by setting parameters in the application’s configuration file.
For .NET Apps
Put the following section in your web.config or app.config file. This has to be placed directly in the web or app config and cannot be in a separate config file:
<appSettings> <add key="Stackify.ApiKey" value="YOUR API KEY HERE" /> <add key="Stackify.AppName" value="YOUR APP NAME" /> <add key="Stackify.Environment" value="YOUR ENVIRONMENT NAME" /> </appSettings>
The API key can be found in the Settings>Account or Settings>Billing pages of your account.
For Java Apps
Put the following section in the stackify-api.properties file and place it in the webapp classpath: