帮助手册

手动配置应用程序过滤器

APM Insight Agent 配置变更

  1. 进入 APM Insight .NET Agent 安装文件夹。
  2. 打开 DotNetAgent 文件夹。
  3. 打开 appfilter.conf 文件并编辑以下键:
    use.app.filters=true (default)
    use.apminsight.appnames=true (default is false)
    include.app.names={json formatted appnames}
    示例:
    include.app.names = { "Default Web Site/" : "ServerRoot", "Default Web Site/Services/wcf1" : "Service1", ... }
  4. 复制此 appfilter.conf 文件并粘贴至以下位置: 
      • Agent 数据路径:
        %SystemDrive%\\ProgramData\\DotnetAgent
      • Windows Server 2003 的 Agent 数据路径:
        %SystemDrive%\\Documents and Settings\\All Users\\Application Data\\DotNetAgent
  5. 重启 .NET Agent Windows 服务以使更改生效。

IIS Manager 变更

  1. 启动 IIS Manager。
  2. 选择 Web 应用程序。
  3. 对于 IIS 7.0 及更高版本,进入"应用程序设置"部分,添加以下键值对。这是避免应用程序名称冲突所必需的。
    key = apminsight.appname
    value = <custom application name> (Use this name in configuration file)
  4. 对于 IIS 6.0 版本,打开 web.Config 文件并按如下方式编辑 <appSettings> 部分。
    <appSettings>
    <add key="apminsight.appname" value="<custom application name>"/>
    ...
    </appSettings>
  5. 保存 web.Config 文件。
  6. 对所有需要监控的应用程序重复上述步骤。

本文档对您有帮助吗?

您愿意帮助我们改进文档吗?请告诉我们哪些方面可以做得更好。


很抱歉本文档未能让您满意。我们希望了解可以从哪些方面改进您的体验。


感谢您抽出时间分享反馈。我们将利用您的反馈来改进在线帮助资源。

短链接已复制!