Https://github.com/dianping/cat
Cat Cat's real-time application monitoring platform based on Java development, including real-time application monitoring and business monitoring. [2013-01-06] Types of monitoring messages supported by CAT include:
- Transaction is suitable for documenting program access behavior across system boundaries, such as remote invocation, database invocation, and long-time business logic monitoring, Transaction used to record the execution time and number of times for a piece of code.
- event is used to record the number of occurrences, such as recording system anomalies, which are less than the transaction of time, and the cost is smaller than transaction.
- Heartbeat represents periodic statistical information generated within the program, such as cpu%, mem%, Connection pool status, system load, and so on.
- Metric used to record business indicators, indicators may contain a record number of indicators, the average record, the sum of records, business metrics minimum statistical granularity of 1 minutes.
- Trace is used to record basic trace information, similar to log4j info, which is used only to view some relevant information
Message Tree
The CAT monitoring system encapsulates each URL, service request internal execution as a complete message tree, and the message tree may include transaction, Event, Heartbeat, metric, and trace information.
The Complete message tree
Visual Message Tree
Distributed message Tree "one machine calls another machine"
Requirements
Quick Started1, under the Cat catalog, build your project with Maven
mvn clean install -DskipTests
2. Configuring the Cat Environment
mvn cat:install
Note:
- Linux\mac needs to have read and write access to/data/appdatas/cat and/data/applogs/cat
- Windows has read and write access to/data/appdatas/cat and/data/applogs/cat under the system run disk
3, (Optional) if the Hadoop cluster is installed, the corresponding Hadoop information needs to be configured in/data/appdatas/cat/server.xml. Set Localmode to False, and by default, cat works in development mode (LOCALMODE=TRUE). 4. Running Cat
cd cat-home;mvn jetty:run
Then open the browser and enter http://localhost:2281/cat/.
or enter MVN Eclipse:clean eclipse:eclipse in the Cat directory and import the project into Eclipse and run the Cat-home project with ' Com.dianping.cat.TestServer ' to start cat.
CAT Build Status (dump)