NewRelic的 - 如何忽略一个Web应用程序的一部分 [英] NewRelic - How to Ignore part of a web application

查看:112
本文介绍了NewRelic的 - 如何忽略一个Web应用程序的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想告诉给NewRelic的监测不是我的web应用程序的一个子集。比如我想排除的http:// mysite的/管理/ *所以将NewRelic的不计入我的应用程序针对这部分流量我Apdex的。

I'd like to tell NewRelic to not monitor a subset of my web application. For example I'd like to exclude http://mysite/admin/* so NewRelic won't count traffic against this portion of my app against my apdex.

类似于如何创建在谷歌Analytics(分析)过滤器的东西将是巨大的。

Something similar to how you can create filters in Google Analytics would be great.

推荐答案

您可以通过调用 IgnoreApdex New Relic的.NET代理API 。添加在您的项目中引用 NewRelic.Agent.Api.dll ,然后调用在code路径常见的方法,您的管理页面。

You can exclude a transaction from counting toward Apdex by calling IgnoreApdex in the New Relic .NET agent API. Add a reference to NewRelic.Agent.Api.dll in your project, then call that method in the code path common to your admin pages.

您还可以通过调用忽略交易完全(无Apdex的,没有反应时间等) IgnoreTransaction

You can also ignore a transaction entirely (no Apdex, no response time, etc.) by calling IgnoreTransaction.

这篇关于NewRelic的 - 如何忽略一个Web应用程序的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆