MetricBeat(win/linux)部署 系统CPU内存等资源情况监控
目錄
?
1.下載
2.linux系統監控
?3.啟用模塊
4.windows系統監控
1.下載
下載MetricBeat的linux和windows版本
https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-oss-7.2.1-linux-x86_64.tar.gz
https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-oss-7.2.1-windows-x86_64.zip
2.linux系統監控
tar xzvf metricbeat-*
cd metricbeat-*
修改下配置,setup命令連接的kibana地址改一下
vi metricbeat.yml?
setup.kibana:
? host: "192.168.81.145:5601"
安裝Dashboard到kibana
./metricbeat setup -e
運行
./metricbeat -e
打開kibana,Discover界面能看到添加的metricbeat-*索引,里面有很多新添加的日志。
日志有很多字段,也有很多條,其中event.dataset代表事件數據集,如system.cpu就是cpu的性能數據。
Dashboard中的[Metricbeat System] Host overview ECS可以看到服務器性能情況,如下圖,CPU、內存、進程等均有
3.啟用模塊
./metricbeat modules list
看默認enabled只有system一個,如果需要監聽其他的服務,需要啟動
./metricbeat modules enable elasticsearch
再次啟動
./metricbeat -e
elasticsearch的數據中就存在了elasticsearch相關的信息
4.windows系統監控
解壓zip包后修改metricbeat.yml配置文件,指向正確的es服務器:
output.elasticsearch:
? # Array of hosts to connect to.
? hosts: ["192.168.81.145:9200"]
進入cmd命令行,執行metricbeat -e
此時,es中就會入進去windows這臺機器的性能數據,可以在Dashboard的[Metricbeat System] Host overview ECS中,Filters切換到host.name:"機器名",查看系統監控
總結
以上是生活随笔為你收集整理的MetricBeat(win/linux)部署 系统CPU内存等资源情况监控的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: wmode解决flash透明及层深问题
- 下一篇: 如何将exe文件在linux下执行,如何