Sunday, 15 July 2012

c# - NewRelic ignore a single page from monitoring -



c# - NewRelic ignore a single page from monitoring -

i have site hosted on appharbor (free version), , have newrelic free add-on. setup availability monitoring go against homepage.

now, i'm getting bunch of errors because rest api page returning errors. want newrelic ignore page.

how have newrelic ignore page?

it sounds want investigate disablebrowsermonitoring() in new relic .net agent api.

if want turn off rum feature applications (app/website beingness monitored) can utilize disablebrowsermonitoring() in new relic .net agent api mentioned above. disables automatic insertion of browser monitoring scripts specific pages. currently, supported web applications, have experienced success can work static pages. add together phone call pages not wish instrument page load timing (sometimes referred real user monitoring or rum). more information, recommendations , illustration how utilize here: http://docs.newrelic.com/docs/agents/net-agent/features/net-agent-api#disable_browser.

another solution utilize browsermonitoring element kid of configuration element. browsermonitoring configures page load timing (sometimes referred real user monitoring or rum) in .net application. page load timing gives insight end users' performance experience. accomplished measuring time takes users' browsers download , render webpages injecting little amount of javascript code header , footer of each page. more information: https://docs.newrelic.com/docs/agents/net-agent/installation-configuration/net-agent-configuration#browsermon-autoinstrument

<browsermonitoring autoinstrument="true"> <attributes enabled=”true”> <exclude>myapikey.*</exclude> <include>myapikey.foo</include> </attributes> </browsermonitoring>

the config file method lets filter without having alter code. however, have careful if utilize config alternative exclude paths because you're putting regular look in there, , if complex 1 (which shouldn't be) impact performance , things that. on other hand, if utilize plain , simple regex page, pretty fast too.

i think api calls might perform improve totally subjective, , wanted give both options.

note, after alter in configuration, need perform iisreset administrator , exercise app while see changes reflected on new relic dashboard.

c# rest asp.net-web-api newrelic appharbor

No comments:

Post a Comment