Monitor your web applications built in .NET Core 2.0 and above with the help of the APM Insight .NET Core agent. You can track HTTP requests, SQL queries, errors, exceptions, web API calls, and remote calls in your ASP .NET Core applications hosted in IIS or Kestrel web servers.
Install the .NET Core Agent by executing the below command:
InstallAgent.ps1 -Destination "[path]" -InstallType "[local|global]" -LicenseKey [License Key] -AppName "[application Name]" -Force
where,
Destination "[path]"→ The location where the agent will be installed. May be an absolute or relative path. Wrapping quotes are also required.
InstallType [local|global]→ Determines whether the installation will be done locally or globally. Since global install will instrument all .NET Core applications unintentionally, Local install is the recommended.
LicenseKey [licenseKey]→ The license key copied from the Application Manager APM Insight homepage.
AppName→ Optional. Sets the default application name for the agent.
Force→ Optional. Overwrites exisiting installation. We recommend backing up the existing configuration files first.
示例:
InstallAgent.ps1 -Destination "C:\.NET_Core_Agent" -InstallType "local" -LicenseKey APMI_762cf0800fd41749008b5d73115a6841d8dee7e01fc2f451500d39786b593c39
Once the installation is complete, Open the<Agent Installation Path>\DotNetAgent\apminsight.conffile in any text editor and include\update the following keys:
apm.host=[HOST]:[PORT]apm.protocol.https=[true|false]
Where,
apm.host - Host Name/IP and Port where the Applications Manager is running.
apm.protocol.https - Specify true if the data to the Applications Manager should be sent through HTTPS Protocol. If false, data will be sent through HTTP Protocol.
示例:
apm.host=app-w8-test:8443apm.protocol.https=true
Note: To Change the .NET Core application name,
Create or open theapmapplication.conf file, then add or modify the application name.
application.name="[Your Application Name]"
Changing the application name only creates a new host whereas the previous host does not get deleted.
它允许我们跟踪关键指标,如响应时间、资源利用率、错误率和交易性能。实时监控告警会及时通知我们任何问题或异常,使我们能够立即采取行动。
审稿人角色:研究与开发

Lexmark技术支持经理