【Reprint】Real-time monitoring platform cat

Reference link: https://www.oschina.net/p/cat-dianping
The following are personal notes
1. Overview:
CAT is a real-time monitoring platform based on java developed by Dianping, including real-time monitoring and business monitoring.
2. Monitoring message types
1. Transaction is suitable for recording program access behavior across system boundaries, such as remote calls, database calls, and business logic monitoring with long execution time. Transaction is used to record the execution time and times of a piece of code.
2. Event is used to record the number of occurrences of an event, such as recording system exceptions. Compared with transaction, it lacks time statistics, and the overhead is smaller than that of transaction.
3. Heartbeat represents the statistical information generated regularly in the program, such as CPU%, MEM%, connection pool status, system load, etc.
4. Metric is used to record business indicators. Indicators may include the number of records for an indicator, the average value of records, and the sum of records. The minimum statistical granularity of business indicators is 1 minute.
5. Trace is used to record basic trace information, similar to the info information of log4j, which is only used to view some related information
3. Use
1. Under the cat directory, build the project with maven:
mvn clean install -DskipTests
2. Configure CAT Environment
mvn cat:install
Note:
Linux\Mac needs read and write permissions to /data/appdatas/cat and /data/applogs/cat
Windows has read and write permissions to /data/appdatas/cat and /data/applogs/cat under the system running disk
3. (Optional) If a hadoop cluster is installed, you need to go to /data/appdatas/cat/server.xml Configure the corresponding hadoop information. Set localmode to false, by default CAT works in development mode (localmode=true).
4. Run
cd cat-home;mvn jetty:run
and then open the browser and enter http://localhost:2281/cat/.
Or enter mvn eclipse:clean eclipse:eclipse in the cat directory, then import the project into eclipse, and run the cat-home project to get 'com.dianping.cat.TestServer' to start CAT.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326812690&siteId=291194637
Recommended