环境:
OS: Centos 7.6
JDK: 1.8.0_91
下载地址:
https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-7.4.2-linux-x86_64.tar.gz
https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-7.4.2-linux-x86_64.tar.gz
https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.4.2-linux-x86_64.tar.gz
https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.4.2-linux-x86_64.tar.gz
https://artifacts.elastic.co/downloads/logstash/logstash-7.4.2.tar.gz
https://artifacts.elastic.co/downloads/kibana/kibana-7.4.2-linux-x86_64.tar.gz
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-linux-x86_64.tar.gz
安装Metricbeat
tar -xzvf metricbeat-7.4.2-linux-x86_64.tar.gz
cd metricbeat-7.4.2-linux-x86_64/
#从Metricbeat安装目录,启用系统模块:
./metricbeat modules enable system
#设置初始环境
./metricbeat setup -e
#setup命令加载Kibana仪表板。如果仪表板已经设置好,则省略此命令。e标志是可选的,并将输出发送到标准错误,而不是syslog。
#启动Metricbeat
./metricbeat -e
要了解关于安装和配置其他Beat的更多信息,请参阅入门文档:
Elastic Beats | To capture |
---|---|
Auditbeat | Audit data |
Filebeat | Log files |
Heartbeat | Availability monitoring |
Metricbeat | Metrics |
Packetbeat | Network traffic |
Winlogbeat | Windows event logs |
来源:oschina
链接:https://my.oschina.net/jerval/blog/3135773