GithubHelp home page GithubHelp logo

log_analysis's Introduction

日志分析

架构设计

分为三个模块:

  • 日志读取器
  • 日志处理器
  • 数据写入数据库

监控需求

监控某个协议下的某个请求在某个请求方法QPS&响应时间&流量

influxDB

参考连接

直接使用brew install influxdb 安装在本地。

安装完成之后启动数据库

influxd

启动完成之后连接influxdb,创建相应的数据库

influx -precision rfc3339C

绘制监控图

参考

使用 brew install grafana下载软件

启动软件

brew services start grafana

启动后在浏览器登录 localhost:3000 就可以进入到操作面板。选择数据库源读取其中的数据。下面是展示

6.监控模块

  1. 总处理日志行数
  2. 系统吐出量
  3. read channel 长度
  4. write channel 长度
  5. 运行总时长
  6. 错误数

log_analysis's People

Watchers

James Cloos avatar chenxu avatar  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.