Application Insights is an extension of Azure Monitor and provides application performance monitoring (APM) features. APM tools are useful to monitor applications from development, through test, and into production in the following ways:
-
Proactively understand how an application is performing.
-
Reactively review application execution data to determine the cause of an incident.
Application Insights with D365FO
“Monitoring and Telemetry” feature
Introduced as a feature in D365FO with service update 10.0.30, called “Monitoring and Telemetry”, when enabled it provides a direct, point-to-point integration between a finance and operations app and the target Application Insights instance.
Enabling the “Monitoring and Telemetry” feature in D365FO requires administrator privileges, so if you don’t have a System Administrator role, please contact your administrators:
D365FO Setup for Application Insights integration
Once you have the feature enabled, a new menu will be available under System Administration -> Setup , called Monitoring and Telemetry parameters:
In this form, you can specify the parameters, environments and Application Insights instance.
Types of telemetry that can be enabled and sent to Application Insights are:
-
Custom metrics
-
Form runs (Page views)
-
User sessions
-
X++ exceptions (failures)
-
Custom traces
-
Warehouse events
After you have specified the setup parameters in D365FO, you can login to your Application Insights instance in the Azure portal and start querying the data that has been logged from D365FO.
Application Insights uses the Kusto query language, which uses slightly different syntax than the one we know from SQL.
The following screen explains the overview of Application Insights data:
Further extensions and customizations of Application Insights
Since the solution for App Insights is running in cloud, there is a possibility to extend the solution so we can log custom data and events, using some Microsoft .NET libraries for Application Insights.
Also, there is a possibility of automatic alerts which can be sent when some conditions are met, e.g., when an exception in the ledger posting occurred.
Please feel free to contact us if you have any questions or concerns regarding this matter.