Created
March 12, 2015 22:33
-
-
Save anubhavsinha/8294bebeed1f4276b53a to your computer and use it in GitHub Desktop.
newrelic server monitoring ansible role for Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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