MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Understanding of Newrelic agent configuration file newrelic.yml vs newrelic.config

The New Relic agent reads its configuration from the newrelic.yml or newrelic.config. New Relic APM agent configuration options allow you to control some aspects of how the agent behaves. Some of these config options are part of the basic install process.

Go agentnewrelic.Config
Java agentnewrelic.Config
DOT NET agentnewrelic.config
Node.js agentnewrelic.js
Node.js agentnewrelic.js
Python agentnewrelic.ini
Ruby agentnewrelic.yml

Newrelic Java Agent

The Java agent requires the license_key and app_name settings at startup. All the other settings are optional. The New Relic Java agent reads its configuration from the newrelic.yml file. By default the agent looks for this file in the directory that contains newrelic.jar.

You can override the config file’s location by setting the newrelic.config.file system property to a fully qualified file name.

System property

system property means, these property you can set in app runtime environment such jvm or dotnet.

Such as in tomcat catlina.bat
export JAVA_OPTS=”$JAVA_OPTS -javaagent:/var/lib/tomcat8/webapps/newrelic/newrelic.jar”
or catlina.sh
SET JAVA_OPTS=%JAVA_OPTS% -javaagent:/full/path/to/newrelic.jar
Where as -javaagent is system property. You can override the config file’s location by setting the newrelic.config.file system property to a fully qualified file name.
i.e java -Dnewrelic.config.file=/opt/tomcat/newrelic/newrelic.yml

The Newrelic configuration file such newrelic.yml file is split into stanzas corresponding to different environments:

  • Test
  • Development
  • Staging
  • Production (default)

New Relic applies settings in the common stanza to each of these environments. You can select other environments as the default by setting the newrelic.environment system property to the environment name.

Newrelic.yml with common default_settings stanza inherited by development, test, production and staging environments

General configuration settings in Java agent newrelic.yml Specification

license_key (REQUIRED)
app_name (REQUIRED)
agent_enabled
apdex_t (DEPRECATED)
appserver_port
audit_mode
ca_bundle_path
enable_auto_app_naming
enable_auto_transaction_naming
enable_custom_tracing
extensions.dir
high_security
insert_api_key
labels
max_stack_trace_lines
proxy_host
proxy_password
proxy_port
proxy_user
proxy_scheme
send_data_on_exit
send_data_on_exit_threshold
send_environment_info
send_jvm_props
ssl (DEPRECATED)
sync_startup
scala_futures_as_segments

Configuration settings precedence

Configuration settings precedence

To override any setting in the config file, use a system property override. In certain environments, environment variables can also be used to override both the config file and the system properties. The environment variables primarily exist to support Heroku.

With the Java agent,

  • server-side configuration overrides all other settings.
  • Environment variables override Java system properties.
  • Java properties override user configuration settings in your newrelic.yml file.
  • User settings in App custome override the newrelic.yml default settings.

Newrelic Configuration settings precedence Java Agent

New Relic Java agent config precedence: server-side, environment variables, Java properties, newrelic.yml, defaults

Newrelic Configuration settings precedence Go agent

New Relic Go agent config precedence: server-side configuration overrides the newrelic.Config struct

Newrelic Configuration settings precedence DOT NET Agent

.NET agent precedence: web.config/app.config, env variables, server-side, app-local then global newrelic.config

Newrelic Configuration settings precedence Node.js agent

Node.js agent config precedence: server-side, environment variables, newrelic.js, then config/default.js

Newrelic Configuration settings precedence PHP agent

New Relic PHP agent config precedence: API configuration, per-directory configuration, then .ini configuration

Newrelic Configuration settings precedence Python agent

Python agent precedence: per-request options, server-side config, agent config file, env variables, defaults

Newrelic Configuration settings precedence Ruby agent

Ruby agent config precedence: environment variables, server-side, newrelic.yml, then default config settings

Reference

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Top 10 Application Performance Monitoring (APM) Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, Application Performance Monitoring (APM) is more critical than ever as businesses and developers face increasingly complex applications that must deliver superior user experiences across…

Read More

New Relic Certified Performance Engineer – Professional (PEP) Comprehensive Guide

Overview The New Relic Certified Performance Engineer – Professional (PEP) certification is designed for experienced engineers, developers, and operations professionals who are responsible for measuring, analyzing, and…

Read More

New Relic Certified APM Practitioner – Associate (APA) Comprehensive Guide

This exam validates candidates’ knowledge of New Relic APM fundamentals, user interface and navigation, understanding insights for performance analysis, triage and troubleshooting techniques, and methods for tracking…

Read More

What is New Relic and use cases of New Relic?

What is New Relic? New Relic is a leading observability platform designed to help you monitor, analyze, and optimize your software systems. It goes beyond traditional monitoring…

Read More

Newrelic APM- Install and Configure using Tomcat & Java Agent Tutorials

Step 1 – Install JDK Step 2 – Install & Start Tomcat Step 3 – Install your apps Lets use Tomcat’s default example app only. You may…

Read More

Detailed Guide on NewRelic Troubleshooting?

roubleshooting with New Relic involves diagnosing and resolving issues related to application and infrastructure performance. While New Relic provides real-time monitoring and insights, having a structured troubleshooting…

Read More