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
step 1 step 2我们可以在 kibana 的 dashboard 中找到 system overview dashboard
网友评论