1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Metricbeat導入手順の備忘録

Posted at

Metricbeat導入手順の備忘録

公式ドキュメント

アーカイブをダウンロードする

$ curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.9.1-linux-x86_64.tar.gz

アーカイブを解凍する

$ tar xzvf metricbeat-7.9.1-linux-x86_64.tar.gz

設定ファイルを編集する

$ diff metricbeat.yml metricbeat.yml.org 
67c67
<   host: "localhost:5601"
---
>   #host: "localhost:5601"

監視サービス選択する

$ ./metricbeat modules list
Enabled:
system

Disabled:
activemq
aerospike
apache
appsearch
aws
azure
beat
beat-xpack
ceph
ceph-mgr
cloudfoundry
cockroachdb
consul
coredns
couchbase
couchdb
docker
dropwizard
elasticsearch
elasticsearch-xpack
envoyproxy
etcd
golang
googlecloud
graphite
haproxy
http
ibmmq
iis
istio
jolokia
kafka
kibana
kibana-xpack
kubernetes
kvm
linux
logstash
logstash-xpack
memcached
mongodb
mssql
munin
mysql
nats
nginx
openmetrics
oracle
php_fpm
postgresql
prometheus
rabbitmq
redis
redisenterprise
sql
stan
statsd
tomcat
traefik
uwsgi
vsphere
windows
zookeeper
$ ./metricbeat modules enable nginx logstash kibana elasticsearch docker 
Enabled nginx
Enabled logstash
Enabled kibana
Enabled elasticsearch
Enabled docker
$ ./metricbeat modules list
Enabled:
docker
elasticsearch
kibana
logstash
nginx
system

Disabled:
activemq
aerospike
apache
appsearch
aws
azure
beat
beat-xpack
ceph
ceph-mgr
cloudfoundry
cockroachdb
consul
coredns
couchbase
couchdb
dropwizard
elasticsearch-xpack
envoyproxy
etcd
golang
googlecloud
graphite
haproxy
http
ibmmq
iis
istio
jolokia
kafka
kibana-xpack
kubernetes
kvm
linux
logstash-xpack
memcached
mongodb
mssql
munin
mysql
nats
openmetrics
oracle
php_fpm
postgresql
prometheus
rabbitmq
redis
redisenterprise
sql
stan
statsd
tomcat
traefik
uwsgi
vsphere
windows
zookeeper

セットアップする

$ ./metricbeat setup -e

起動する

$ vi start.sh
$ cat start.sh 
# !/usr/bin/bash
./metricbeat -e > /dev/null 2>&1 &

$ chmod 755 start.sh 
$ ./start.sh 

動作確認する

mHqk2pY.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?