CN110138634A - Key data monitoring method and terminal - Google Patents
Key data monitoring method and terminal Download PDFInfo
- Publication number
- CN110138634A CN110138634A CN201910265472.2A CN201910265472A CN110138634A CN 110138634 A CN110138634 A CN 110138634A CN 201910265472 A CN201910265472 A CN 201910265472A CN 110138634 A CN110138634 A CN 110138634A
- Authority
- CN
- China
- Prior art keywords
- key data
- data
- key
- message middleware
- real
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Debugging And Monitoring (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据监控技术领域,尤其是涉及一种重点数据的监控方法及终端。The invention relates to the technical field of data monitoring, in particular to a monitoring method and terminal for key data.
背景技术Background technique
现代的互联网产品大多是通过客户端进行使用的,各种客户端都对应有各自的服务端。通常每个服务端上运行的是单独的项目,有些也可能是多个服务端或微服务聚合成一个项目,存在多种多样的情况。Most modern Internet products are used through the client, and each client has its own server. Usually, each server runs a separate project, and some may also aggregate multiple servers or microservices into one project, and there are various situations.
系统在正常的运行时,可能出现业务数据异常的情况,为了及时发现运行中的异常情况,许多系统存在监控系统。而在这些监控系统中,特别是针对微服务场景下的监控,一般只做到了监控自身对应的服务端相关服务信息,例如,仅监控自身服务端的CPU、内存资源以及自身的线程池、线程总数量、利用率等信息,最多还可能存在一些针对自身服务的业务数据监控,例如数据格式、类型、是否与数据标准格式,当前还没有一种在微服务场景下的、针对全流程重点业务数据进行监控的方式,不够完善。During the normal operation of the system, there may be abnormal business data. In order to detect the abnormal situation in operation in time, many systems have monitoring systems. In these monitoring systems, especially for monitoring in micro-service scenarios, generally only monitor their own corresponding server-related service information, for example, only monitor the CPU and memory resources of its own server, as well as its own thread pool and thread total. Information such as quantity, utilization rate, etc., at most, there may be some business data monitoring for its own services, such as data format, type, and data standard format. The way of monitoring is not perfect.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题是:提供一种重点数据的监控方法及终端,可以针对全流程的重点业务数据进行监控,提高效率。The technical problem to be solved by the present invention is to provide a monitoring method and terminal for key data, which can monitor key business data in the whole process and improve efficiency.
为了解决上述技术问题,本发明采用的一种技术方案为:In order to solve the above-mentioned technical problems, a kind of technical scheme adopted in the present invention is:
一种重点数据的监控方法,包括步骤:A monitoring method for key data, including steps:
S1、通过实时流式平台收集所有数据请求,并将根据所述数据请求返回的数据发送至消息中间件;S1. Collect all data requests through the real-time streaming platform, and send the data returned according to the data requests to the message middleware;
S2、从所述实时流式平台获取预设的重点数据请求的信息,根据所述重点数据请求的信息从所述消息中间件获取对应的重点数据,判断所述重点数据是否正常。S2. Acquire preset key data request information from the real-time streaming platform, acquire corresponding key data from the message middleware according to the key data request information, and determine whether the key data is normal.
为了解决上述技术问题,本发明采用的另一种技术方案为:In order to solve the above-mentioned technical problems, another technical scheme adopted by the present invention is:
一种重点数据的监控终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A monitoring terminal for key data, comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor implements the following steps when executing the computer program:
S1、通过实时流式平台收集所有数据请求,并将根据所述数据请求返回的数据发送至消息中间件;S1. Collect all data requests through the real-time streaming platform, and send the data returned according to the data requests to the message middleware;
S2、从所述实时流式平台获取预设的重点数据请求的信息,根据所述重点数据请求的信息从所述消息中间件获取对应的重点数据,判断所述重点数据是否正常。S2. Acquire preset key data request information from the real-time streaming platform, acquire corresponding key data from the message middleware according to the key data request information, and determine whether the key data is normal.
本发明的有益效果在于:通过实时流式平台收集所有数据请求,并将所有数据请求对应的返回数据发送至消息中间件,根据从所述实时流式平台获取的重点数据请求信息从所述消息中间件获取对应的重点数据,并判断所述重点数据是否正常,区别于仅能监控同一服务进程相关数据的现有技术,本发明可以针对全流程的重点业务数据进行监控,在不影响原有业务逻辑的情况下实现全局数据请求以及返回数据的收集,能够及时判断重点的数据是否正常,避免数据异常带来的故障,提高重点数据的监控效率。The beneficial effect of the present invention is that: all data requests are collected through the real-time streaming platform, and the return data corresponding to all data requests are sent to the message middleware, and according to the key data request information obtained from the real-time streaming platform The middleware obtains the corresponding key data, and judges whether the key data is normal. Different from the prior art that can only monitor the related data of the same service process, the present invention can monitor the key business data of the whole process, without affecting the original In the case of business logic, the collection of global data requests and returned data can be realized, which can timely determine whether the key data is normal, avoid failures caused by abnormal data, and improve the monitoring efficiency of key data.
附图说明Description of drawings
图1为本发明实施例的一种重点数据的监控方法的步骤流程图;1 is a flow chart of steps of a method for monitoring key data according to an embodiment of the present invention;
图2为本发明实施例的一种重点数据的监控终端的结构示意图;2 is a schematic structural diagram of a monitoring terminal for key data according to an embodiment of the present invention;
图3为本发明实施例的一种重点数据的监控方法中各模块的关系图;3 is a relationship diagram of each module in a method for monitoring key data according to an embodiment of the present invention;
标号说明:Label description:
1、一种重点数据的监控终端;2、存储器;3、处理器。1. A monitoring terminal for key data; 2. Memory; 3. Processor.
具体实施方式Detailed ways
为详细说明本发明的技术内容、所实现目的及效果,以下结合实施方式并配合附图予以说明。In order to describe in detail the technical content, achieved objects and effects of the present invention, the following descriptions are given with reference to the embodiments and the accompanying drawings.
本发明最关键的构思在于:实时流式平台收集所有数据请求,消息中间件收集所有数据请求对应的返回数据,根据从所述实时流式平台获取的重点数据请求信息从所述消息中间件获取对应的重点数据,判断所述重点数据是否正常。The most critical concept of the present invention is: the real-time streaming platform collects all data requests, the message middleware collects the return data corresponding to all data requests, and obtains from the message middleware according to the key data request information obtained from the real-time streaming platform Corresponding key data, it is judged whether the key data is normal.
请参照图1,一种重点数据的监控方法,包括步骤:Please refer to Fig. 1, a kind of monitoring method of key data, including steps:
S1、通过实时流式平台收集所有数据请求,并将根据所述数据请求返回的数据发送至消息中间件;S1. Collect all data requests through the real-time streaming platform, and send the data returned according to the data requests to the message middleware;
S2、从所述实时流式平台获取预设的重点数据请求的信息,根据所述重点数据请求的信息从所述消息中间件获取对应的重点数据,判断所述重点数据是否正常。S2. Acquire preset key data request information from the real-time streaming platform, acquire corresponding key data from the message middleware according to the key data request information, and determine whether the key data is normal.
从上述描述可知,本发明的有益效果在于:通过实时流式平台收集所有数据请求,并将所有数据请求对应的返回数据发送至消息中间件,根据从所述实时流式平台获取的重点数据请求信息从所述消息中间件获取对应的重点数据,并判断所述重点数据是否正常,区别于仅能监控同一服务进程相关数据的现有技术,本发明可以针对全流程的重点业务数据进行监控,在不影响原有业务逻辑的情况下实现全局数据请求以及返回数据的收集,能够及时判断重点的数据是否正常,避免数据异常带来的故障,提高重点数据的监控效率。As can be seen from the above description, the beneficial effect of the present invention is: collect all data requests through the real-time streaming platform, and send the returned data corresponding to all data requests to the message middleware, and request the key data obtained from the real-time streaming platform according to the The information obtains the corresponding key data from the message middleware, and judges whether the key data is normal. Different from the prior art that can only monitor the related data of the same service process, the present invention can monitor the key business data of the whole process. It realizes global data request and collection of returned data without affecting the original business logic. It can timely judge whether the key data is normal, avoid failures caused by abnormal data, and improve the monitoring efficiency of key data.
进一步的,所述步骤S1中将根据所述数据请求返回的数据发送至消息中间件包括:Further, in the step S1, sending the data returned according to the data request to the message middleware includes:
通过实时流式平台转发根据所述数据请求返回的数据至网关;Forward the data returned according to the data request to the gateway through the real-time streaming platform;
通过所述网关将根据所述数据请求返回的数据发送至所述消息中间件。The data returned according to the data request is sent to the message middleware through the gateway.
由上述描述可知,所述实时流式平台将所述返回的数据转发至网关,利用所述网关实现将所述返回的数据由所述实时流式平台发送至所述消息中间件,可以实现数据的快速转发,提高效率;同时可以令所述数据请求与返回的数据分立存储在不同模块,便于后续对多个重点数据的监控。It can be seen from the above description that the real-time streaming platform forwards the returned data to the gateway, and the gateway is used to realize the sending of the returned data from the real-time streaming platform to the message middleware, which can realize data The fast forwarding can improve the efficiency; at the same time, the data request and the returned data can be stored separately in different modules, which is convenient for subsequent monitoring of multiple key data.
进一步的,所述根据所述数据请求返回的数据中包括对应接口的唯一标识;Further, the data returned according to the data request includes the unique identifier of the corresponding interface;
所述步骤S1之前包括:Before the step S1, it includes:
通过网关生成每个数据请求对应接口的唯一标识;Generate the unique identifier of the corresponding interface of each data request through the gateway;
所述步骤S2中从所述实时流式平台获取预设的重点数据请求的信息包括:In the step S2, obtaining the preset key data request information from the real-time streaming platform includes:
根据所述唯一标识从所述实时流式平台中获取对应的重点数据请求;Obtain the corresponding key data request from the real-time streaming platform according to the unique identifier;
确定所述重点数据请求的数据项;determining the data item of the key data request;
所述步骤S2中根据所述重点数据请求的信息从所述消息中间件获取对应的重点数据包括:In the step S2, obtaining the corresponding key data from the message middleware according to the information requested by the key data includes:
根据所述重点数据请求的唯一标识和数据项从所述消息中间件获取所述重点数据请求对应的重点数据。Acquire key data corresponding to the key data request from the message middleware according to the unique identifier and data item of the key data request.
由上述描述可知,通过设置所述唯一标识可以方便获取与所述重点数据请求对应的返回数据,即重点数据,方便后续对所述重点数据的收集与判断,从而有效监控所述重点数据是否正常;在根据所述唯一标识获取所述重点数据请求时,还需要确定所述重点数据请求的数据项,根据所述唯一标识和数据项从所述消息中间件中获取对应的重点数据,确保了获取所述重点数据时的准确性,避免遗漏。As can be seen from the above description, by setting the unique identifier, it is convenient to obtain the returned data corresponding to the key data request, that is, the key data, which is convenient for subsequent collection and judgment of the key data, so as to effectively monitor whether the key data is normal. When obtaining the key data request according to the unique identifier, it is also necessary to determine the data item of the key data request, and obtain the corresponding key data from the message middleware according to the unique identifier and the data item, ensuring that Accuracy in obtaining said key data to avoid omissions.
进一步的,所述步骤S2中判断所述重点数据是否正常包括:Further, in the step S2, judging whether the key data is normal includes:
根据预设的重点数据计算规则判断所述重点数据是否在正常范围,若否,则发出告警信息。It is judged whether the key data is in the normal range according to the preset key data calculation rule, and if not, an alarm message is issued.
由上述描述可知,根据预设的重点数据规则对所述重点数据进行判断,可以适用于多种业务场景,适用性广,同时可以便于及时发现重点数据的异常,提高业务的安全性和准确性。It can be seen from the above description that the key data is judged according to the preset key data rules, which can be applied to a variety of business scenarios and has wide applicability. At the same time, it is convenient to detect abnormalities of key data in time and improve the security and accuracy of the business. .
进一步的,所述根据预设的重点数据计算规则判断所述重点数据是否在正常范围之前还包括:Further, before judging whether the key data is within the normal range according to the preset key data calculation rule further includes:
验证从所述消息中间件获取到的重点数据是否为重点接口对应的重点数据,若是,则根据预设的重点数据计算规则判断所述重点数据是否在正常范围;若否,则重新获取所述重点接口对应的重点数据。Verify whether the key data obtained from the message middleware is the key data corresponding to the key interface, and if so, judge whether the key data is in the normal range according to the preset key data calculation rule; if not, re-acquire the key data Key data corresponding to key interfaces.
由上述描述可知,在根据预设的重点数据计算规则判断所述重点数据是否异常之前,还需对所述重点数据进行验证,只有在确定所述重点数据为所述重点接口对应的重点数据时,才进行异常判断,进一步提高了所述重点数据监控的准确性。As can be seen from the above description, before judging whether the key data is abnormal according to the preset key data calculation rules, the key data needs to be verified, and only when it is determined that the key data is the key data corresponding to the key interface. , the abnormality judgment is performed, which further improves the accuracy of the monitoring of the key data.
请参照图2,一种重点数据的监控终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:Please refer to FIG. 2 , a monitoring terminal for key data, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the following steps when executing the computer program:
S1、通过实时流式平台收集所有数据请求,并将根据所述数据请求返回的数据发送至消息中间件;S1. Collect all data requests through the real-time streaming platform, and send the data returned according to the data requests to the message middleware;
S2、从所述实时流式平台获取预设的重点数据请求的信息,根据所述重点数据请求的信息从所述消息中间件获取对应的重点数据,判断所述重点数据是否正常。S2. Acquire preset key data request information from the real-time streaming platform, acquire corresponding key data from the message middleware according to the key data request information, and determine whether the key data is normal.
从上述描述可知,本发明的有益效果在于:通过实时流式平台收集所有数据请求,并将所有数据请求对应的返回数据发送至消息中间件,根据从所述实时流式平台获取的重点数据请求信息从所述消息中间件获取对应的重点数据,并判断所述重点数据是否正常,区别于仅能监控同一服务进程相关数据的现有技术,本发明可以针对全流程的重点业务数据进行监控,在不影响原有业务逻辑的情况下实现全局数据请求以及返回数据的收集,能够及时判断重点的数据是否正常,避免数据异常带来的故障,提高重点数据的监控效率。As can be seen from the above description, the beneficial effect of the present invention is: collect all data requests through the real-time streaming platform, and send the returned data corresponding to all data requests to the message middleware, and request the key data obtained from the real-time streaming platform according to the The information obtains the corresponding key data from the message middleware, and judges whether the key data is normal. Different from the prior art that can only monitor the related data of the same service process, the present invention can monitor the key business data of the whole process. It realizes global data request and collection of returned data without affecting the original business logic. It can timely judge whether the key data is normal, avoid failures caused by abnormal data, and improve the monitoring efficiency of key data.
进一步的,所述步骤S1中将根据所述数据请求返回的数据发送至消息中间件包括:Further, in the step S1, sending the data returned according to the data request to the message middleware includes:
通过实时流式平台转发根据所述数据请求返回的数据至网关;Forward the data returned according to the data request to the gateway through the real-time streaming platform;
通过所述网关将根据所述数据请求返回的数据发送至所述消息中间件。The data returned according to the data request is sent to the message middleware through the gateway.
由上述描述可知,所述实时流式平台将所述返回的数据转发至网关,利用所述网关实现将所述返回的数据由所述实时流式平台发送至所述消息中间件,可以实现数据的快速转发,提高效率;同时可以令所述数据请求与返回的数据分立存储在不同模块,便于后续对多个重点数据的监控。It can be seen from the above description that the real-time streaming platform forwards the returned data to the gateway, and the gateway is used to realize the sending of the returned data from the real-time streaming platform to the message middleware, which can realize data The fast forwarding can improve the efficiency; at the same time, the data request and the returned data can be stored separately in different modules, which is convenient for subsequent monitoring of multiple key data.
进一步的,所述根据所述数据请求返回的数据中包括对应接口的唯一标识;Further, the data returned according to the data request includes the unique identifier of the corresponding interface;
所述步骤S1之前包括:Before the step S1, it includes:
通过网关生成每个数据请求对应接口的唯一标识;Generate the unique identifier of the corresponding interface of each data request through the gateway;
所述步骤S2中从所述实时流式平台获取预设的重点数据请求的信息包括:In the step S2, obtaining the preset key data request information from the real-time streaming platform includes:
根据所述唯一标识从所述实时流式平台中获取对应的重点数据请求;Obtain the corresponding key data request from the real-time streaming platform according to the unique identifier;
确定所述重点数据请求的数据项;determining the data item of the key data request;
所述步骤S2中根据所述重点数据请求的信息从所述消息中间件获取对应的重点数据包括:In the step S2, obtaining the corresponding key data from the message middleware according to the information requested by the key data includes:
根据所述重点数据请求的唯一标识和数据项从所述消息中间件获取所述重点数据请求对应的重点数据。Acquire key data corresponding to the key data request from the message middleware according to the unique identifier and data item of the key data request.
由上述描述可知,通过设置所述唯一标识可以方便获取与所述重点数据请求对应的返回数据,即重点数据,方便后续对所述重点数据的收集与判断,从而有效监控所述重点数据是否正常;在根据所述唯一标识获取所述重点数据请求时,还需要确定所述重点数据请求的数据项,根据所述唯一标识和数据项从所述消息中间件中获取对应的重点数据,确保了获取所述重点数据时的准确性,避免遗漏。As can be seen from the above description, by setting the unique identifier, it is convenient to obtain the returned data corresponding to the key data request, that is, the key data, which is convenient for subsequent collection and judgment of the key data, so as to effectively monitor whether the key data is normal. When obtaining the key data request according to the unique identifier, it is also necessary to determine the data item of the key data request, and obtain the corresponding key data from the message middleware according to the unique identifier and the data item, ensuring that Accuracy in obtaining said key data to avoid omissions.
进一步的,所述步骤S2中判断所述重点数据是否正常包括:Further, in the step S2, judging whether the key data is normal includes:
根据预设的重点数据计算规则判断所述重点数据是否在正常范围,若否,则发出告警信息。It is judged whether the key data is in the normal range according to the preset key data calculation rule, and if not, an alarm message is issued.
由上述描述可知,根据预设的重点数据规则对所述重点数据进行判断,可以适用于多种业务场景,适用性广,同时可以便于及时发现重点数据的异常,提高业务的安全性和准确性。It can be seen from the above description that the key data is judged according to the preset key data rules, which can be applied to a variety of business scenarios and has wide applicability. At the same time, it is convenient to detect abnormalities of key data in time and improve the security and accuracy of the business. .
进一步的,所述根据预设的重点数据计算规则判断所述重点数据是否在正常范围之前还包括:Further, before judging whether the key data is within the normal range according to the preset key data calculation rule further includes:
验证从所述消息中间件获取到的重点数据是否为重点接口对应的重点数据,若是,则根据预设的重点数据计算规则判断所述重点数据是否在正常范围;若否,则重新获取所述重点接口对应的重点数据。Verify whether the key data obtained from the message middleware is the key data corresponding to the key interface, and if so, judge whether the key data is in the normal range according to the preset key data calculation rule; if not, re-acquire the key data Key data corresponding to key interfaces.
由上述描述可知,在根据预设的重点数据计算规则判断所述重点数据是否异常之前,还需对所述重点数据进行验证,只有在确定所述重点数据为所述重点接口对应的重点数据时,才进行异常判断,进一步提高了所述重点数据监控的准确性。As can be seen from the above description, before judging whether the key data is abnormal according to the preset key data calculation rules, the key data needs to be verified, and only when it is determined that the key data is the key data corresponding to the key interface. , the abnormality judgment is performed, which further improves the accuracy of the monitoring of the key data.
实施例一Example 1
请参照图1和图3,一种重点数据的监控方法,包括步骤:Please refer to Figure 1 and Figure 3, a method for monitoring key data, comprising the steps:
客户端请求统一网关接口后,通过网关执行业务逻辑,生成每个数据请求对应接口的唯一标识;After the client requests the unified gateway interface, the business logic is executed through the gateway to generate the unique identifier of the interface corresponding to each data request;
S1、通过实时流式平台收集所有数据请求,并将根据所述数据请求返回的数据发送至消息中间件;S1. Collect all data requests through the real-time streaming platform, and send the data returned according to the data requests to the message middleware;
其中,所述根据所述数据请求返回的数据中包括对应接口的唯一标识;Wherein, the data returned according to the data request includes the unique identifier of the corresponding interface;
通过所述唯一标识可以方便识别同一接口对应数据请求的返回数据;Through the unique identifier, the returned data corresponding to the data request of the same interface can be easily identified;
具体地,所有数据请求即需要访问微服务的请求均预先经过所述实时流式平台,通过所述实时流式平台进行初始的数据请求收集;Specifically, all data requests, that is, requests to access microservices, pass through the real-time streaming platform in advance, and collect initial data requests through the real-time streaming platform;
如图3所示,所述数据请求需要访问的微服务返回对应的数据后,所述实时流式平台获取根据所述数据请求返回的数据;As shown in FIG. 3 , after the microservice to be accessed by the data request returns the corresponding data, the real-time streaming platform obtains the data returned according to the data request;
所述实时流式平台转发根据所述数据请求返回的数据至所述网关;The real-time streaming platform forwards the data returned according to the data request to the gateway;
所述网关记录所有返回的数据,并将根据所述数据请求返回的数据发送至MQ消息中间件中;The gateway records all the returned data, and sends the data returned according to the data request to the MQ message middleware;
所述网关以JSON数据格式向所述MQ消息中间件发送所述返回的数据,具体字段包括客户端调用的接口类型、调用微服务的接口类型、微服务接口返回的数据信息和接口对应的唯一标识等;The gateway sends the returned data to the MQ message middleware in JSON data format, and the specific fields include the interface type called by the client, the interface type of the calling microservice, the data information returned by the microservice interface, and the unique interface corresponding to the interface. identification, etc.;
在所述网关将所述返回的数据发送给所述MQ消息中间件之后,才将所述返回的数据返回至客户端;After the gateway sends the returned data to the MQ message middleware, the returned data is returned to the client;
S2、从所述实时流式平台获取预设的重点数据请求的信息,根据所述重点数据请求的信息从所述消息中间件获取对应的重点数据,判断所述重点数据是否正常。S2. Acquire preset key data request information from the real-time streaming platform, acquire corresponding key data from the message middleware according to the key data request information, and determine whether the key data is normal.
其中,所述重点数据请求为重点接口对应的数据请求,所述重点接口根据具体业务自行设定,可以在后台配置哪些接口为重点接口,根据各个接口的URL地址进行标记,在重点数据的监控过程中,根据所述标记确定所述重点接口,获取所述重点接口对应的唯一标识;Among them, the key data request is the data request corresponding to the key interface, the key interface is set by itself according to the specific business, which interfaces can be configured as key interfaces in the background, marked according to the URL address of each interface, and monitored in the monitoring of key data. In the process, the key interface is determined according to the mark, and the unique identifier corresponding to the key interface is obtained;
具体地,数据监控平台根据所述唯一标识从所述实时流式平台中获取对应接口的重点数据请求参数信息,确定所述重点数据请求的数据项;Specifically, the data monitoring platform obtains the key data request parameter information of the corresponding interface from the real-time streaming platform according to the unique identifier, and determines the data item of the key data request;
所述数据监控平台根据所述重点数据请求的唯一标识和数据项从所述消息中间件实时订阅所述重点数据请求对应的重点数据,所述重点数据即所述重点数据请求的所有返回字段;The data monitoring platform subscribes the key data corresponding to the key data request from the message middleware in real time according to the unique identifier of the key data request and the data item, and the key data is all return fields of the key data request;
所述数据监控平台收到订阅的重点数据时,根据预设的重点数据计算规则判断所述重点数据是否在正常范围,若否,则发出告警信息至通知平台,由所述通知平台通知相关人员当前存在异常数据需要处理的信息;When the data monitoring platform receives the subscribed key data, it determines whether the key data is in the normal range according to the preset key data calculation rules, and if not, sends an alarm message to the notification platform, and the notification platform notifies the relevant personnel. There is currently information about abnormal data that needs to be processed;
所述预设的重点数据计算规则根据具体业务规则确定,所述重点数据的正常范围也需要根据具体的业务规则设置,例如判断预设时间内的重点数据之和是否大于预设数值,从而确定所述重点数据是否存在异常;The preset key data calculation rules are determined according to specific business rules, and the normal range of the key data also needs to be set according to the specific business rules, such as determining whether the sum of the key data within a preset time is greater than a preset value, so as to determine Whether the key data is abnormal;
例如,在金融业务系统中,不同类型的账户在固定时间段内进行的交易金额需要在一定范围之内,这时就需要进行业务规则的监控。小用户类型的账户在每天的8:00-16:00之间,每一笔的支出与收入总金额要求在0-50000之间,只有在0-50000之间才认为是数据正常,超出该范围则认为是数据异常;For example, in a financial business system, the transaction amount of different types of accounts in a fixed period of time needs to be within a certain range, and then business rules need to be monitored. The account of small user type is between 8:00-16:00 every day, and the total amount of each expenditure and income is required to be between 0-50000. Only between 0-50000 is the data considered to be normal. The range is considered to be abnormal data;
通过监控每一个交易接口,每个交易内部可以存在多个批次的操作,可以支出,也可以收入,通过所述实时流式平台采集请求接口的数据请求,所述消息中间件记录所述数据请求对应的返回数据;By monitoring each transaction interface, there can be multiple batches of operations within each transaction, which can be spent or received, and the data request of the request interface is collected through the real-time streaming platform, and the message middleware records the data. Request the corresponding return data;
所述数据监控平台根据唯一标识和数据项从所述消息中间件实时订阅所述交易接口对应的每个小用户类型账户在8:00-16:00间所有数据请求的返回数据,所述返回数据即为此时的重点数据;The data monitoring platform subscribes in real time from the message middleware according to the unique identifier and the data item the returned data of all data requests for each small user type account corresponding to the transaction interface between 8:00 and 16:00. The data is the key data at this time;
所述数据监控平台收到订阅的重点数据后,将每个小用户类型账户对应的重点数据相加实现每个小用户类型账户总交易金额的计算,判断每个小用户类型账户的总交易金额是否在0-50000之间,若是,则交易金额符合业务规则,数据正常;若否,则说明数据出现异常,可能出现账户被盗或系统存在BUG等异常情况,发出告警信息至通知平台,由所述通知平台通知相关人员当前存在异常数据需要处理的信息。After receiving the subscribed key data, the data monitoring platform adds the key data corresponding to each small user type account to realize the calculation of the total transaction amount of each small user type account, and judges the total transaction amount of each small user type account. Whether it is between 0 and 50000, if so, the transaction amount complies with the business rules and the data is normal; if not, it means that the data is abnormal, the account may be stolen or the system has BUG and other abnormal situations, and an alarm message will be sent to the notification platform, and the The notification platform notifies the relevant personnel that there is currently abnormal data that needs to be processed.
实施例二Embodiment 2
本实施例与实施例一的不同在于:The difference between this embodiment and the first embodiment is that:
所述根据预设的重点数据计算规则判断所述重点数据是否在正常范围之前还包括:Before judging whether the key data is within the normal range according to the preset key data calculation rule, further includes:
验证从所述消息中间件获取到的重点数据是否为重点接口对应的重点数据,若是,则根据预设的重点数据计算规则判断所述重点数据是否在正常范围;若否,则重新获取所述重点接口对应的重点数据。Verify whether the key data obtained from the message middleware is the key data corresponding to the key interface, and if so, judge whether the key data is in the normal range according to the preset key data calculation rule; if not, re-acquire the key data Key data corresponding to key interfaces.
具体地,所述数据监控平台收到订阅的重点数据后,预先验证收到的重点数据是否为重点接口对应的重点数据,即验证收到的重点数据是否为重点接口对应的重点数据请求的返回数据,若是,则根据预设的重点数据计算规则判断所述重点数据是否在正常范围,若否,则重新获取所述重点接口对应的重点数据,即重新执行步骤S2。Specifically, after receiving the subscribed key data, the data monitoring platform pre-verifies whether the received key data is the key data corresponding to the key interface, that is, whether the received key data is the return of the key data request corresponding to the key interface If yes, determine whether the key data is in the normal range according to the preset key data calculation rule; if not, re-acquire key data corresponding to the key interface, that is, perform step S2 again.
实施例三Embodiment 3
请参照图2,一种重点数据的监控终端1,包括存储器2、处理器3及存储在存储器2上并可在所述处理器3上运行的计算机程序,所述处理器3执行所述计算机程序时实现实施例一中的各个步骤。Please refer to FIG. 2 , a monitoring terminal 1 for key data includes a memory 2, a processor 3 and a computer program stored in the memory 2 and running on the processor 3, and the processor 3 executes the computer Each step in the first embodiment is implemented during the program.
实施例四Embodiment 4
请参照图2,一种重点数据的监控终端1,包括存储器2、处理器3及存储在存储器2上并可在所述处理器3上运行的计算机程序,所述处理器3执行所述计算机程序时实现实施例二中的各个步骤。Please refer to FIG. 2 , a monitoring terminal 1 for key data includes a memory 2, a processor 3 and a computer program stored in the memory 2 and running on the processor 3, and the processor 3 executes the computer Each step in the second embodiment is implemented during the program.
综上所述,本发明提供的一种重点数据的监控方法及终端,通过实时流式平台收集所有数据请求,并通过网关将所有数据请求对应的返回数据发送至消息中间件,根据接口的唯一标识从所述实时流式平台确定对应的重点数据请求的数据项,根据所述唯一标识和数据项从所述消息中间件获取对应的重点数据,判断所述重点数据是否正常,在所述重点数据异常时及时告警,区别于仅能监控同一服务进程相关数据的现有技术,本发明可以针对全流程的重点业务数据进行监控,在不影响原有业务逻辑的情况下实现全局数据请求以及返回数据的收集,可以实现数据的快速转发,确保获取所述重点数据时的准确性,避免遗漏,能够及时判断重点的数据是否正常,避免数据异常带来的故障,提高重点数据的监控效率,适用性广。To sum up, a monitoring method and terminal for key data provided by the present invention collect all data requests through a real-time streaming platform, and send the return data corresponding to all data requests to the message middleware through the gateway. Identify the data item for which the corresponding key data request is determined from the real-time streaming platform, obtain the corresponding key data from the message middleware according to the unique identifier and the data item, determine whether the key data is normal, and determine whether the key data is normal. Timely alarm when the data is abnormal, different from the prior art that can only monitor the related data of the same service process, the present invention can monitor the key business data of the whole process, and realize the global data request and return without affecting the original business logic The collection of data can realize the fast forwarding of data, ensure the accuracy of obtaining the key data, avoid omission, and can timely judge whether the key data is normal, avoid failures caused by abnormal data, and improve the monitoring efficiency of key data. wide.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等同变换,或直接或间接运用在相关的技术领域,均同理包括在本发明的专利保护范围内。The above descriptions are only examples of the present invention, and are not intended to limit the scope of the present invention. Any equivalent transformations made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in related technical fields, are similarly included in the within the scope of patent protection of the present invention.
Claims (10)
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910265472.2A CN110138634B (en) | 2019-04-03 | 2019-04-03 | A monitoring method and terminal for key data |
| CN202110040419.XA CN112910683B (en) | 2019-04-03 | 2019-04-03 | Method and terminal for acquiring key data state |
| CN202110040430.6A CN112910684B (en) | 2019-04-03 | 2019-04-03 | Method and terminal for monitoring key data through real-time streaming platform |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910265472.2A CN110138634B (en) | 2019-04-03 | 2019-04-03 | A monitoring method and terminal for key data |
Related Child Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110040419.XA Division CN112910683B (en) | 2019-04-03 | 2019-04-03 | Method and terminal for acquiring key data state |
| CN202110040430.6A Division CN112910684B (en) | 2019-04-03 | 2019-04-03 | Method and terminal for monitoring key data through real-time streaming platform |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110138634A true CN110138634A (en) | 2019-08-16 |
| CN110138634B CN110138634B (en) | 2021-02-09 |
Family
ID=67569016
Family Applications (3)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110040419.XA Active CN112910683B (en) | 2019-04-03 | 2019-04-03 | Method and terminal for acquiring key data state |
| CN201910265472.2A Active CN110138634B (en) | 2019-04-03 | 2019-04-03 | A monitoring method and terminal for key data |
| CN202110040430.6A Active CN112910684B (en) | 2019-04-03 | 2019-04-03 | Method and terminal for monitoring key data through real-time streaming platform |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110040419.XA Active CN112910683B (en) | 2019-04-03 | 2019-04-03 | Method and terminal for acquiring key data state |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110040430.6A Active CN112910684B (en) | 2019-04-03 | 2019-04-03 | Method and terminal for monitoring key data through real-time streaming platform |
Country Status (1)
| Country | Link |
|---|---|
| CN (3) | CN112910683B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113342606A (en) * | 2021-06-07 | 2021-09-03 | 平安证券股份有限公司 | Data monitoring method, device, equipment and storage medium based on message middleware |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100080140A1 (en) * | 2008-09-30 | 2010-04-01 | Haimi Vesa | Managing mobile telecommunications packet data service traffic in real-time |
| CN103856359A (en) * | 2012-11-28 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for obtaining information |
| US20160219067A1 (en) * | 2015-01-28 | 2016-07-28 | Korea Internet & Security Agency | Method of detecting anomalies suspected of attack, based on time series statistics |
| CN107992398A (en) * | 2017-12-22 | 2018-05-04 | 宜人恒业科技发展(北京)有限公司 | The monitoring method and monitoring system of a kind of operation system |
| CN109189643A (en) * | 2018-09-11 | 2019-01-11 | 五八有限公司 | Monitoring method, device, equipment and the storage medium of request interface response data |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8676753B2 (en) * | 2009-10-26 | 2014-03-18 | Amazon Technologies, Inc. | Monitoring of replicated data instances |
| CN104836694B (en) * | 2014-02-11 | 2019-05-10 | 中国移动通信集团河北有限公司 | Network monitoring method and device |
| CN104270609B (en) * | 2014-10-09 | 2018-12-04 | 中控智慧科技股份有限公司 | A method, system and device for remote monitoring |
| CN108989136B (en) * | 2017-05-31 | 2020-10-20 | 中国移动通信集团公司 | Service end-to-end performance monitoring method and device |
| CN108039986A (en) * | 2017-12-12 | 2018-05-15 | 北京星河星云信息技术有限公司 | Monitor the method, apparatus and storage medium of web application performances |
| CN108512689B (en) * | 2017-12-15 | 2021-08-27 | 中国平安财产保险股份有限公司 | Micro-service monitoring method and server |
| CN108650230A (en) * | 2018-04-08 | 2018-10-12 | 福建网龙计算机网络信息技术有限公司 | A kind of method and system preventing button automatically clicking |
-
2019
- 2019-04-03 CN CN202110040419.XA patent/CN112910683B/en active Active
- 2019-04-03 CN CN201910265472.2A patent/CN110138634B/en active Active
- 2019-04-03 CN CN202110040430.6A patent/CN112910684B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100080140A1 (en) * | 2008-09-30 | 2010-04-01 | Haimi Vesa | Managing mobile telecommunications packet data service traffic in real-time |
| CN103856359A (en) * | 2012-11-28 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for obtaining information |
| US20160219067A1 (en) * | 2015-01-28 | 2016-07-28 | Korea Internet & Security Agency | Method of detecting anomalies suspected of attack, based on time series statistics |
| CN107992398A (en) * | 2017-12-22 | 2018-05-04 | 宜人恒业科技发展(北京)有限公司 | The monitoring method and monitoring system of a kind of operation system |
| CN109189643A (en) * | 2018-09-11 | 2019-01-11 | 五八有限公司 | Monitoring method, device, equipment and the storage medium of request interface response data |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113342606A (en) * | 2021-06-07 | 2021-09-03 | 平安证券股份有限公司 | Data monitoring method, device, equipment and storage medium based on message middleware |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110138634B (en) | 2021-02-09 |
| CN112910684B (en) | 2022-07-26 |
| CN112910683A (en) | 2021-06-04 |
| CN112910683B (en) | 2022-07-26 |
| CN112910684A (en) | 2021-06-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107992398B (en) | Monitoring method and monitoring system of service system | |
| CN107392722B (en) | Order processing method and device, electronic equipment and storage medium | |
| US10348809B2 (en) | Naming of distributed business transactions | |
| US20150170070A1 (en) | Method, apparatus, and system for monitoring website | |
| US12200082B2 (en) | Microservice call method and apparatus, device, and medium | |
| CN111130912B (en) | Abnormal location method, server and storage medium for content distribution network | |
| US20090064324A1 (en) | Non-intrusive monitoring of services in a service-oriented architecture | |
| CN107659443A (en) | The monitoring method and its system of a kind of real time business | |
| CN111782456B (en) | Anomaly detection method, device, computer equipment and storage medium | |
| CN113849330A (en) | A method, device and storage medium for monitoring and analyzing application failure causes | |
| CN110290190A (en) | A method for collecting data, a monitored device and a monitoring server | |
| CN109039803A (en) | A kind of method, system and the computer equipment of processing readjustment notification message | |
| CN108650123B (en) | Fault information recording method, device, equipment and storage medium | |
| CN113067875A (en) | Access method, device and equipment based on dynamic flow control of micro-service gateway | |
| CN103731315A (en) | Server failure detecting method | |
| CN119127625B (en) | Database node state monitoring method and device, electronic equipment and storage medium | |
| CN106612263B (en) | Method and equipment for processing application access request | |
| CN114238036A (en) | Method and device for monitoring abnormity of SAAS (software as a service) platform in real time | |
| CN110138634A (en) | Key data monitoring method and terminal | |
| CN104219219A (en) | Method, server and system for handling data | |
| CN115987827B (en) | Equipment monitoring method and device, electronic equipment and readable medium | |
| CN108390770B (en) | Information generation method and device and server | |
| CN115002000A (en) | Fault tolerance method, device, equipment and storage medium for abnormal interface | |
| CN112286778B (en) | Service chain call analysis method and device | |
| CN115499492A (en) | Application service exception handling method, device, equipment and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |