zoukankan      html  css  js  c++  java
  • Windows下本机简易监控系统搭建(Telegraf+Influxdb+Grafana)

    一、文件准备

         1.1 文件名称

             telegraf-1.2.1_windows_amd64.zip

             influxdb-1.2.2_windows_amd64.zip

             grafana-4.2.0.windows-x64.zip

         1.2 下载地址

            https://portal.influxdata.com/downloads

           【注意、注意、注意】下载时可能需要FanQiang

            

            

            https://grafana.com/grafana/download?platform=windows

            

    二、安装

        分别解压下载下来的文件到指定目录,比如:d:Program Files

    三、配置

    3.1 Telegraf

          修改influxdb.conf,设置日志文件目录:

      ## Specify the log file name. The empty string means to log to stdout.
      logfile = "D:/Program Files/Telegraf/telegraf.log"

    3.2 InfluxDb

        修改influxdb.conf,打开Web控制台:     

    [admin]
    # Determines whether the admin service is enabled.
    enabled = true

    # The default bind address used by the admin service.
    bind-address = ":8083"

     3.3 Grafana

        使用默认配置

    四、启动

        4.1 Influxdb

        通过cmd命令窗口,切换到influxdb安装目录,执行如下命令:

         influxd -config influxdb.conf

        4.2 Telegraf

        通过cmd命令窗口,切换到Telegraf安装目录,执行如下命令:

         telegraf -config telegraf.conf

        4.3 Grafana

        切换到Grafana安装目录中的bin目录下,双击grafana-server.exe启动程序

    五、使用

       访问http://localhost:3000,使用admin/admin登录本机Grafana,新建influxdb数据源:

            

           【注意】Telegraf启动后,向InfluxDb中上报数据时,会默认创建一个telegraf数据库,所以上面我们配置DataBase是telegraf

           查看http://localhost:8083,可以发现telegraf库中,默认有4个Measurements(表):

           配置Grafana中的面板,这样一个简易的本机监控系统就搭建完了:

     【注意】CPU是按核数维度统计的,磁盘队列是按盘符统计的 

  • 相关阅读:
    测试平台系列(9) 与前端联调注册/登录接口(part 2)
    测试平台系列(8) 与前端联调注册/登录接口(part 1)
    测试平台系列(7) 改造注册接口
    测试平台系列(6) 配置flask-sqlalchemy
    测试平台系列(5) 引入Ant Design Pro
    UICollectionView添加headerView
    iOS UICollectionReusableView xib 拖不了线
    xcode Errors were encountered while preparing your device for development. P
    UICollectionView Cell大小自适应 并靠左对齐最简单的实现
    iOS UICollectionView 一行三个计算 高度
  • 原文地址:https://www.cnblogs.com/liugh/p/6683488.html
Copyright © 2011-2022 走看看