Spring-based self-defined monitoring service health state method and system

CN118642908AInactive Publication Date: 2024-09-13SANUO QINGSHI (GUANGZHOU) MARKETING TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310236443.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

像skywalking,这种依靠java agent进行启动注入的监控技术,对于部分java应用却不好使,加了监控反而导致启动失败

Benefits of technology

[0016] 1. The implementation of multiple alarm access methods can meet the alarm application scenarios of most enterprises. Operation and maintenance personnel, technical personnel, and business personnel can always know the system information related to themselves. Ensure effective response when an abnormality occurs in the system. Reach based on WeChat can maximize the popularization of system applications, and non-technical personnel in the enterprise can receive timely reminders without installing any software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642908A
    Figure CN118642908A
Patent Text Reader

Abstract

The invention discloses a Spring-based self-defined monitoring service health state method and system, comprising data acquisition, data presentation, system warning and auxiliary operation, the data acquisition comprising application basic information acquisition, operation environment information acquisition, application tool dependence information acquisition and application service information acquisition; the data presentation is mainly subjected to data aggregation presentation by Web + grafana, the alarm access means of the alarm system is also accessed to the WeChat alarm access means besides the simplest mail access, and the auxiliary operation implements the basic capability of operation and maintenance. The method can enable operation and maintenance personnel or technicians to perform simple processing even if the operation and maintenance personnel or the technicians are not in front of a computer when a service system goes wrong, and has the advantages that the method has the capability of acquiring operation environment data, the capability of acquiring data of application interfaces, threads and the like, the capability of data visualization and the capability of generating a user-defined operation and maintenance report at the same time; a multi-scene alarm means definition capability and a multi-path alarm capability are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of system monitoring, and in particular to a method and system for customizing the health status of monitoring services based on Spring. Background Art

[0002] In the microservice environment, most of our applications are built using the spring boot / spring cloud development framework. Whether the system can run stably and robustly is the basic requirement to ensure the normal operation of the business. We need a monitoring and alarm system that is more convenient and more suitable for our own system.

[0003] System monitoring is a topic that has existed since the birth of programming languages. Long ago, the main monitoring object was the server, including the server's hard disk resources, memory resources, CPU resources, number of threads, network traffic and other operating status monitoring. The most famous one is Zabbix. Later, people began to focus on monitoring the system application itself, because even if the server is alive and well, it does not mean that the system can be alive and well. After the birth of microservices, many monitoring methods, frameworks, and tools based on microservices have also emerged.

[0004] There are many technologies related to the present invention, including prometheus and skywalking for monitoring the operating environment. These technologies are based on service registration and data collection based on service discovery, status display based on visualization tools such as grafana, and system alarms based on emails and simple conditional controls. Their shortcomings are summarized as follows:

[0005] 1. Some monitoring tools have injection bugs. For example, Skywalking, a monitoring technology that relies on Java agent for startup injection, does not work well for some Java applications. Adding monitoring may lead to startup failures.

[0006] 2. The alarm means are single. The alarm conditions cannot be configured with business semantics, the alarm conditions cannot be configured for multiple scenarios, and the alarm sending capability is basically limited to email alarms.

[0007] 3. Lack of operation and maintenance means. These open source monitoring systems on the market generally only have data collection, monitoring visualization, and email alarm capabilities, and lack operational response means after the system goes offline, resulting in the lack of practical significance of the system itself. Summary of the invention

[0008] The present invention is an operational microservice monitoring system, the core technology framework of which is spring boot, MySQL is used for data storage, and H5 and GRAFANA are combined for data visualization.

[0009] The system also has the ability to collect operating environment data, application interface, thread and other data, data visualization, custom operation and maintenance report generation, multi-scenario alarm method definition, and multi-channel alarm capabilities.

[0010] The technical solution provided by the present invention is: a method and system for custom monitoring service health status based on Spring, including data collection, data presentation, system warning and auxiliary operation, wherein the data collection includes application basic information collection, operation environment information collection, application tool dependency information collection and application business information collection, and the application basic information collection, operation environment information collection, application tool dependency information collection and application business information collection are all extended and implemented using the spring-actuator mechanism, and the data presentation is mainly performed by Web+grafana for data aggregation presentation, and the information that can be presented includes an overview of the current status of each project microservice, the use of operation environment resources, business error information presentation and a business custom report on the system operation status, and the alarm field of the system alarm can be divided into alarms related to system operation and maintenance indicators, technical alarms related to application errors and alarms related to business definitions by category, and the alarm access means of the alarm system, in addition to the simplest email access, also connects to the WeChat alarm access means, and the auxiliary operation is based on shell and K8S API technology implements basic operation and maintenance capabilities, allowing operation and maintenance personnel or technical personnel to perform simple processing even if they are not in front of the computer when problems occur in the business system. The auxiliary operations include changing the log level, stopping, starting and restarting the microservice application.

[0011] Furthermore, the collection objects of the application basic information collection include application name, current version, application description and application tag.

[0012] Furthermore, the collection objects of the operating environment information collection include the remaining space of the current container hard disk, CPU usage, memory usage and port usage.

[0013] Furthermore, the collection objects of the application tool-dependent information collection include database connectivity, Redis connectivity, MQ connectivity, network connectivity and mail service connectivity.

[0014] Furthermore, the collection objects of the application business information collection include the number of database threads, interface call status, business error rate and business error information.

[0015] The advantages of the present invention compared with the prior art are:

[0016] 1. The realization of multiple alarm contact methods can meet the alarm application scenarios of most enterprises. Operation and maintenance personnel, technical personnel, and business personnel can always know the system information related to themselves. Ensure effective response when the system is abnormal. WeChat-based contact can maximize the popularization of system applications. Non-technical personnel in the enterprise can receive timely reminders without installing any software.

[0017] 2. The diversity and clarity of alarm information can help quickly locate problems in the business system and ensure business stability. Time is the most critical factor after an emergency occurs.

[0018] 3. Data visualization can help technical personnel trace back and view the operation status of the system, which is helpful for analyzing and handling abnormal situations; at the same time, it can prevent sudden access peaks.

[0019] 4. Auxiliary operations enable technicians to quickly deal with application operation problems and immediately restore the system's service capabilities when system processes become abnormal due to special reasons such as memory overflow, stack overflow, system restart, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 The present invention is a flow chart of a method and system for customizing the health status of a monitoring service based on Spring. DETAILED DESCRIPTION

[0021] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0022] like Figure 1 As shown in the figure, a method and system for custom monitoring service health status based on Spring includes data collection, data presentation, system warnings and auxiliary operations. The data collection is divided into several types of data collection, namely application basic information collection, such as application name, current version, application description, application tag, etc.; operation environment information collection, such as the current container hard disk remaining space, CPU usage, memory usage, port usage, etc.; application tool dependency information collection, such as database connectivity, Redis connectivity, MQ connectivity, network connectivity, mail service connectivity, etc.; application business information collection, such as database thread number, interface call status, business error rate, business error information, etc. The collection of the above types of data is extended and implemented using the spring-actuator mechanism.

[0023] Data presentation is mainly performed by Web+grafana for data aggregation presentation. The information that can be presented includes the current status of each project microservice, the usage of operating environment resources, and business error information, as well as business custom reports on system operation.

[0024] The system alarm section categorizes the alarm areas, including alarms related to system operation and maintenance indicators, technical alarms related to application errors, and alarms related to business definitions. In addition to the simplest email delivery method, WeChat alarm delivery method is also available.

[0025] Auxiliary operations are based on shell and K8S API technologies, and implement basic operation and maintenance capabilities, allowing operation and maintenance personnel or technical personnel to perform simple processing even if they are not in front of the computer when problems occur in the business system. This includes changes in log levels, stopping, starting, and restarting microservice applications.

[0026] Through the above means, the system can simultaneously have the ability to collect operating environment data, application interface, thread and other data, data visualization, custom operation and maintenance report generation, multi-scenario alarm means definition, and multi-channel alarm capabilities.

[0027] The present invention and its implementation methods are described, and such description is not restrictive. The drawings only describe one implementation method of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it and design structural methods and embodiments similar to the technical solution without creativity without departing from the purpose of the invention, they should all fall within the protection scope of the present invention.

Claims

1. A method and system for custom monitoring service health status based on Spring, characterized by: It includes data collection, data presentation, system warnings and auxiliary operations. The data collection includes application basic information collection, operating environment information collection, application tool dependency information collection and application business information collection. The application basic information collection, operating environment information collection, application tool dependency information collection and application business information collection are all extended and implemented using the spring-actuator mechanism. The data presentation is mainly performed by Web+grafana for data aggregation and presentation. The information that can be presented includes an overview of the current status of each project microservice, the usage of operating environment resources, business error information presentation and business custom reports on system operation status. The alarm field of the system alarm can be divided into alarms related to system operation and maintenance indicators, technical alarms related to application errors and alarms related to business definitions. In addition to the simplest email contact, the alarm contact method of the alarm system also connects to the WeChat alarm contact method. The auxiliary operation is based on the technology of shell and K8SAPI, and implements the basic operation and maintenance capabilities, which allows the operation and maintenance personnel or technical personnel to perform simple processing even if they are not in front of the computer when problems occur in the business system. The auxiliary operation includes changes in log levels, stopping, starting and restarting microservice applications.

2. According to claim 1, a method and system for custom monitoring service health status based on Spring, characterized in that: The collection objects of the application basic information collection include application name, current version, application description and application tag.

3. According to claim 1, a Spring-based custom monitoring service health status method and system, characterized in that: The collection objects of the operating environment information collection include the remaining space of the current container hard disk, CPU usage, memory usage and port usage.

4. According to claim 1, a method and system for custom monitoring service health status based on Spring, characterized in that: The collection objects of the application tool-dependent information collection include database connectivity, Redis connectivity, MQ connectivity, network connectivity and mail service connectivity.

5. According to claim 1, a method and system for custom monitoring service health status based on Spring, characterized in that: The collection objects of the application business information collection include the number of database threads, interface call status, business error rate and business error information.

Citation Information

Patent Citations

  • Monitoring implementation method based on spring task scheduling

    CN106407073A

  • Comprehensive device monitoring system architecture

    CN106487585A

  • Monitoring method for large-scale micro service system, a device and storage medium

    CN108845910A

  • Server monitoring system

    CN111679958A

  • Processing method for implementing monitoring intellectualization on the basis of micro-services, and electronic device

    WO2021008031A1