美文网首页
influxdb 、grafana 、 mongoadmin 配

influxdb 、grafana 、 mongoadmin 配

作者: 王镇_ee87 | 来源:发表于2020-12-09 10:33 被阅读0次
    influxdb 配置

    centos

    wget https://dl.influxdata.com/influxdb/releases/influxdb-1.6.3.x86_64.rpm
    sudo yum localinstall influxdb-1.6.3.x86_64.rpm
    

    ubtuntu

    wget https://dl.influxdata.com/influxdb/releases/influxdb_1.5.2_amd64.deb
    sudo dpkg -i influxdb_1.5.2_amd64.deb
    

    启动

    sudo service influxdb start
    # or
    sudo systemctl start influxdb
    
    grafana 配置

    参考
    安装及启动

    sudo yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.2.4-1.x86_64.rpm  安装
    sudo service grafana-server start   启动
    

    配置

    访问 http://IP:3000 默认用户名密码 admin admin 登录以后重置密码
    
    vi /etc/grafana/grafana.ini
    修改 ;domain = localhost 为 domain = IP + 端口
    修改 ;root_url = http://localhost:3000 为 root_url = http://IP:3000
    注意不能有前面的;
    
    启动:service grafana-server start
    停止:service grafana-server stop
    重启:service grafana-server restart
    加入开机自启动: chkconfig --add grafana-server on
    
    如果想钉钉警报页面 一点就进去的话  domain 要设置好 
    
    adminmongo 配置

    第一步 没有node.js 要先下载安装

    wget https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-x64.tar.xz  下载
    tar xf  node-v10.9.0-linux-x64.tar.xz  解压 
    
    cd node-v10.9.0-linux-x64/
    
    sudo ln -s /data/node-v10.9.0-linux-x64/bin/node /usr/bin/node  node -v  创建软连接
    sudo ln -s /data/node-v10.9.0-linux-x64/bin/npm /usr/bin/npm  创建软连接
    

    如果有 node. js 直接跳到这步 adminmongo 下载安装

    git下将adminMongo源码从github上clone下来:
    git clone https://github.com/mrvautin/adminMongo.git
    进入adminMongo路径:
    cd adminMongo
    安装依赖:
    npm install
    启动应用:
    npm start或者node app
    

    配置 cd /data/admin-mongo; npm start 会生成 config 文件夹,修改 config 中的 app.json

    { "app": { "host": "0.0.0.0", "port":xxxxx, "password": "xxxxxxxx" } }
    

    注意配置文件必须是标准的JSON,最后一行不能有逗号

    相关文章

      网友评论

          本文标题:influxdb 、grafana 、 mongoadmin 配

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