6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ansilbeでnewrelic(サーバーリソース監視)を導入する

Posted at

サーバー自体のパフォーマンス監視の方です。もうNewRelicだけで生きていけると思いました。

your-ansible/roles/newrelic/tasks/main.yml
# 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
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?