LoginSignup
1
1

More than 5 years have passed since last update.

Metricbeat 6.x で サーバー監視

Last updated at Posted at 2018-08-09

Metricbeat を install

Elasticsearchの公開鍵を取得
rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
Elasticのリポジトリ追加
cat << EOF > /etc/yum.repos.d/elastic.repo
[Elastic-6.x]
name=Elastic repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
EOF

Metricbeatインストール
yum install -y metricbeat

Metricbeat の 初期設定

Kibana,ElasticsearchのURL設定
vi /etc/metricbeat/metricbeat.yml

# Kibana Host
# Scheme and port can be left out and will be set to the default (http and 5601)
# In case you specify and additional path, the scheme is required: http://localhost:5601/path
# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
#host: "localhost:5601"
host: "{{Kibana Host}}:{{Port}}"

・・・・・・

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  #hosts: ["localhost:9200"]
  hosts: ["{{Elasticsearch Host}}:{{Port}}"]
Metricbeat起動
systemctl enable metricbeat.service
systemctl start metricbeat.service

Kibana で 確認

Dashboard を 選択して「[Metricbeat System] Overview」を選択する。
kibana_dashboard.png

Dashboard に [Metricbeat System]が無い場合は、Metricbeat を インストールしたサーバーで、次のコマンドを実行してください。

Metricbeatダッシュボード設定
metricbeat setup --dashboards

一覧に新たなサーバーの情報が表示されます。
kibana_dashboard_002.png

リンクをクリックしていただくとサーバー情報が表示されます。
kibana_dashboard_003.png

1
1
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
1
1