Metricbeat快速安裝啓動使用

Metricbeat快速安裝啓動使用

本次使用的是tar包安裝

1.獲取tar包

wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.3.1-linux-x86_64.tar.gz

2.解壓到指定目錄/opt下

tar -zxvf metricbeat/metricbeat-6.3.1-linux-x86_64.tar.gz -C /opt

3.配置啓動運行
配置metricbeat.yml:vim metricbeat.yml
在這裏插入圖片描述啓動運行

./metricbeat run
./metricbeat modules enable system

4.打開Kibana的Timelion

.es(index=metricbeat-*,timefield='@timestamp', metric='avg:system.cpu.user.pct') 
.label('current hour').lines(fill=0.6,width=0.9)

在這裏插入圖片描述5.更復雜的結構

.es(offset=-1h,index=metricbeat-*,timefield='@timestamp', metric='avg:system.cpu.user.pct') .label('last hour').lines(fill=0.6,width=0.9).color(gray), 
.es(index=metricbeat-*,timefield='@timestamp', metric='avg:system.cpu.user.pct') .label('current hour').title('CPU usage overtime').color(#1E90FF).hide(hide=false).yaxis(yaxis=1,min=0.02,position=rigth).yaxis(yaxis=2,position=left)
.title("cpu").legend(columns=2,position=nw,showTime=true)

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章