GithubHelp home page GithubHelp logo

jinisu / flash-dog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flash-dog/flash-dog

0.0 2.0 0.0 16.15 MB

flash-dog, a good friend for development , operation and maintenance !

Java 38.11% Batchfile 0.03% Shell 1.56% JavaScript 49.91% CSS 4.22% HTML 6.17%

flash-dog's Introduction

Summary

Bolt Monitoring (flash-dog) originated in Hangzhou Sky Network Technology Co., a real project, the main advantage is lightweight, fast, non-invasive, does not affect the business code, just add a few jar log4j package and modify the configuration file, you can monitor any indicators, such as CPU, memory, threads, gaming revenue, the number of online and so on. After the 2012 Open Source in the game, pay, education and many other Internet companies a wide range of applications. Online demo, http://115.28.11.12:8080/flash-dog/ , username: admin, password:123456

Detailed graphic tutorials

Interface Snapshot

Project Home Project Home

FAQs

  • If you can monitor business   Yes, the default is to monitor jvm performance and error logs, which provides a template pace, minor modifications will be able to conduct business operations by analyzing statistics logging and monitoring
  • Whether you need to connect business database   No, only need to connect mongodb
  • What is the warehouse schema    mongdob a model of collection and storage mode, there is a fixed size, the space will be reused, such as setting a 1G, data over 1G, the new data will replace the old data, the non-warehouse schema will continue to increase, so the log table, it is strongly recommended Use warehouse schema.
  • Why did not see the new items added charts    Most of the problems are the database link problem, you can set up inside view of the project and log data link is normal. Follow the naming convention can reduce low-level error
  • How to customize the output variable    The MDC realized by log4j, MDC internal mechanism used to store information similar map, the corresponding method, MDC.put (key, value); use when configuring PatternLayout:% x {key} to output the corresponding value, such as tracking all logs user requests: java code:
 
MDC.put ("UUID", userId);
 
log4j configuration:
 
log4j.appender.MongoDB.layout.ConversionPattern = {"timestamp": "% d", "level": "% p", "className": "% c", "message": "% m", "pid" : "% V", "ip": "% I", uuid: "% X {UUID}"}
 
* How to monitor access log tomcat
  1. First configure the tomcat log output to log4j, download tomcat-juli.jar to tomcat / bin, overwriting the original jar, download tomcat-util.jar to tomcat / lib, copy log4mongo-java, flash-dog-api-log4j and mongo-java-driver, log4j.properties to lib
  2. Modify tomcat / conf / server.xml in the access-log section: className = "com.skymobi.tomcat.Log4JAccessLogValve"
  3. Restart tomcat, in logs / catalina.log can see the access log

flash-dog's People

Contributors

hill-hu avatar moshenglin avatar stevenbobo avatar yishh avatar

Watchers

 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.