Installs New Relic's system metrics integration and configures an INI file with settings. Comes with default settings that setup license key, log levels and instance labels.
By default the start_on_boot flag for this integration is not enabled on boot, in addition to allowing you to enable the service per environment you can also start the service elsewhere once an instance has finished booting. The intention here is to prevent false alerts triggered by the high saturation encountered during OS boot.
To install run ansible-galaxy install sansible.newrelic_integration_infra
or add this to your
roles.yml
.
- name: sansible.newrelic_integration_infra
version: v1.0.0-latest
and run ansible-galaxy install -p ./roles -r roles.yml
This role uses tags: build and configure
build
- Installs New Relic Infra integrationsconfigure
- Configures New Relic, requires a valid license key
The start_on_boot flag will start the integration and write any required config files, executed via the configure tag. This tag can be used for activating an integration on a per environment basis.
- name: Install and configure newrelic
hosts: "somehost"
roles:
- role: sansible.newrelic_integration_infra
sansible_newrelic_integrations_infra_start_on_boot: yes
sansible_newrelic_integration_infra_settings:
license_key: 123456789123456789123456789123456789
custom_attributes:
org: sansible
role: newrelic