Skip to content

Instantly share code, notes, and snippets.

@kazuph
Created July 16, 2014 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuph/ce3237fdf71081ff65f0 to your computer and use it in GitHub Desktop.
Save kazuph/ce3237fdf71081ff65f0 to your computer and use it in GitHub Desktop.
ansilbeでnewrelic(サーバーリソース監視)を導入する ref: http://qiita.com/kazuph/items/96caa31fb0004835fca5
# NewRelicのリソース監視ツールを追加
---
- name: get repo
sudo: yes
yum: pkg={{item}} state=present
with_items:
- http://download.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
- name: yum install
sudo: yes
yum: state=installed pkg=newrelic-sysmond
- name: set api key
sudo: yes
shell: |
nrsysmond-config --set license_key={{newrelic_api_key}}
- name: start
sudo: yes
service: name=newrelic-sysmond state=started enabled=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment