LoginSignup
6
0

More than 5 years have passed since last update.

LinuxサーバーをNew Relicで監視する

Last updated at Posted at 2016-12-02

advent calendar2日目です。先週自分のサーバーにいれたサーバーの状態監視ツールを紹介します。
サクッとセットアップできて便利です。
5分くらいで終わります。

環境

CentOS6
New Relic

セッティング

タブからInfrastructureを選択

スクリーンショット 2016-11-26 15.37.15.png

Linuxを選択

スクリーンショット 2016-11-27 0.57.03.png

出てきたコマンド実行


$ echo "license_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | sudo tee -a /etc/newrelic-infra.yml

# Amazon Linux, CentOS 6, RHEL 6
printf "[newrelic-infra]\nname=New Relic Infrastructure\nbaseurl=http://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64\nenable=1\ngpgcheck=0" | sudo tee -a /etc/yum.repos.d/newrelic-infra.repo


# CentOS 7, RHEL 7

printf "[newrelic-infra]\nname=New Relic Infrastructure\nbaseurl=http://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64\nenable=1\ngpgcheck=0" | sudo tee -a /etc/yum.repos.d/newrelic-infra.repo

yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'

sudo yum install newrelic-infra -y

「Show me my data」というボタンを押すとデータが見れる。

スクリーンショット 2016-11-27 1.00.20.png

まとめ

めっちゃ簡単

6
0
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
0