zoukankan      html  css  js  c++  java
  • influxdb + Grafana可视化监控平台

    在centos6.5上influxdb + Grafana监控平台配置:

    1、RedHat and CentOS users can install the latest stable version of InfluxDB using the yum package

    #cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
            [influxdb]
            name = InfluxDB Repository - RHEL $releasever
            baseurl = https://repos.influxdata.com/rhel/$releasever/$basearch/stable
            enabled = 1
            gpgcheck = 1
            gpgkey = https://repos.influxdata.com/influxdb.key
            EOF

    2、安装influxdb

    #yum install influxdb


    3、修改InfluxDB的配置,主要配置jmeter存储的数据库与端口号,还有需要将UI端口开放:
    [root@localhost ~]# vi /etc/influxdb/influxdb.conf

    # 找到graphite并且修改它的库与端口
    [[graphite]]
      enabled = true
      database = "jmeter"
      bind-address = ":2003"
      protocol = "tcp"
      consistency-level = "one"
     
    # 找到admin,将前面的#号去掉,开放它的UI端口
    
    [admin]
      # Determines whether the admin service is enabled.
      enabled = true
    
      # The default bind address used by the admin service.
      bind-address = ":8083"
    
      # Whether the admin service should use HTTPS.
      # https-enabled = false
    
      # The SSL certificate used when HTTPS is enabled.
      # https-certificate = "/etc/ssl/influxdb.pem
    

     4、Once repository is added to the yum configuration, you can install and start the InfluxDB service by running:
       #service influxdb start
       
     5、install Grafana
        $ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.3.1-1.x86_64.rpm
        $ sudo yum install initscripts fontconfig
        $ sudo rpm -Uvh grafana-4.3.1-1.x86_64.rpm
        
     6、启动Grafana服务
       service grafana-server start
       
     7、浏览器访问http://192.168.66.175:3000(grafana)
       浏览器访问http://192.168.66.175:8083(InfluxDB的web ui界面)
       - 8083端口是InfluxDB的UI界面展示的端口

       - 8086端口是Grafana用来从数据库取数据的端口

       - 2003端口则是刚刚设置的,Jmeter往数据库发数据的端口
         
       
       
       
    可能用到的插件:
    install plugins安装插件

    # grafana-cli plugins install alexanderzobnin-zabbix-app 安装zabbix插件

    #grafana-cli plugins install grafana-worldmap-panel 安装世界地图插件

    #grafana-cli plugins install grafana-clock-panel 安装时间插件

    #grafana-cli plugins install grafana-piechart-panel 安装圆饼插件

  • 相关阅读:
    java 模拟http请求,通过流(stream)的方式,发送json数据和文件
    $listeners 在vue中的使用 --初学
    vue中关于checkbox数据绑定v-model指令说明
    Vue--理解非prop特性
    Vue里标签嵌套限制问题解决------解析DOM模板时注意事项:
    vue click.stop
    @click.prevent.self和@click.self.prevent区别
    assign()-JS
    摘抄大神对VUE 中slot-scope的深度理解
    oracle11G备份空表解决办法
  • 原文地址:https://www.cnblogs.com/hyzhou/p/7019413.html
Copyright © 2011-2022 走看看