New Relic PostgreSQLプラグイン

前提

  • 監視対象のサーバはLinux CentOSとする。

PostgreSQLプラグインの確認

  • New Relicの管理画面にログインする。
  • 左メニューの"Plugins"を押下する。
  • "MeetMe, Inc."のPostgreSQLプラグインを押下する。
  • "Download"ボタンを押下すると、プラグインの詳細説明画面に遷移する。

エージェント・PostgreSQLプラグインのインストール

psycopg2インストール

 yum install python-psycopg2

eazy_install/pipインストール

 yum install python-setuptools
 easy_install pip

エージェント・PostgreSQLプラグインインストール

 pip install newrelic-plugin-agent
 pip install newrelic_plugin_agent[postgresql]

エージェントの設定

 cp /opt/newrelic_plugin_agent/newrelic_plugin_agent.cfg /etc/newrelic/
 vi /etc/newrelic/newrelic_plugin_agent.cfg
 Application:
   license_key: 1234567ABCDEFG1234567ABCDEG1234567
   postgresql:
     host: localhost
     port: 5432
     user: postgres
     dbname: postgres
     superuser: False

エージェント起動

エージェントを起動

 newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg

エージェントのログを確認

 tail -f /var/log/newrelic/newrelic_plugin_agent.log

参考


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2013-11-15 (金) 05:47:54