Skip to content

Instantly share code, notes, and snippets.

@anubhavsinha
Created March 12, 2015 22:33
Show Gist options
  • Save anubhavsinha/8294bebeed1f4276b53a to your computer and use it in GitHub Desktop.
Save anubhavsinha/8294bebeed1f4276b53a to your computer and use it in GitHub Desktop.
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