MetricBeat
wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.4.1-linux-x86_64.tar.gz
tar xvfz metricbeat-7.4.1-linux-x86_64.tar.gz
vi metricbeat.yml
编辑 metricbeat.yml 如下, 主要是设置 ElasticSearch 的地址
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["10.224.77.176:9200"]
#============================== Kibana =====================================
# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:
# 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: "10.224.77.176:5601"
#============================== Dashboards =====================================
# These settings control loading the sample dashboards to the Kibana index. Loading
# the dashboards is disabled by default and can be enabled either by setting the
# options here or by using the `setup` command.
setup.dashboards.enabled: true
sudo ./metricbeat -e -c metricbeat.yml
启动之后打开 kibana
![1598924-6ede733b77731395.png](https://i-blog.csdnimg.cn/blog_migrate/783e395ba1058e3206b85412cb314641.png)
step 1
![1598924-66efe1129535eaf0.png](https://i-blog.csdnimg.cn/blog_migrate/21832049f2a4984e2b5b2fc7a2163b14.png)
step 2
![1598924-d33ac7fe598835f5.png](https://i-blog.csdnimg.cn/blog_migrate/32b3901ba32ff5c6ed69e90756fc7fb3.png)
我们可以在 kibana 的 dashboard 中找到 system overview dashboard
![1598924-ccc5fe69a7df6c10.png](https://i-blog.csdnimg.cn/blog_migrate/91d9e5b78fa966697c3009a657bc644a.png)
![1598924-09f65fe39c9f5a2b.png](https://i-blog.csdnimg.cn/blog_migrate/0b76dd89c3e1cad40ac3bedebb7d56d0.png)