Code Monkey home page Code Monkey logo

chaineye's Introduction

chaineye是一款开源的联盟链监控平台,目前已经支持百度XuperChain,基于nightingale二次开发,开箱即用的产品体验。

预览

快速安装

  • 前置:需要安装Prometheus或者其他工具作为数据源。已有正在运行的XuperChain网络。

  • 克隆项目到本地 项目地址 https://github.com/shengjian-tech/chaineye

  • 编译项目,进入src目录, go mod tidy下载依赖, go build -o chaineye编译完成。

  • 修改 ./etc/server.conf./etc/webapi.conf 配置文件。

  • server.conf 配置中主要配置日志等级,输出路径; 服务端口;Redis连接,数据库连接;[Reader][Writers] 设置为Prometheus服务连接,或者其他数据源连接地址。

  • webapi.conf 配置中主要配置日志等级,输出路径; 服务端口;JWTAuth;Redis 连接, 数据库连接, [[Clusters]] 即Prometheus等数据源连接地址,以及最后监控 XuperChain 的配置,包括超级链节点地址,超级链SDK配置文件路径。

  • 修改完配置文件后,在根目录执行命令即可启动serverwebapi 服务。命令 ./src/chaineye server -> server.out &./src/chaineye webapi -> webapi.out &, 随后可以通过查看日志输出,判断服务是否正常启动。

  • 最后,下载chaineye对应前端项目front_chaineye,仓库路径 https://github.com/shengjian-tech/front_chaineye

  • 克隆前端项目后,运行 npm installnpm run build

  • 配置 ngnix。配置入下所示。

  • 访问http://127.0.0.1:port/front_chaineye/login 页面。账号:root 密码:root.2020

  • 导入XuperChain监控大盘,XuperChain大盘文件路径 https://github.com/xuperchain/xbench/blob/master/conf/metric/grafana-xchain.json 下载后,在监控大盘中,导入即可。

超级链监控大盘预览

Nginx Server 配置

 location ~ ^/front_chaineye/ {
            root html;
            index  index.html index.htm;
            try_files $uri $uri/ /front_chaineye/index.html;
        }        

	location ~ ^/chaineye/ {
	    proxy_set_header       Host              $host;
       proxy_set_header       X-Real-IP         $remote_addr;
       proxy_set_header       X-Forwarded-For   $proxy_add_x_forwarded_for;
	    proxy_pass http://127.0.0.1:18000;
    }

鸣谢

夜莺nightingale
XuperChain

chaineye's People

Contributors

710leo avatar alick-liming avatar arch3754 avatar bbaobelief avatar canghai908 avatar chenjiandongx avatar codecmn avatar demoliang avatar dujiashu avatar freedomkk-qfeng avatar gaojiasheng avatar higkoo avatar joyexpr avatar jsers avatar keyun-istil avatar laiwei avatar llitfkitfk avatar lostyear avatar lts120784620 avatar lynxcat avatar ning1875 avatar springrain avatar tanxiao1990 avatar tianyanli avatar ulricqin avatar willhope avatar xiaoziv avatar xingren23 avatar yimeng avatar yubo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.