Enabling Application Insights on a SOLR App Service
January 3, 2022
I had issues configuring Application Insights on a SOLR App Service until I followed these articles:
- How to setup Application Insights for a Solr service hosted on Azure PaaS
- Azure Monitor Application Insights Java - Azure Monitor
Instead of enabling Application Insights from Azure Portal, I did the following:
- The Application Insights Java agent was downloaded from Microsoft (see link above)
- A new applicationinsights.json file was created with the appropriate key and role name
- This json file and the agent were added to the dist folder on the SOLR service
-
The /bin/solr.cmd file was updated on line 917 with the following:
set SOLR_OPTS=%SOLR_OPTS% -javaagent:"%SOLR_TIP%\dist\applicationinsights-agent-3.2.7.jar" - The app service was restarted