Skip to content

Commit 191f2e8

Browse files
Add corresponding env vars to newrelic.ini. (#509)
Co-authored-by: Lalleh Rafeei <[email protected]>
1 parent 4690b6f commit 191f2e8

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

newrelic/newrelic.ini

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@
2525
[newrelic]
2626

2727
# You must specify the license key associated with your New
28-
# Relic account. This key binds the Python Agent's data to your
29-
# account in the New Relic service. For more information on
28+
# Relic account. This may also be set using the NEW_RELIC_LICENSE_KEY
29+
# environment variable. This key binds the Python Agent's data to
30+
# your account in the New Relic service. For more information on
3031
# storing and generating license keys, see
3132
# https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#ingest-license-key
3233
license_key = *** REPLACE ME ***
3334

3435
# The application name. Set this to be the name of your
3536
# application as you would like it to show up in New Relic UI.
37+
# You may also set this using the NEW_RELIC_APP_NAME environment variable.
3638
# The UI will then auto-map instances of your application into a
3739
# entry on your home dashboard page. You can also specify multiple
3840
# app names to group your aggregated data. For further details,
@@ -43,7 +45,8 @@ app_name = Python Application
4345
# When "true", the agent collects performance data about your
4446
# application and reports this data to the New Relic UI at
4547
# newrelic.com. This global switch is normally overridden for
46-
# each environment below.
48+
# each environment below. It may also be set using the
49+
# NEW_RELIC_MONITOR_MODE environment variable.
4750
monitor_mode = true
4851

4952
# Sets the name of a file to log agent messages to. Whatever you
@@ -53,7 +56,8 @@ monitor_mode = true
5356
# to the file. If not able to out a log file, it is also
5457
# possible to say "stderr" and output to standard error output.
5558
# This would normally result in output appearing in your web
56-
# server log.
59+
# server log. It can also be set using the NEW_RELIC_LOG
60+
# environment variable.
5761
log_file = stdout
5862

5963
# Sets the level of detail of messages sent to the log file, if
@@ -64,7 +68,8 @@ log_file = stdout
6468
# support engineers is "debug". However, this can generate a lot
6569
# of information very quickly, so it is best not to keep the
6670
# agent at this level for longer than it takes to reproduce the
67-
# problem you are experiencing.
71+
# problem you are experiencing. This may also be set using the
72+
# NEW_RELIC_LOG_LEVEL environment variable.
6873
log_level = info
6974

7075
# High Security Mode enforces certain security settings, and prevents
@@ -73,8 +78,9 @@ log_level = info
7378
# not collected and SQL can not be sent to New Relic in its raw form.
7479
# To activate High Security Mode, it must be set to 'true' in this
7580
# local .ini configuration file AND be set to 'true' in the
76-
# server-side configuration in the New Relic user interface. For
77-
# details, see
81+
# server-side configuration in the New Relic user interface. It can
82+
# also be set using the NEW_RELIC_HIGH_SECURITY environment variable.
83+
# For details, see
7884
# https://docs.newrelic.com/docs/subscriptions/high-security
7985
high_security = false
8086

@@ -90,6 +96,8 @@ high_security = false
9096
# would normally always be set as "http" which will result in the
9197
# agent then using a SSL tunnel through the HTTP proxy for end to
9298
# end encryption.
99+
# See https://docs.newrelic.com/docs/apm/agents/python-agent/configuration/python-agent-configuration/#proxy
100+
# for information on proxy configuration via environment variables.
93101
# proxy_scheme = http
94102
# proxy_host = hostname
95103
# proxy_port = 8080
@@ -182,6 +190,8 @@ thread_profiler.enabled = true
182190
# Your application deployments can be recorded through the
183191
# New Relic REST API. To use this feature provide your API key
184192
# below then use the `newrelic-admin record-deploy` command.
193+
# This can also be set using the NEW_RELIC_API_KEY
194+
# environment variable.
185195
# api_key =
186196

187197
# Distributed tracing lets you see the path that a request takes

0 commit comments

Comments
 (0)