zoukankan      html  css  js  c++  java
  • ELK之topbeat部署

    topbeat定期收集系统信息如每个进程信息、负载、内存、磁盘等等,然后将数据发送到elasticsearch进行索引,最后通过kibana进行展示。

    下面是具体的安装及配置步骤:

    1、安装topbeat

    $ tar zxf topbeat-1.3.1-x86_64.tar.gz
    $ mv topbeat-1.3.1 topbeat

    2、配置topbeat

    $ vim topbeat/topbeat.yml #修改如下内容
    input:
      # In seconds, defines how often to read server statistics
      period: 10
    
      # Regular expression to match the processes that are monitored
      # By default, all the processes are monitored
      procs: [".*"]
    
      # Statistics to collect (all enabled by default)
      stats:
        # per system statistics, by default is true
        system: true
    
        # per process statistics, by default is true
        process: true
    
        # file system information, by default is true
        filesystem: true
    
        # cpu usage per core, by default is false
        cpu_per_core: true
    
    output:
    
      ### Elasticsearch as output
      elasticsearch:
        hosts: ["ip:9200"]

    3、配置elasticsearch模板

    $ curl -XPUT 'http://ip:9200/_template/topbeat' -d@/data/elk/topbeat/topbeat.template.json

    4、启动topbeat

    $ cd topbeat/
    $ nohup ./topbeat &

    最后看一下在Kibana中的数据及图表展示:

  • 相关阅读:
    leetcode Simplify Path
    leetcode Evaluate Reverse Polish Notation
    leetcode Swap Nodes in Pairs
    leetcode MinStack
    leetcode length of the last word
    empty能否代替isset?
    thinkphp框架的路径
    PHP 反射类的简单使用!
    在windows下配置redis扩展
    phpmyadmin的windows下和linux下的安装。
  • 原文地址:https://www.cnblogs.com/Eivll0m/p/6149570.html
Copyright © 2011-2022 走看看