Infrastructure Agent Release Notes

Monday, July 15, 2019 - 09:30

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Changed

  • Allow enabling http-server (required for Statsd integration) to work in forwarder mode.
Thursday, July 11, 2019 - 09:30

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Added

Improved logging and troubleshooting features:

  • Logging agent config options at startup (with obfuscation of sensitive data).
  • Logging all the config options of the loaded integrations at startup (with obfuscation of sensitive data).
  • Improve log messages related to integrations.
  • Integrations health checks
  • New binary called newrelic-infra-ctl for sending notifications to the agent for:
    • Enabling verbose logs for 5 minutes
    • Integrations health check

Agent daemon notification

For notifying the agent to perform actions, the newrelic-infra-ctl command was created. It has the sole responsibility of sending a notification to the agent process that's running inside the host.

In Linux this communication happens via POSIX signals. newrelic-infra-ctl first tries to find if there is an agent process running. If it finds it, it checks if the process is running inside a Docker container. This is because signals to Docker containers are sent with the docker kill command. Once it knows the pid and the signaling method to use, it sends a SIGUSR1 signal to the agent. The agent just has to set a signal handler for when it receives a SIGUSR1.

In Windows, things are a little different. The only signals that we could send to the process were exit signals. In Windows processes communicate by sending messages to their respective windows, but you might be wondering (as I was), the agent is a daemon process so it doesn't have a window. The solution, easy, a hidden window. On startup the agent creates a hidden window, and sets a handler that listens for messages that arrive in that window. newrelic-infra-ctl finds that windows and sends messages to it.

Changed

  • Decorate samples with reportingAgent attribute and replace loopback address if found in reportingEndpoint and reportingEntityKey samples attributes.
  • Do not log config.pid_file property in the Windows agent.
Monday, July 1, 2019 - 14:30

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Changes

  • Minor internal architectural improvements. No impact expected.
Thursday, June 13, 2019 - 09:45

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Features

  • Add support for Windows 2019

Bugfixes

  • Fix temporary duplicated host entries after restarting cloud instances.
  • Fixed a bug that caused to not querying properly the cpu_name, cpu_num and total_cpu values in Windows systems with slow WMI queries.
  • Fixed issue causing the agent to not be able to run in privileged mode in some Linux versions. e.g. rhel7/8
Monday, May 27, 2019 - 09:45

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Features

  • Add support for Red Hat Enterprise Linux 8 and CentOS 8

Improvements

  • Improve log messages related to startup permissions errors.
Thursday, April 11, 2019 - 09:45

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Bug fixes

  • When the configuration variable startup_connection_retries is set to -1, the Agent will keep checking forever the connectivity at startup to avoid CrashLoopBackOff states in K8S in case of failures. 'startup_connection_retry_time' has been removed and now the Agent uses an exponential backoff algorithm.
  • Improve the exponential backoff algorithm the Agent uses when posting metrics fails due to a non 2xx request response.
  • Filter duplicated device entries in the StorageSample.
Monday, April 1, 2019 - 09:45

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Bug fixes

  • Fix post installation script for upstart.
Wednesday, March 27, 2019 - 15:00

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Changes

  • Removed libcap dependency since it's only used for privileged mode.

Bug fixes

  • Lower log level for Selinux errors.
Monday, March 25, 2019 - 15:00

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Improvements

  • Added HTTPS proxy certificate verification. You can enable it with the proxy_validate_certificates: true configuration option. When this option is set to true and you setup an HTTPS proxy with self-signed certificates, you may need to specify the certificates location with the ca_bundle_fileor ca_bundle_dir configuration options.
  • Added a Proxy Configuration Plugin that submits non-sensitive proxy configuration information as inventory. To disable it, set the proxy_config_plugin: false configuration option.
  • Warn on RPM plugin package parsing error.

Changes

  • Increased the intervals of some samplers
    • Increased ProcessSample default interval from 10 to 20
    • Increased StorageSample default interval from 5 to 20
    • Increased NetworkSample default interval from 5 to 10
  • When the configuration option startup_connection_retries is set to -1, the Agent, at startup, will keep checking forever the connectivity.
  • The configuration option startup_connection_retry_time has been removed and now the Agent uses an exponential backoff algorithm.
  • The Windows Agent does not ignore A: and B: drives anymore, as they may be mapped to actual Hard Disks. If those drives are reported because they map into a removable drive and you don't want the agent to report them, you can set the win_removable_drives: false configuration option.

Bug fixes

  • Fixed a bug that may cause some configuration options to be ignored when settting via environment variables (e.g. NRIA_IGNORE_RECLAIMABLE or NRIA_PROXY_VALIDATE_CERTIFICATES)
  • Fixed a bug in the Linux agent that prevented the agent from loading the system root certificates when the ca_bundle_dir or ca_bundle_file options were specified. This bug can't be fixed in the Windows Agent so the user will need to place in the ca_bundle_dir a copy of the New Relic certificate.
Thursday, March 14, 2019 - 10:00

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Improvements

  • Added replacement of on-host integration's remote entity-names; when a loopback address is found, it will be replaced with agent entity-name. This change will be applied in the entity key and the hostname metric field (if present), when the data comes from an integration using protocol V3. See protocol V3 documentation for further details.

Bug fixes

  • Fixed unreported processes issue caused by the inability to parse a different format of /proc//stat.
  • Fixed a problem that caused the Windows agent to submit os:"unknown".

Security updates

  • Fixed a low security issue that caused the Windows agent to periodically access C:\etc folder.
Wednesday, February 27, 2019 - 17:00

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Changes

  • Added support for defining integration arguments as environment variables in the configuration file. When defining the value of an argument in the integration configuration file with something that starts with $ (for example hostname: $HOSTNAME) the agent will try to expand the environment variable.
  • Added internal configuration options for use in Kubernetes.
Monday, February 25, 2019 - 11:00

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Changes

  • Creation of nri-agent only when environment variable NRIA_MODE is set to PRIVILEGED or UNPRIVILEGED.
  • Log when docker_api_version is not supported.

Bug fixes

  • Agent: Fix system sampler disk metrics problem when the same device is mounted multiple times causing increased values.
Monday, February 4, 2019 - 11:00

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Features

  • Added the dns_hostname_resolution configuration option (default: true). If set to false, the agent won't use DNS-based hostname resolution and will ask directly to the operating system.
  • Added ignore_reclaimable configuration option (Linux only), which considers reclaimable memory as part of the free memory (and not part of the used memory). Free memory will be is calculated as: total - free - buffers - cached - sreclaimable, independently of the MemAvailable report from the kernel.

Improvements

  • In cloud environments, the instance ID retrieval process is more solid during the agent startup. It also allows the agent to be spawned from VM snapshots.

Changes

  • Removed total_cores host metric.

Bug fixes

  • Fixed a bug that caused the DiskMonitor samples to show blacklisted devices (from the file_devices_blacklist configuration option).
  • Fixed Storage Sampler in 32-bit Windows agent.
  • Reduced the incidence of hostname flipping in DNS-based hostname resolution.
  • Fixed a bug that, in the Linux agent, removed the last character of the command line of some process samples.
  • (Linux only) Fixed the used memory values in the System Samples, which in agent 1.2.1 were slightly different from the actual value.
  • Fixed a problem that, when an environment configuration option had a wrong format, caused the rest of the environment variables to not be parsed.
Thursday, January 17, 2019 - 11:00

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Features

  • Added disable_all_plugins config option that disables all the inventory plugins which don't have their own frequency option specified. Check out the documentation.
  • Added cpu_profile config option for creating pprof cpu profiles.

Improvements

  • Reduced CPU consumption by 80% on average.

Changes

  • Decreased sysctl sampling frequency.

Bug fixes

  • Fixed an issue that avoids the agent being installed in old Ubuntu versions.
Monday, January 14, 2019 - 16:05

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

New Features

  • Adds support for running integrations as different users by setting the integration_user attribute in the instances section of the config file.
  • Stops setting the NRIA_CACHE_PATH variable for integrations. This variable was used by pre-V3 SDK integrations for storing cache data. Without it the integrations will default to a /tmp directory like SDK V3 integrations.
  • Attaches integration_user attribute to the integration samples.
  • Adds new user/group nri-agent to be used in different user modes.
Thursday, December 20, 2018 - 16:05

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Bug fixes

  • Fixed wrong values in containerImageName for processes running inside a Docker container.
Friday, December 14, 2018 - 16:00

Changes

  • In the Linux agent, fixed a problem with the /var/run/newrelic-infra folder that could prevent the agent to correctly start under some circumstances.
Tuesday, December 11, 2018 - 18:25

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Changes

  • Limited the inventory source field to 100 characters. This would only affect custom integrations with atypically long source names.

Improvements

  • For users with Facter enabled, we provide the facter_home_dir configuration option that allows setting the HOME environment variable for Facter. If unset, it defaults to the current user's home directory.

Bug fixes

  • Fix a bug introduced in version 1.1.4 that prevented the agent running after a system restart.
Monday, December 10, 2018 - 10:50

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Improvements

  • Windows Docker support for Windows Server 2016 hosts. Only Windows server native containers are supported.

Bug fixes

  • Fix a bug that prevented protected processes from being recorded by the agent in Windows.
Wednesday, November 28, 2018 - 10:50

Notes

A new version of the agent has been released. Follow standard procedures to update your Infrastructure agent.

Improvements

  • Adds new functionality that will allow sample decoration from integrations that have add_hostname bool flag.

Security Update

  • A security update for the Windows agent corrects an issue where the agent may follow unprivileged hard links or junction folders. Security bulletin NR18-12.

Bug fixes

  • Fix a bug with docker in AWS instances that caused the agent not to report Docker metrics.
  • Fix a bug that was making the agent to log "Plugin not registered" during agent startup.

Pages