* New Relic PostgreSQLプラグイン [#j6a9c1a5]

** 前提 [#hed49015]
- 監視対象のサーバはLinux CentOSとする。

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

** エージェント・PostgreSQLプラグインのインストール [#xfc19201]
*** psycopg2インストール [#j5c2c2fd]
 yum install python-psycopg2
*** eazy_install/pipインストール [#bddc1812]
 yum install python-setuptools
 easy_install pip
*** エージェント・PostgreSQLプラグインインストール [#yeb1dc1b]
 pip install newrelic-plugin-agent
 pip install newrelic_plugin_agent[postgresql]

** エージェントの設定 [#zfea6489]
 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

** エージェント起動 [#x65c5c58]
*** エージェントを起動 [#t980e126]
 newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg
*** エージェントのログを確認 [#ja65f094]
 tail -f /var/log/newrelic/newrelic_plugin_agent.log

** 参考 [#qdbf12d1]
https://pypi.python.org/pypi/newrelic_plugin_agent

- https://pypi.python.org/pypi/newrelic_plugin_agent
- サポートサイト: https://github.com/MeetMe/newrelic-plugin-agent/issues

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