服务器基础设施监控全解析:从Metricbeat到部署架构
1. 运行Metricbeat捕获系统指标
1.1 准备工作
确保Kibana 7.0和Elasticsearch 7.0正在运行。将metricbeat.yml的内容替换为以下配置并保存文件:
############### Metricbeat Configuration Example ################ #============== Modules configuration ========================= metricbeat.config.modules: # Glob pattern for configuration loading path: ${path.config}/modules.d/*.yml # Set to true to enable config reloading reload.enabled: false # Period on which files under path should be checked for changes #reload.period: 10s #=========== Elasticsearch template setting ================= setup.template.settings: index.number_of_shards: 1 index.codec: best_compression #_source.enabled: false #=======