• EnglishEspañol日本語한국어Português
  • Log inStart now

Set proxy settings and properties for scripted monitors

Read on to learn about synthetic monitoring's proxy settings and properties.

Proxy settings API for scripted monitors


You can set proxy server configuration for synthetic scripted monitors for monitor versions 0.4.0 or higher.

The global object $network allows you to control the network configuration used by your synthetic scripted monitors. The following are applicable for both scripted browsers and API tests, unless otherwise stated.

Proxy properties


This proxy information applies only to these versions:

  • API monitors: 0.4.0, 0.2.2, 0.2.1, 0.1.0
  • Scripted monitors: 0.1.0

In order to analyze and collect your HTTP traffic metrics, New Relic must ensure the traffic passes through a conceptual funnel. Our synthetic monitoring includes a software funnel component capable of analyzing the HTTP requests or responses and then recording the information.

  • New Relic's scripted browser monitors (versions 0.4.x and lower) include a mechanism to do this analysis without needing an HTTP proxy, so you don't have to configure anything.
  • New Relic's API test (versions 0.4.x and lower) provides an $http object that is pre-configured to make the requests pass through the internal HTTP proxy. This allows you to write your test without including any proxy settings.

If you want to use some other way to generate HTTP traffic while still collecting the HTTP traffic metrics, you can use $env.PROXY_HOST and $env.PROXY_PORT. To record traffic metrics, be sure to include these properties in your script.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.