美文网首页编程笔记
MetricBeat 快速上手

MetricBeat 快速上手

作者: 老瓦在霸都 | 来源:发表于2019-10-28 22:25 被阅读0次

    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


    相关文章

      网友评论

        本文标题:MetricBeat 快速上手

        本文链接:https://www.haomeiwen.com/subject/lpsivctx.html