The infrastructure agent has a large set of configuration settings to fine-tune its behavior. Here we:
- List all the configuration options (in both their YAML and the environment variable names).
- Explain what the settings do and when to use them.
- Give the variable type and default value (if any).
- List the minimum required agent version as applicable.
Still without a New Relic account? Sign up for free, forever.
スタートガイド
You'll be able to configure our infrastructure agent to suit your environnment after you create a New Relic account (it's free, forever) and install the infrastructure agent.
The license_key
is the only required setting.
For an example of how all these variables can be used, see our sample configuration template in GitHub.
Agent variables
Specifies the license key for your New Relic account. The agent uses this key to associate your server's metrics with your New Relic account. This setting is created as part of the standard installation process.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
例:
license_key: 1234567890abcdefghijklmnopqrstuvwxyz1234
Specifies whether Fedramp endpoints should be used.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean | false |
Specifies the number of logical processors available to the agent. Increasing this value helps to distribute the load between different cores.
If set to -1
, the agent will try to read the environment variable GOMAXPROCS
. If this variable is not set, the default value will be the total number of cores available in the host.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
|
Since version 1.0.804 or higher, data sent from the agent is compressed by default. To disable payload compression, set payload_compression_level
to 0.
重要
Recommendation: Do not change this setting.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
|
Number of times the agent will retry the request to check New Relic's platform availability at startup before throwing an error.
If set to a negative value, the agent will keep checking the connection until it succeeds.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
| 1.0.936 |
After a request has timed out, time the agent waits to retry a request to check New Relic's platform availability at startup.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
| 1.0.936 - 1.2.30 |
Time the agent waits until a request to check New Relic's platform availability at startup is considered timed out.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
| 1.0.936 |
Enables Agent's Self Instrumentation.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
|
Cloud variables
If the agent is running in a cloud instance, the agent will try to detect the cloud type and fetch basic metadata. Metrics can also be enriched with extended cloud metadata (including custom resource tags) when connecting the cloud provider account with New Relic.
Sets the number of times the agent retries to connect in case that cloud detection fails.
If cloud detection fails during the initialization of the agent, the agent will retry after waiting for CloudRetryBackOffSec
seconds.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
| 1.2.6 |
Sets the interval of time the agent will wait until discarding the metadata, in seconds. After this period metadata expires and the agent will fetch it again.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
| 1.2.6 |
Sets the interval of time the agent waits between cloud detection retries in case that cloud detection failed, in seconds.
If cloud detection fails during the initialization of the agent, it will retry for CloudMaxRetryCount
times.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
| 1.2.6 |
Similar to DisableCloudMetadata
, but it disables the collection of cloud metadata only for the host alias plugin.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
| 1.0.220 |
Disables the collection of cloud metadata.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
Docker variables
Time, in seconds, before the cached containers metadata expires and the agent needs to fetch them again.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
| 1.0.801 |
Specifies the Docker client API version.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
|
File system variables
List of the types of file systems that the agent supports. This value needs to be a subset of the default list, and items that are not in the default list will be discarded.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| []string | Linux: | 1.0.220 |
List of storage devices to be ignored by the agent when gathering StorageSample
data.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
file_devices_ignored |
| []string | 1.0.220 |
Example as a YAML attribute:
file_devices_ignored: - sda1 - sda2
Example as an environment variable:
FILE_DEVICES_IGNORED="sda1,sda2"
Hostname variables
Overrides the auto-generated hostname for reporting. This is useful when you have multiple hosts with the same name, since our infrastructure monitoring uses the hostname as the unique identifier for each host. Keep in mind this value is also used for the loopback address replacement on entity names.
For more information, see our documentation on how entity name resolution works.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 | empty | 1.0.266 |
例:
display_name: teslaOne
When true
, the full hostname is resolved by performing a reverse lookup of the host's address. Otherwise, it will be retrieved with the hostname command on Linux and from the TCP/IP parameters of the registry on Windows.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
When set, this is the value that will be reported for the full hostname; otherwise, the agent will perform the normal lookup behavior.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 | 1.0.1015 |
例:
my.custom-hostname.co.org
When set, this is the value that will be reported for the hostname; otherwise, the agent will perform the normal lookup behavior.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 | 1.0.1015 |
例:
my.custom-hostname
Installation variables
Directory where the agent stores files for cache, inventory, integrations, etc.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 | Linux: Windows: | 1.0.2 |
Directory containing the configuration files of the integrations.
Each integration has its own configuration file, named by default <integration_name>-config.yml
, placed in a predefined location from which the agent loads on initialization.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 | Linux: Windows:
| 1.0.2 |
重要
With secrets management, you can configure on-host integrations with infrastructure to use sensitive data (such as passwords) without having to write them as plain text into the integration's configuration file. For more information, see Secrets management.
Specifies a custom path to install integrations, which allows to install them outside the agent_dir
. It has priority when the agent is looking for installed integrations.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 | Empty | 1.0.2 |
Integrations variables
A list of environment variables that will be passed to all integrations. If an integration already has an existing configuration option with the same name, then the environment variable takes precedence.
Starting with infrastructure agent 1.24.1 passthrough_environment supports regex for variable names.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| []string | Empty |
Example as a YAML attribute (inside the agent's configuration file, located by default in /etc/newrelic-infra.yml
):
passthrough_environment: - HOST - PORT - NRIA_.*
Example as an environment variable:
NRIA_PASSTHROUGH_ENVIRONMENT="HOST,PORT,NRIA_.*"
For Windows hosts: PATHEXT
is an MS Windows environment variable. The function is to determine which file extensions mark files that are executable from every command line. This will resolve any errors reporting '... is not recognized as the name of a cmdlet, function, script file..." for common Flex integrations:
passthrough_environment: - PATHEXT
The agent enables loopback-address replacement on the entity name (and therefore key) automatically for version 3 of the integration protocol. If you are using version 2 of the protocol and want this behavior, enable the entityname_integrations_v2_update
option.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
| 1.2.15 |
By setting this configuration parameter to true
the agent will open an HTTP port (by default, 8001
) to receive data from the New Relic StatsD backend.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
By setting this value, the agent will start listening on the HTTPServerPort
to receive data from the New Relic StatsD backend.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
|
Sets the port for the http server to receive data from the New Relic StatsD backend.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
|
Starts the process of deleting entities that haven't reported information during this interval.
Valid time units: s
(seconds), m
(minutes), and h
(hour).
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
|
例:
1h
Inventory variables
If the cached inventory becomes older than this value (for example, because the agent is offline), the agent automatically removes and recreates the delta store.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
|
The list of inventory paths ignored by the agent.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| string[] | Empty list |
Example as a YAML attribute:
ignored_inventory: - files/config/stuff.bar - files/config/stuff.foo
Example as an environment variable:
NRIA_IGNORED_INVENTORY="files/config/stuff.bar,files/config/stuff.foo"
Linux variables
Location on Linux where the pid
file of the agent process is created. It is used at startup to ensure that no other instances of the agent are running.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
| 1.0.2 |
When true, formulation of the host virtual memory considers SReclaimable
as available memory; otherwise SReclaimable
will be considered part of the used memory.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
変数のロギング
Log is a key-value map usted to configure the Infrastructure agent logger. Example as a YAML attribute:
log: file: '/var/log/newrelic-infra/newrelic-infra.log' level: debug forward: true stdout: false
Example as an environment variable:
NRIA_LOG_FILE='/var/log/newrelic-infra/newrelic-infra.log'NRIA_LOG_LEVEL='smart'NRIA_LOG_FORWARD='false'NRIA_LOG_STDOUT='true'
Defines the file path for the logs.
The default installation creates a log directory and it sets this filepath value in the file
configuration option for you. This log directory is different for each OS, as shown below.
Change this configuration option to customize the file path for the logs.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 | See below* |
Default paths:
Linux: If not defined, it logs only in the standard output.
Windows, agent version 1.0.944 or higher:
C:\%ProgramData%\New Relic\newrelic-infra\newrelic-infra.logIf the directory can't be created:
C:\Program Files\New Relic\newrelic-infra\newrelic-infra.log
Defines the log level. Available values:
info
: Displays log messages of level error, warn and info.smart
: Enables the smart verbose mode. Smart verbose mode logs the lastsmart_level_entry_limit
debug messages when an error is logged.debug
: Displays log messages of level error, warn, info and debug.trace
: All log messages will be shown.重要
Trace level logging can generate a lot of data very quickly. Run the agent in trace mode only for as long as necessary to reproduce your issue, then set
level: info
and restart your agent to disable verbose logging. Alternatively, you can setlevel
:smart
, which will enable smart verbose mode.YML option name
Environment variable
タイプ
デフォルト
Version
level
NRIA_LOG_LEVEL
文字列
Not set
Defines the log output format. Available values:
text
: Plain text output, one line per log entry.json
: JSON-formatted output, one line per log entry.YML option name
Environment variable
タイプ
デフォルト
Version
format
NRIA_LOG_FORMAT
文字列
text
Enables forwarding the agent logs to New Relic's Logs UI. To disable it, set this configuration option to false
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
By default all logs are displayed in both standard output and a log file. To disable logs in the standard output, set this configuration option to false
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
smart_level_entry_limit
refers to the number of previous debug messages that will be logged when an error is logged. For example, if the limit is set to 5
, debug logs will be cached in memory until an error is logged, at which point the previous 5 debug messages will also be logged
重要
This configuration option is only used when level
is set to smart
(Smart Level enabled).
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 整数 |
|
Metrics variables
Custom attributes are key-value pairs (similar to tags in other tools) used to annotate the data from the Infrastructure agent. You can use this metadata to build filter sets, group your results, and annotate your data. For example, you might indicate a machine's environment (staging or production), the service a machine hosts (login service, for example), or the team responsible for that machine.
ヒント
The agent collects many details about your environment as part of its default attributes, including Amazon Elastic Compute Cloud (Amazon EC2) tags.
YML option name | Environment variable | タイプ |
---|---|---|
|
| map[string]interface{} |
Use a list of custom attributes to annotate the data from this agent instance. Separate keys and values with colons :
, as in KEY: VALUE
, and separate each key-value pair with a line break. Keys can be any valid YAML except slashes /
. Values can be any YAML string, including spaces.
Example as a YAML attribute:
custom_attributes: environment: production service: login service team: alpha-team
Example as an environment variable:
NRIA_CUSTOM_ATTRIBUTES='{"customAttribute_1":"SOME_ATTRIBUTE","customAttribute_2": "SOME_ATTRIBUTE_2"}'
NRQL example filtering by custom attribute:
FROM SystemSample SELECT * WHERE environment = 'production'
重要
Requires infrastructure agent version 1.12.0 or higher. Accounts created before July 20, 2020 and/or infrastructure agents installed using the new Guided Install have this variable enabled by default.
Enables the sending of process metrics to New Relic.
By default, the infrastructure agent doesn't send data about the operating system's processes. The agent still collects such data, unless metrics_process_sample_rate
is set to -1
.
To report metric data about all the operating system's processes, set enable_process_metrics
to true
. To disable, set to false
.
Sending all process data could increase the volume of data sent to New Relic. To fine-tune which processes you want to monitor, configure include_matching_metrics
.
By default, processes using low memory are excluded from being sampled. For more information, see disable-zero-mem-process-filter.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
重要
Currently, this setting only applies to an operating system's processes metrics.
You can control how much data is sent to New Relic by configuring include_matching_metrics
, which allows you to restrict the transmission of metric data based on the values of metric attributes.
You include metric data by defining literal or partial values for any of the attributes of the metric. For example, you can choose to send the host.process.cpuPercent
of all processes whose process.name
match the ^java
regular expression.
In this example, we include process metrics using executable files and names:
include_matching_metrics: # You can combine attributes from different metrics process.name: - regex “^java” # Include all processes starting with "java" process.executable: - “/usr/bin/python2” # Include the Python 2.x executable - regex “\\System32\\svchost” # Include all svchost executables
If you need to include command line arguments in any of the values, set strip_command_line
to false (the infrastructure agents removes CLI arguments by default to prevent secrets from leaking).
To configure include_matching_metrics
as an environment variable for the Kubernetes integration, add it in the manifest inside the env:
object:
env: - name: NRIA_INCLUDE_MATCHING_METRICS value: | process.name: - regex "^java" process.executable: - "/usr/bin/python2" - regex "\\System32\\svchost"
デフォルト
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| metric.attribute: - regex "pattern" - "string" - "string-with-wildcard*" |
You can use the network interface filters configuration to hide unused or uninteresting network interfaces from the infrastructure agent. This helps reduce resource usage, work, and noise in your data.
重要
Environment variables are not supported for this configuration setting.
The configuration uses a simple pattern-matching mechanism that can look for interfaces that start with a specific sequence of letters or numbers following either pattern:
{name}[other characters]
, where you specify the name using theprefix
option[number]{name}[other characters]
, where you specify the name using theindex-1
optionNew Relic infrastructure implements a curated default list of filters, available for both Linux and Windows, that you can modify.
YML option name
Environment variable
タイプ
デフォルト
Version
network_interface_filters
not supported
map[string][]string
1.0.220
Default network interface filters for Linux:
Network interfaces that start with
dummy
,lo
,vmnet
,sit
,tun
,tap
, orveth
Network interfaces that contain
tun
ortap
The following example (added to your configuration file) overrides the default filters. This will ignore network interfaces that start with
dummy
orlo
, or containtun
preceded by a sequence of numbers, and followed by other characters:network_interface_filters:prefix:- dummy- loindex-1:- tun
Default network interface filters for Windows:
Network interfaces that start with
Loop
,isatap
, orLocal
The following example (added to your configuration file) overrides the default filters. This will ignore network interfaces that start with
Loop
:network_interface_filters:prefix:- Loop
The ZeroRSSFilter
excludes processes that are not using memory from being sampled. Disable the filter so that the agent includes these processes in the ProcessSample
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
| 1.0.832 |
Plugins variables
ヒント
You can quickly disable all the variables by setting DisableAllPlugins
to true
, and turn on only those options you need.
To disable all the plugins, set this option to true
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
Sampling period for the CloudSecurityGroups
plugin, in seconds. The minimum value is 30
. To disable it, set it to -1
.
重要
This plugin is activated only if the agent is running in an AWS instance.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Daemontools
plugin, in seconds. The minimum value is a 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Dpkg
plugin, in seconds. The minimum value is 30
. To disable it, set it to -1
. If the parameter is not explicitly set in the config file, it can be disabled by setting DisableAllPlugins
to true
.
重要
This is only activated in root
or privileged
running modes and on Debian-based distributions.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Facter
plugin, in seconds. The minimum value is 30
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the CloudSecurityGroups
plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
重要
kernel_modules_refresh_sec
is only activated in root
or privileged
running modes.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
| 1.0.755 |
Sampling period for the NetworkInterface
plugin, in seconds. The minimum value is 30
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
| 1.0.329 |
Sampling period for the Rpm
plugin, in seconds. The minimum value is 30
. To disable it, set it to -1
.
重要
rpm_interval_sec
is only activated when the agent runs in root or privileged modes for RedHat, RedHat AWS, or SUSE distributions.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the SELinux
plugin, in seconds. The minimum value is 30
. To disable it, set it to -1
. This option is ignored if SelinuxEnableSemodule
is set to false. For more information, see our troubleshooting doc on disabling the SELinux
module.
重要
SELinux
is only activated when the agent runs in root mode.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Sshd
plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
| 1.0.755 |
Sampling period for the Supervisor
plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Sysctl
plugin, in seconds. The minimum value is 30
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Systemd
plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the sysv
plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Upstart
plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Users
plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
| 1.0.755 |
Location of the supervisor socket.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
| 1.0.2 |
Sets the HOME
environment variable for Puppet's Facter. If not defined, it defaults to the current user's home directory.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
Proxy variables
For infrastructure agent version 1.3.1 or higher, the precedence of the proxy configuration settings is:
NRIA_PROXY
proxy
HTTP_PROXY
HTTPS_PROXY
Your system may have firewall rules that require the agent to use a proxy to communicate with New Relic. If so, set the proxy URL in the form https://user:password@hostname:port. It can be HTTP or HTTPS.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 | Empty |
例:
https://proxy_user:access_10@proxy_01:1080
When set to true
, the HTTPS_PROXY
and HTTP_PROXY
environment variables are ignored. This is useful when the agent needs to connect directly to the metrics collector and skip the existing system proxy.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
If the HTTPS_PROXY
option references to a proxy with self-signed certificates, this option specifies the path to the the directory where the proxy certificate is available. The certificates in the directory must end with the .pem
extension.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
If the HTTPS_PROXY
option references to a proxy with self-signed certificates, this option specifies the path to the certificate file.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| 文字列 |
If set to true
, when the proxy is configured to use an HTTPS connection, it will only work:
If the HTTPS proxy has certificates from a valid Certificate Authority.
If the
ca_bundle_file
orca_bundle_dir
configuration properties contain the HTTPS proxy certificates.YML option name
Environment variable
タイプ
デフォルト
Version
proxy_validate_certificates
NRIA_PROXY_VALIDATE_CERTIFICATES
boolean
false
1.3.0
Sends the following proxy configuration information as inventory:
HTTPS_PROXY
HTTP_PROXY
proxy ca_bundle_dir
ca_bundle_file
ignore_system_proxy
proxy_validate_certificates
YML option name
Environment variable
タイプ
デフォルト
Version
proxy_config_plugin
NRIA_PROXY_CONFIG_PLUGIN
boolean
true
1.3.0
If you are having problems with proxy configuration, see Proxy troubleshooting.
Samples variables
Sample rate of network samples, in seconds. Minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
|
Sample rate of process samples, in seconds. Minimum value is 20
. To disable process samples entirely, set metrics_process_sample_rate
to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
|
Sample rate of storage samples, in seconds. Minimum value is 5
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
|
Sample rate of system samples, in seconds. Minimum value is 5
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
|
Sample rate of NFS storage samples, in seconds. Minimum value is 5
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| integer |
|
Detailed NFS metrics. When enabled, the agent will provide a complete list of NFS metrics.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
Security variables
Get versions of policy modules installed using SEModule. If disabled, the SELinux plugin will only retrieve the status using SEStatus.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
| 1.0.864 |
When true
, the agent removes the command arguments from the commandLine
attribute of the ProcessSample
.
ヒント
This is a security measure to prevent leaking sensitive information.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
| 1.0.149 |
Windows variables
Sampling period for the Windows services plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 |
|
Sampling period for the Windows updates plugin, in seconds. The minimum value is 10
. To disable it, set it to -1
.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| int64 | 60 |
Defines the path to store data in a different path than the program files directory:
%AppDir%/data
: Used for storing the delta data%AppDir%/user_data
: External directory for user-generated JSON files%AppDir%/newrelic-infra.log
: If log file config option is not defined, then we use this directory path as default.YML option name
Environment variable
タイプ
デフォルト
Version
app_data_dir
NRIA_APP_DATA_DIR
文字列
Windows:
env(ProgramData)\New Relic\newrelic-infra
Linux:
Not applicable
Enables the Windows updates plugin, which retrieves the lists of hotfixes that are installed on the host.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
| 1.0.274 |
If true
, the agent will be forced to use Windows WMI (the agent's legacy method to grab metrics for Windows; for example, StorageSampler
) and will disable the new method (which uses the PDH library).
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
This configuration option allows to increase the newrelic-infra.exe process priority to any of the following values:
Normal
Idle
High
RealTime
BelowNormal
AboveNormal
YML option name
Environment variable
タイプ
デフォルト
Version
win_process_priority_class
NRIA_WIN_PROCESS_PRIORITY_CLASS
文字列
1.0.989
例:
Normal
Enables the Windows agent to report drives A:
and B:
when they are mapped as removable drives.
YML option name | Environment variable | タイプ | デフォルト | Version |
---|---|---|---|---|
|
| boolean |
|
次のステップ
You can also:
- Further understand the configuration of the agent.
- Create a configuration file using our template.
- See how you can manage the agent.