toto_1212

技術のログをツラツラ書きます。自分用ですが参考にしていただけたら嬉しいです。間違ってたらドンドン突っ込んでください。

New Relicで監視

簡易的な監視であればこれはすごくいいですね。

Devサイドの方でも見やすいような感じがします。

簡単に設定方法を書いときます。

1.アカウントを作成する。http://newrelic.com/
f:id:toatoshi:20130830131646j:plain

2.必要な情報を登録する。
f:id:toatoshi:20130830131706j:plain
f:id:toatoshi:20130830131716j:plain

3.登録完了画面が出たら、赤枠アイコンをクリックしてダッシュボードへ進む
f:id:toatoshi:20130830151552j:plain

4.左ペインの「Servers」をクリックして、監視対象のOS右の「Instructions」をクリックする
f:id:toatoshi:20130830131809j:plain

5.ここに書かれている順番に実行していきます。
f:id:toatoshi:20130830133131j:plain

6.newrelicリポジトリを追加します。

rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm

7.newrelic-sysmondをインストールする。

yum install newrelic-sysmond

8.サンプルのコンフィグファイルをコピーし、LicenseKeyを追記する。

nrsysmond-config --set license_key=*******************************
※****は自分のキーを利用する
Instructionsを進めていくとlicense_key=に埋め込まれているのでコピーする

9.newrelic-sysmond サービスを起動する。
service newrelic-sysmond start

数分後経過すると監視が始まります。
【監視画面】
Overview
f:id:toatoshi:20130830132522j:plain

Processes
f:id:toatoshi:20130830132600j:plain

Network
f:id:toatoshi:20130830132624j:plain

Disks
f:id:toatoshi:20130830132650j:plain

小規模でカジュアルに監視であれば十分すぎます。
ZabbixとAPIで会話できないかな。。考えてみよう。