Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
newrelic server monitoring ansible role for Ubuntu
# Install newrelic server monitoring
# Add newrelic repository
- apt_repository: repo='deb http://apt.newrelic.com/debian/ newrelic non-free' state=present
# Trust the New Relic GPG key.
- apt_key: url=https://download.newrelic.com/548C16BF.gpg state=present
# Update and install apt packages
- name: Run apt-get update
apt: update_cache=yes
# Install the package "newrelic-sysmond"
- apt: name=newrelic-sysmond state=present
# Add license key to config file: (See /etc/newrelic/nrsysmond.cfg for other config options)
- shell: nrsysmond-config --set license_key={{your newrelic license key goes here}}
# Start the daemon:
- service: name=newrelic-sysmond state=started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment