[go: up one dir, main page]

CN110806960B - Information processing method and device and terminal equipment - Google Patents

Information processing method and device and terminal equipment Download PDF

Info

Publication number
CN110806960B
CN110806960B CN201911060584.0A CN201911060584A CN110806960B CN 110806960 B CN110806960 B CN 110806960B CN 201911060584 A CN201911060584 A CN 201911060584A CN 110806960 B CN110806960 B CN 110806960B
Authority
CN
China
Prior art keywords
monitoring
information
message
target
monitoring information
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.)
Active
Application number
CN201911060584.0A
Other languages
Chinese (zh)
Other versions
CN110806960A (en
Inventor
李明亮
才蕾
庄孺义
张一航
张彦斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911060584.0A priority Critical patent/CN110806960B/en
Publication of CN110806960A publication Critical patent/CN110806960A/en
Application granted granted Critical
Publication of CN110806960B publication Critical patent/CN110806960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3068Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data format conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明实施例提供一种信息处理方法、装置及终端设备,该方法包括:获取待监控业务对应的监控信息,其中监控信息包括业务监控指标及其对应的监控数据,获取业务监控指标的指标类型,根据业务监控指标的指标类型,对业务监控指标对应的监控数据进行存储格式统一化处理,得到目标监控信息,将目标监控信息推送到第二终端的中间件中,以使第二终端获取订阅目标监控信息的客户端,将目标监控信息发送至客户端,由于目标监控信息已经进行存储格式统一化处理,无论是第二终端还是客户端在存储该目标监控信息时,都无需再对其进行处理后才能进行存储,提高数据存储的效率。

Embodiments of the present invention provide an information processing method, device and terminal equipment. The method includes: obtaining monitoring information corresponding to the business to be monitored, where the monitoring information includes business monitoring indicators and their corresponding monitoring data, and obtaining the indicator type of the business monitoring indicator. , according to the indicator type of the business monitoring indicator, the storage format of the monitoring data corresponding to the business monitoring indicator is unified, the target monitoring information is obtained, and the target monitoring information is pushed to the middleware of the second terminal, so that the second terminal obtains the subscription The client of the target monitoring information sends the target monitoring information to the client. Since the target monitoring information has been stored in a unified storage format, neither the second terminal nor the client need to process the target monitoring information when storing it. It can be stored only after processing to improve the efficiency of data storage.

Description

信息处理方法、装置及终端设备Information processing methods, devices and terminal equipment

技术领域Technical field

本发明实施例涉及计算机技术领域,尤其涉及一种信息处理方法、装置及终端设备。Embodiments of the present invention relate to the field of computer technology, and in particular, to an information processing method, device and terminal equipment.

背景技术Background technique

随着计算机技术的发展,为了方便人们的生活,企业或平台提供的业务的类型越来越多。With the development of computer technology, in order to facilitate people's lives, enterprises or platforms provide more and more types of services.

现有技术中,为了保证业务可以正常运行,需要为业务配置业务监控指标,对业务监控指标进行监控,得到相应的监控数据,并将监控数据发送给需要该监控数据的终端,以使相关人员可以根据终端存储的监控数据确定业务监控指标是否异常,即判断业务是否存在异常,从而可以及时处理异常。In the existing technology, in order to ensure that the business can run normally, it is necessary to configure business monitoring indicators for the business, monitor the business monitoring indicators, obtain corresponding monitoring data, and send the monitoring data to the terminal that needs the monitoring data, so that relevant personnel can It can be determined whether the business monitoring indicators are abnormal based on the monitoring data stored in the terminal, that is, whether there is an abnormality in the business, so that the abnormality can be handled in a timely manner.

然而,发明人发现现有技术中至少存在如下问题:由于监控数据的种类比较多,格式复杂,直接将得到的监控数据发送给终端后,终端还需要对监控数据进行处理后,才能对其进行存储,数据存储的效率低。However, the inventor found that there are at least the following problems in the prior art: since there are many types of monitoring data and the format is complex, after the obtained monitoring data is directly sent to the terminal, the terminal needs to process the monitoring data before it can be processed. Storage, data storage efficiency is low.

发明内容Contents of the invention

本发明实施例提供一种信息处理方法、装置及终端设备,以解决现有技术中数据存储的效率低的问题。Embodiments of the present invention provide an information processing method, device and terminal equipment to solve the problem of low data storage efficiency in the prior art.

第一方面,本发明实施例提供一种信息处理方法,包括:In a first aspect, embodiments of the present invention provide an information processing method, including:

获取待监控业务对应的监控信息,其中所述监控信息包括业务监控指标及其对应的监控数据;Obtain monitoring information corresponding to the business to be monitored, where the monitoring information includes business monitoring indicators and their corresponding monitoring data;

获取所述业务监控指标的指标类型;Obtain the indicator type of the business monitoring indicator;

根据所述业务监控指标的指标类型,对所述业务监控指标对应的监控数据进行存储格式统一化处理,得到目标监控信息;According to the indicator type of the business monitoring indicator, the monitoring data corresponding to the business monitoring indicator is stored in a unified storage format to obtain the target monitoring information;

将所述目标监控信息推送到第二终端的中间件中,以使第二终端获取订阅所述目标监控信息的客户端,将所述目标监控信息发送至所述客户端。The target monitoring information is pushed to the middleware of the second terminal, so that the second terminal obtains a client that subscribes to the target monitoring information and sends the target monitoring information to the client.

在一种可能的设计中,所述根据所述业务监控指标的指标类型,对所述业务监控指标对应的监控数据进行存储格式统一化处理,得到目标监控信息,包括:In one possible design, according to the indicator type of the business monitoring indicator, the monitoring data corresponding to the business monitoring indicator is stored in a unified storage format to obtain target monitoring information, including:

对所述业务监控指标进行分类,得到多个指标集合,其中所述指标集合包括指标类型相同的业务监控指标;Classify the business monitoring indicators to obtain multiple indicator sets, wherein the indicator sets include business monitoring indicators of the same indicator type;

针对各指标集合,获取该指标集合对应的标准存储格式,根据所述标准存储格式,对该指标集合中的各业务监控指标对应的监控数据进行存储格式统一化处理,其中所述存储格式统一化处理包括单位统一化处理、文件占用空间统一化处理和精度统一化处理中的至少一个。For each indicator set, obtain the standard storage format corresponding to the indicator set, and perform unified storage format processing on the monitoring data corresponding to each business monitoring indicator in the indicator set according to the standard storage format, wherein the storage format is unified The processing includes at least one of unit unification processing, file occupied space unification processing, and accuracy unification processing.

在一种可能的设计中,所述将所述目标监控信息推送到第二终端的中间件中,包括:In one possible design, pushing the target monitoring information to the middleware of the second terminal includes:

按照预设JSON报文格式封装所述目标监控信息中的监控数据,得到多个JSON报文;Encapsulate the monitoring data in the target monitoring information according to the preset JSON message format to obtain multiple JSON messages;

将所述JSON报文推送到所述中间件中.Push the JSON message to the middleware.

在一种可能的设计中,在所述将所述数据报文推送到所述中间件之后,还包括:In a possible design, after pushing the data message to the middleware, the method further includes:

获取数据传送日志,并从所述数据传送日志中获取JSON节点;Obtain data transfer logs and obtain JSON nodes from said data transfer logs;

获取所述JSON节点对应的节点报文,并判断所述节点报文的报文格式是否完整;Obtain the node message corresponding to the JSON node, and determine whether the message format of the node message is complete;

若所述节点报文的报文格式不完整,则重传所述节点报文对应的监控数据。If the message format of the node message is incomplete, the monitoring data corresponding to the node message is retransmitted.

在一种可能的设计中,在所述获取待监控业务对应的监控信息之后,还包括:In one possible design, after obtaining the monitoring information corresponding to the service to be monitored, the method further includes:

获取所述业务监控指标对应的数值区间;Obtain the numerical interval corresponding to the business monitoring indicator;

根据所述业务监控指标对应的监控数据和数值区间,得到所述业务监控指标的监控结果,其中所述监控结果包括指标正常和指标异常。According to the monitoring data and numerical intervals corresponding to the business monitoring indicators, the monitoring results of the business monitoring indicators are obtained, where the monitoring results include normal indicators and abnormal indicators.

在一种可能的设计中,所述中间件包括消息队列和消息分区。In a possible design, the middleware includes a message queue and a message partition.

在一种可能的设计中,所述将所述目标监控信息推送到第二终端的中间件中,包括:In one possible design, pushing the target monitoring information to the middleware of the second terminal includes:

获取预设核心业务对应的目标监控信息,并将所述核心业务对应的目标监控信息作为核心监控信息。Obtain the target monitoring information corresponding to the preset core business, and use the target monitoring information corresponding to the core business as the core monitoring information.

将所述核心监控信息推送到第二终端的目标消息队列中,其中所述目标消息队列为所述预设核心业务对应的消息队列。Push the core monitoring information to a target message queue of the second terminal, where the target message queue is a message queue corresponding to the preset core service.

第二方面,本发明实施例提供一种信息处理装置,包括:In a second aspect, an embodiment of the present invention provides an information processing device, including:

信息获取模块,用于获取待监控业务对应的监控信息,其中所述监控信息包括业务监控指标及其对应的监控数据;An information acquisition module, used to obtain monitoring information corresponding to the business to be monitored, where the monitoring information includes business monitoring indicators and their corresponding monitoring data;

类型获取模块,用于获取所述业务监控指标的指标类型;A type acquisition module, used to obtain the indicator type of the business monitoring indicator;

信息处理模块,用于根据所述业务监控指标的指标类型,对所述业务监控指标对应的监控数据进行存储格式统一化处理,得到目标监控信息;An information processing module, configured to unify the storage format of the monitoring data corresponding to the business monitoring indicators according to the indicator type of the business monitoring indicators to obtain target monitoring information;

信息推送模块,用于将所述目标监控信息推送到第二终端的中间件中,以使第二终端获取订阅所述目标监控信息的客户端,将所述目标监控信息发送至所述客户端。An information push module, configured to push the target monitoring information to the middleware of the second terminal, so that the second terminal obtains the client that subscribes to the target monitoring information and sends the target monitoring information to the client. .

在一种可能的设计中,所述信息处理模块具体用于:In a possible design, the information processing module is specifically used to:

对所述业务监控指标进行分类,得到多个指标集合,其中所述指标集合包括指标类型相同的业务监控指标;Classify the business monitoring indicators to obtain multiple indicator sets, wherein the indicator sets include business monitoring indicators of the same indicator type;

针对各指标集合,获取该指标集合对应的标准存储格式,根据所述标准存储格式,对该指标集合中的各业务监控指标对应的监控数据进行存储格式统一化处理,其中所述存储格式统一化处理包括单位统一化处理、文件占用空间统一化处理和精度统一化处理中的至少一个。For each indicator set, obtain the standard storage format corresponding to the indicator set, and perform unified storage format processing on the monitoring data corresponding to each business monitoring indicator in the indicator set according to the standard storage format, wherein the storage format is unified The processing includes at least one of unit unification processing, file occupied space unification processing, and accuracy unification processing.

在一种可能的设计中,所述信息推送模块具体用于:In a possible design, the information push module is specifically used to:

按照预设JSON报文格式封装所述目标监控信息中的监控数据,得到多个JSON报文;Encapsulate the monitoring data in the target monitoring information according to the preset JSON message format to obtain multiple JSON messages;

将所述JSON报文推送到所述中间件中。Push the JSON message to the middleware.

在一种可能的设计中,所述信息推送模块还用于:在所述将所述数据报文推送到所述中间件之后,获取数据传送日志,并从所述数据传送日志中获取JSON节点;In a possible design, the information push module is also configured to: after pushing the data message to the middleware, obtain a data transfer log, and obtain a JSON node from the data transfer log ;

获取所述JSON节点对应的节点报文,并判断所述节点报文的报文格式是否完整;Obtain the node message corresponding to the JSON node, and determine whether the message format of the node message is complete;

若所述节点报文的报文格式不完整,则重传所述节点报文对应的监控数据。If the message format of the node message is incomplete, the monitoring data corresponding to the node message is retransmitted.

在一种可能的设计中,信息获取模块还用于:在所述获取待监控业务对应的监控信息之后,获取所述业务监控指标对应的数值区间;In a possible design, the information acquisition module is also configured to: after obtaining the monitoring information corresponding to the business to be monitored, obtain the numerical interval corresponding to the business monitoring indicator;

根据所述业务监控指标对应的监控数据和数值区间,得到所述业务监控指标的监控结果,其中所述监控结果包括指标正常和指标异常。According to the monitoring data and numerical intervals corresponding to the business monitoring indicators, the monitoring results of the business monitoring indicators are obtained, where the monitoring results include normal indicators and abnormal indicators.

在一种可能的设计中,所述中间件包括消息队列和消息分区。In a possible design, the middleware includes a message queue and a message partition.

在一种可能的设计中,所述信息推送模块具体用于:In a possible design, the information push module is specifically used to:

获取预设核心业务对应的目标监控信息,并将所述核心业务对应的目标监控信息作为核心监控信息;Obtain the target monitoring information corresponding to the preset core business, and use the target monitoring information corresponding to the core business as the core monitoring information;

将所述核心监控信息推送到第二终端的目标消息队列中,其中所述目标消息队列为所述预设核心业务对应的消息队列。Push the core monitoring information to a target message queue of the second terminal, where the target message queue is a message queue corresponding to the preset core service.

第三方面,本发明实施例提供一种终端设备,包括:至少一个处理器和存储器;In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory;

所述存储器存储计算机执行指令;The memory stores computer execution instructions;

所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如第一方面任一项所述的信息处理方法。The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the information processing method according to any one of the first aspects.

第四方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如第一方面任一项所述的信息处理方法。In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium. Computer-executable instructions are stored in the computer-readable storage medium. When a processor executes the computer-executable instructions, any one of the aspects of the first aspect is implemented. The information processing method described.

本发明实施例提供了一种信息处理方法、装置及终端设备,该方法按照业务监控指标对应的指标类型,对该业务监控指标对应的监控数据进行存储格式统一化处理,以使监控数据的存储格式统一,并将进行存储格式统一化处理后的目标监控信息推送到第二终端的中间件中,以使中间件可以及时将该目标监控信息发送给需要监控数据的客户端,提高数据传输的速度,且由于目标监控信息已经进行存储格式统一化处理,无论是第二终端还是客户端在存储该目标监控信息时,都无需再对其进行处理后才能进行存储,提高数据存储的效率。Embodiments of the present invention provide an information processing method, device and terminal equipment. The method unifies the storage format of the monitoring data corresponding to the business monitoring indicators according to the indicator type corresponding to the business monitoring indicators, so that the storage of the monitoring data can be unified. The format is unified, and the target monitoring information after the unified storage format is pushed to the middleware of the second terminal, so that the middleware can promptly send the target monitoring information to the client that needs to monitor the data, improving the efficiency of data transmission. Speed, and because the target monitoring information has been unified in storage format, whether the second terminal or the client stores the target monitoring information, there is no need to process it before storing it, which improves the efficiency of data storage.

附图说明Description of the drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting any creative effort.

图1为本发明实施例提供的信息处理系统的架构示意图;Figure 1 is a schematic architectural diagram of an information processing system provided by an embodiment of the present invention;

图2为本发明实施例提供的信息处理方法的流程图一;Figure 2 is a flow chart 1 of an information processing method provided by an embodiment of the present invention;

图3为本发明实施例提供的信息处理方法的流程图二;Figure 3 is a flow chart 2 of the information processing method provided by the embodiment of the present invention;

图4为本发明实施例提供的信息处理装置的结构示意图;Figure 4 is a schematic structural diagram of an information processing device provided by an embodiment of the present invention;

图5为本发明实施例提供的终端设备的硬件结构示意图。Figure 5 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to Describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein, for example, can be practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.

现有技术中,为了保证业务可以正常运行,需要配置相应的业务监控指标,对业务监控指标进行监控,得到相应的监控数据,并将监控数据发送给需要该监控数据的终端,以使相关人员可以根据终端存储的监控数据确定业务监控指标是否异常,即判断业务是否存在异常,从而可以及时处理异常,但由于监控数据的种类比较多,格式复杂,直接将得到的监控数据发送给终端后,终端还需要对监控数据进行格式处理后,才能对其进行存储,数据存储的效率低。In the existing technology, in order to ensure that the business can run normally, it is necessary to configure the corresponding business monitoring indicators, monitor the business monitoring indicators, obtain the corresponding monitoring data, and send the monitoring data to the terminal that needs the monitoring data, so that the relevant personnel can It can be determined whether the business monitoring indicators are abnormal based on the monitoring data stored in the terminal, that is, whether there is an abnormality in the business, so that the abnormality can be handled in a timely manner. However, because there are many types of monitoring data and the format is complex, after the obtained monitoring data is directly sent to the terminal, The terminal also needs to format the monitoring data before it can be stored, and the efficiency of data storage is low.

针对现有技术中存在问题,本申请提出一种信息处理方法、装置及终端设备,该方法应用于如图1所示的信息处理系统中的第一终端101中,第一终端101按照业务监控指标对应的指标类型,对该业务监控指标对应的监控数据进行存储格式统一化处理,以使监控数据的存储格式统一,并将进行存储格式统一化处理后的目标监控信息推送到第二终端102的中间件中,以使中间件可以及时将该目标监控信息发送给需要监控数据的客户端103,提高数据传输的速度,且由于目标监控信息已经进行存储格式统一化处理,无论是第二终端还是客户端在存储该目标监控信息时,都无需再对其进行处理后才能进行存储,提高数据存储的效率。In view of the problems existing in the prior art, this application proposes an information processing method, device and terminal equipment. The method is applied to the first terminal 101 in the information processing system as shown in Figure 1. The first terminal 101 monitors the The indicator type corresponding to the indicator, perform unified storage format processing on the monitoring data corresponding to the business monitoring indicator, so that the storage format of the monitoring data is unified, and push the target monitoring information after the unified storage format processing to the second terminal 102 in the middleware, so that the middleware can promptly send the target monitoring information to the client 103 that needs to monitor data, improving the speed of data transmission, and because the target monitoring information has been unified in storage format, no matter it is the second terminal When the client stores the target monitoring information, it does not need to process it before storing it, which improves the efficiency of data storage.

下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solution of the present invention will be described in detail below with specific examples. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

图2为本发明实施例提供的信息处理方法的流程图一,本实施例的执行主体可以为图1所示实施例中的第一终端,本实施例此处不做特别限制。如图2所示,本实施例的方法,可以包括:Figure 2 is a flow chart of an information processing method provided by an embodiment of the present invention. The execution subject of this embodiment can be the first terminal in the embodiment shown in Figure 1. This embodiment is not particularly limited here. As shown in Figure 2, the method of this embodiment may include:

S201、获取待监控业务对应的监控信息,其中监控信息包括业务监控指标及其对应的监控数据。S201. Obtain monitoring information corresponding to the business to be monitored, where the monitoring information includes business monitoring indicators and corresponding monitoring data.

在本实施例中,相关监控软件或设备对待监控业务进行实时或定时监控,得到相应的监控信息,实现监控信息的自动采集,并将得到的监控信息发送给第一终端,该监控信息包括业务监控指标以及各业务监控指标对应的监控数据。In this embodiment, relevant monitoring software or equipment performs real-time or scheduled monitoring of the business to be monitored, obtains corresponding monitoring information, realizes automatic collection of monitoring information, and sends the obtained monitoring information to the first terminal. The monitoring information includes business Monitoring indicators and monitoring data corresponding to each business monitoring indicator.

其中,待监控业务对应的业务监控指标是相关人员根据实际需求预先设置的,例如,业务监控指标包括运行占用内存,访问率等指标。Among them, the business monitoring indicators corresponding to the business to be monitored are pre-set by relevant personnel according to actual needs. For example, the business monitoring indicators include running memory occupied, access rate and other indicators.

其中,待监控业务可以为基于混合云平台架构的系统中的业务。Among them, the business to be monitored can be the business in the system based on the hybrid cloud platform architecture.

在得到各业务监控指标对应的监控数据后,还可以根据业务监控指标对应的监控数据确定业务监控指标是否存在异常,其具体过程为:获取业务监控指标对应的数值区间,根据业务监控指标对应的监控数据和数值区间,得到业务监控指标的监控结果,其中监控结果包括指标正常和指标异常。After obtaining the monitoring data corresponding to each business monitoring indicator, you can also determine whether there is an abnormality in the business monitoring indicator based on the monitoring data corresponding to the business monitoring indicator. The specific process is: obtain the value range corresponding to the business monitoring indicator, and based on the corresponding value range of the business monitoring indicator Monitor data and numerical intervals to obtain monitoring results of business monitoring indicators, where the monitoring results include normal indicators and abnormal indicators.

在本实施例中,获取第一业务监控指标对应的数值区间,该第一业务监控指标为监控信息所包括的业务监控指标中的任意一个业务监控指标,根据该第一业务监控指标对应的监控数据和数值区间确定第一业务监控指标是否存在异常,即得到该第一业务监控指标对应的监控结果,当该监控结果为指标异常时,可以及时生成告警信息发送给相关终端或管理人员,以使相关人员可以及时根据告警信息解决该第一业务监控指标对应的业务所存在的问题,无需后续人工再根据监控数据确定业务监控指标是否存在异常,提高异常确定的效率,并可以提高问题的解决效率。In this embodiment, the numerical interval corresponding to the first business monitoring indicator is obtained. The first business monitoring indicator is any one of the business monitoring indicators included in the monitoring information. According to the monitoring corresponding to the first business monitoring indicator The data and numerical range determine whether there is an abnormality in the first business monitoring indicator, that is, the monitoring result corresponding to the first business monitoring indicator is obtained. When the monitoring result is an abnormal indicator, alarm information can be generated in time and sent to the relevant terminal or management personnel, so as to This enables relevant personnel to promptly solve the problems existing in the business corresponding to the first business monitoring indicator based on the alarm information. There is no need for subsequent manual work to determine whether there are abnormalities in the business monitoring indicators based on the monitoring data, thereby improving the efficiency of abnormal determination and improving problem resolution. efficiency.

其中,业务监控指标对应的数值区间是根据该业务监控指标对应的历史监控数据确定的,例如,根据历史监控数据确定出最大值以及最小值,根据该最小值以及最大值确定出该业务监控指标对应的监控数据的波动范围,从而得到数值区间,当监控数据未在该数值区间时,该监控数据存在问题的可能性较大。Among them, the numerical interval corresponding to the business monitoring indicator is determined based on the historical monitoring data corresponding to the business monitoring indicator. For example, the maximum value and the minimum value are determined based on the historical monitoring data, and the business monitoring indicator is determined based on the minimum value and maximum value. The corresponding fluctuation range of the monitoring data is used to obtain the numerical interval. When the monitoring data is not within the numerical interval, the possibility of problems with the monitoring data is greater.

其中,根据该第一业务监控指标对应的监控数据和数值区间确定第一业务监控指标是否存在异常的具体过程可以为:统计未在该数值区间的监控数据的数目,得到第一数目,若第一数目大于第一预设数目,则确定监控结果为指标异常,若第一数目小于或等于第一预设数目,则确定监控结果为指标正常。The specific process of determining whether there is an abnormality in the first business monitoring indicator based on the monitoring data and the numerical range corresponding to the first business monitoring indicator may be: counting the number of monitoring data that is not within the numerical range, and obtaining the first number. If the first number is If a number is greater than the first preset number, it is determined that the monitoring result is that the indicator is abnormal. If the first number is less than or equal to the first preset number, it is determined that the monitoring result is that the indicator is normal.

为了保证监控数据的可用性以及准确性,当第一数目小于或等于第一预设数目时,可以去除监控数据中的异常数据,即去除未在该数值区间的监控数据。In order to ensure the availability and accuracy of the monitoring data, when the first number is less than or equal to the first preset number, abnormal data in the monitoring data can be removed, that is, monitoring data that is not within the value range can be removed.

S202、获取业务监控指标的指标类型。S202. Obtain the indicator type of the business monitoring indicator.

在本实施例中,由于业务监控指标的类型繁多,为了便于客户端获取、存储以及利用监控数据,可以对同类型的监控数据进行存储格式统一化处理,即对同类型的监控数据的存储格式进行统一化处理。在对监控数据进行存储格式统一化处理时,需要利用获取到的业务监控指标对应的指标类型。In this embodiment, since there are many types of business monitoring indicators, in order to facilitate the client to obtain, store and utilize monitoring data, the storage format of the same type of monitoring data can be unified, that is, the storage format of the same type of monitoring data can be unified. Carry out unified processing. When unifying the storage format of monitoring data, it is necessary to use the indicator types corresponding to the obtained business monitoring indicators.

在获取业务监控指标的指标类型时,可以从预设存储位置获取业务监控指标对应的指标类型或者监控信息中也可以直接包括业务监控指标对应的指标类型。When obtaining the indicator type of the business monitoring indicator, the indicator type corresponding to the business monitoring indicator can be obtained from a preset storage location, or the monitoring information can also directly include the indicator type corresponding to the business monitoring indicator.

S203、根据业务监控指标的指标类型,对业务监控指标对应的监控数据进行存储格式统一化处理,得到目标监控信息。S203. According to the indicator type of the business monitoring indicator, perform unified storage format processing on the monitoring data corresponding to the business monitoring indicator to obtain target monitoring information.

在本实施例中,根据各业务监控指标的指标类型,对业务监控指标对应的监控数据进行存储格式统一化处理,得到目标监控信息,该目标监控信息包括业务监控指标及其对应的统一化处理后的监控数据。In this embodiment, according to the indicator type of each business monitoring indicator, the storage format of the monitoring data corresponding to the business monitoring indicator is unified to obtain the target monitoring information. The target monitoring information includes the business monitoring indicator and its corresponding unified processing. subsequent monitoring data.

S204、将目标监控信息推送到第二终端的中间件中,以使第二终端获取订阅目标监控信息的客户端,将目标监控信息发送至客户端。S204. Push the target monitoring information to the middleware of the second terminal, so that the second terminal obtains the client that subscribes to the target monitoring information and sends the target monitoring information to the client.

在本实施例中,将目标监控信息推送到第二终端的中间件中,第二终端中的中间件获取到订阅目标监控信息的客户端后,便将目标监控信息发送给该客户端,实现数据的同步以及共享。In this embodiment, the target monitoring information is pushed to the middleware of the second terminal. After the middleware in the second terminal obtains the client that subscribes to the target monitoring information, it sends the target monitoring information to the client to achieve Data synchronization and sharing.

其中,中间件包括消息分区和消息队列。Among them, middleware includes message partitioning and message queue.

对于非核心业务,在将目标监控信息推送到第二终端的中间件时,实际上是将非核心业务对应的目标监控信息推送到KAFKA中的消息分区中。且在将目标监控信息推送到消息分区时,可以利用数据传输服务(Data Transmission Service,简称DTS)实现,可以提高数据传输的速度,且在传输过程中,无需占用大量系统资源。For non-core services, when pushing the target monitoring information to the middleware of the second terminal, the target monitoring information corresponding to the non-core services is actually pushed to the message partition in KAFKA. When pushing the target monitoring information to the message partition, the Data Transmission Service (DTS) can be used to achieve this, which can increase the speed of data transmission without occupying a large amount of system resources during the transmission process.

为了使第二终端可以以PULL方式将监控数据传输到客户端,第二终端采用MYSQL作为桥接数据池,在MYSQL数据库中设置各业务监控指标对应的标志位,当获取到业务监控指标对应的监控数据后,该业务监控指标对应的标志位为1,否则将为0,在需要将目标监控信息发送到客户端时,KAFKA通过该MYSQL数据库以PULL方式将监控数据传输到客户端。In order to enable the second terminal to transmit monitoring data to the client in PULL mode, the second terminal uses MYSQL as the bridge data pool and sets the flag bits corresponding to each business monitoring indicator in the MYSQL database. When the monitoring data corresponding to the business monitoring indicators is obtained, After reading the data, the flag bit corresponding to the business monitoring indicator is 1, otherwise it will be 0. When the target monitoring information needs to be sent to the client, KAFKA transmits the monitoring data to the client in PULL mode through the MYSQL database.

对于核心业务,在将目标监控信息推送到第二终端的中间件时,实际上是将核心业务对应的目标监控信息推送到该核心业务对应的专属队列中,具体过程为:获取预设核心业务对应的目标监控信息,并将核心业务对应的目标监控信息作为核心监控信息。将核心监控信息推送到第二终端的目标消息队列中,其中目标消息队列为预设核心业务对应的消息队列。For the core business, when pushing the target monitoring information to the middleware of the second terminal, the target monitoring information corresponding to the core business is actually pushed to the exclusive queue corresponding to the core business. The specific process is: Obtain the preset core business Corresponding target monitoring information, and use the target monitoring information corresponding to the core business as core monitoring information. Push the core monitoring information to the target message queue of the second terminal, where the target message queue is a message queue corresponding to the preset core business.

在本实施例中,在得到各待监控业务对应的监控信息中,从其中获取预设核心业务对应的目标监控信息,并将该目标监控信息作为核心监控信息,通过调用相关组件,以使该组件将核心监控信息推送到目标消息队列中,即推送到其专属消息队列中,以使客户端可以及时消费核心监控信息,有效保证了数据的及时性,传输速度得到大幅度提升。In this embodiment, after obtaining the monitoring information corresponding to each business to be monitored, the target monitoring information corresponding to the preset core business is obtained, and the target monitoring information is used as the core monitoring information, and the relevant components are called to make the target monitoring information The component pushes the core monitoring information to the target message queue, that is, to its exclusive message queue, so that the client can consume the core monitoring information in time, effectively ensuring the timeliness of the data and greatly improving the transmission speed.

其中,核心业务可以为相关人员根据实际需求设定的重要业务或者对实时性要求较高的业务。Among them, the core business can be an important business set by relevant personnel according to actual needs or a business with high real-time requirements.

可选的,为了可以及时发现核心业务存在异常且保证监控的连续性,还可以在核心业务中设置埋点,并收集埋点日志,检测埋点日志中是否存在异常日志信息,若存在异常日志信息,则生成告警信息,并将该告警信息发送至管理人员或相关终端,该告警信息包括存在异常的业务的标识,以使管理人员可以及时根据告警信息及时处理问题。Optionally, in order to detect abnormalities in the core business in a timely manner and ensure the continuity of monitoring, you can also set up buried points in the core business, collect buried point logs, and detect whether there are abnormal log information in the buried point logs. If there are abnormal logs, information, the alarm information is generated and sent to the manager or relevant terminal. The alarm information includes the identification of the abnormal business, so that the manager can promptly handle the problem based on the alarm information.

可选的,将目标监控信息推送到第二终端的中间件中,包括:Optionally, push the target monitoring information to the middleware of the second terminal, including:

按照预设JSON报文格式封装目标监控信息中的监控数据,得到多个JSON报文。将JSON报文推送到中间件中。Encapsulate the monitoring data in the target monitoring information according to the preset JSON message format and obtain multiple JSON messages. Push the JSON message to the middleware.

在本实施例中,在得到目标监控信息后,可以按照预设JSON报文格式对目标监控信息中的各业务监控指标对应的监控数据进行封装,生成各业务监控指标对应的JSON报文,并将生成的JSON报文传输到第二终端的中间件中。In this embodiment, after obtaining the target monitoring information, the monitoring data corresponding to each business monitoring indicator in the target monitoring information can be encapsulated according to the preset JSON message format, and a JSON message corresponding to each business monitoring indicator can be generated, and Transmit the generated JSON message to the middleware of the second terminal.

为了保证监控数据的准确性、完整性以及连续性,在将JSON报文推送到第二终端的中间件的过程中,可以获取数据传送日志,并从数据传送日志中获取JSON节点。获取JSON节点对应的节点报文,并判断节点报文的报文格式是否完整。若节点报文的报文格式不完整,则重传节点报文对应的监控数据。In order to ensure the accuracy, integrity, and continuity of the monitoring data, during the process of pushing the JSON message to the middleware of the second terminal, the data transfer log can be obtained, and the JSON node can be obtained from the data transfer log. Obtain the node message corresponding to the JSON node and determine whether the message format of the node message is complete. If the message format of the node message is incomplete, the monitoring data corresponding to the node message is retransmitted.

在本实施例中,在将JSON报文传输到第二终端的过程中,会生成相应的数据传送日志,每条JSON报文均会作为一个JSON节点,相应地,该数据传送日志中包括多个JSON节点,每个JSON节点还对应有节点报文,将预设JSON报文格式与该节点报文对应的报文格式进行比较,判断该节点报文对应的报文格式是否完整,若该节点报文的报文格式不完整,表示该节点报文对应的监控数据异常,出现异常断点,需要重传该节点报文对应的监控数据。In this embodiment, during the process of transmitting the JSON message to the second terminal, a corresponding data transmission log will be generated, and each JSON message will be used as a JSON node. Correspondingly, the data transmission log includes multiple JSON nodes. Each JSON node also corresponds to a node message. Compare the preset JSON message format with the message format corresponding to the node message to determine whether the message format corresponding to the node message is complete. If the The message format of the node message is incomplete, which means that the monitoring data corresponding to the node message is abnormal and an abnormal breakpoint occurs, and the monitoring data corresponding to the node message needs to be retransmitted.

其中,节点报文实际为JSON报文。Among them, the node message is actually a JSON message.

可选的,还可以判断节点报文对应的监控数据是否合法,若不合法,则也需要重传该节点对应的监控数据,在判断监控数据是否合法时,可以通过判断监控数据中是否存在特殊字符或者是否为空来判断,例如,监控数据应该均为数字字符,但节点报文对应的监控数据中存在例如#等特殊字符,则确定该节点报文对应的监控数据不合法,需要重传。Optionally, you can also determine whether the monitoring data corresponding to the node message is legal. If it is not legal, you also need to retransmit the monitoring data corresponding to the node. When judging whether the monitoring data is legal, you can determine whether there are special data in the monitoring data. character or whether it is empty. For example, if the monitoring data should all be numeric characters, but there are special characters such as # in the monitoring data corresponding to the node message, it is determined that the monitoring data corresponding to the node message is illegal and needs to be retransmitted. .

可选的,在确定需重传的节点报文对应的监控数据后,可以批量或逐条重传。Optionally, after determining the monitoring data corresponding to the node messages that need to be retransmitted, they can be retransmitted in batches or one by one.

从上述描述可知,按照业务监控指标对应的指标类型,对该业务监控指标对应的监控数据进行存储格式统一化处理,以使监控数据的存储格式统一,并将进行存储格式统一化处理后的目标监控信息推送到第二终端的中间件中,以使中间件可以及时将该目标监控信息发送给需要监控数据的客户端,提高数据传输的速度,且由于目标监控信息已经进行存储格式统一化处理,无论是第二终端还是客户端在存储该目标监控信息时,都无需再对其进行处理后才能进行存储,提高数据存储的效率。As can be seen from the above description, according to the indicator type corresponding to the business monitoring indicator, the storage format of the monitoring data corresponding to the business monitoring indicator is unified, so that the storage format of the monitoring data is unified, and the target after the storage format is unified The monitoring information is pushed to the middleware of the second terminal, so that the middleware can promptly send the target monitoring information to the client that needs to monitor data, improving the speed of data transmission, and because the target monitoring information has been unified in storage format , when the second terminal or the client stores the target monitoring information, there is no need to process it before storing it, which improves the efficiency of data storage.

为了便于客户端存储以及利用监控数据,可以对同类的监控数据进行存储格式统一化处理,下面结合一个具体的实施例对对监控数据进行存储格式统一化处理的过程进行详细描述。In order to facilitate the client to store and utilize monitoring data, similar monitoring data can be stored in a unified storage format. The process of unified storage format processing of monitoring data will be described in detail below with reference to a specific embodiment.

图3为本发明实施例提供的语音处理方法的流程图二,如图3所示,在上述实施例的基础上,对对监控数据进行存储格式统一化处理的具体实现过程进行了详细描述,如图3所示,该方法包括:Figure 3 is a flow chart 2 of the speech processing method provided by the embodiment of the present invention. As shown in Figure 3, on the basis of the above embodiment, the specific implementation process of unifying the storage format of monitoring data is described in detail. As shown in Figure 3, the method includes:

S301、获取待监控业务对应的监控信息,其中监控信息包括业务监控指标及其对应的监控数据。S301. Obtain monitoring information corresponding to the business to be monitored, where the monitoring information includes business monitoring indicators and corresponding monitoring data.

S302、获取业务监控指标的指标类型。S302. Obtain the indicator type of the business monitoring indicator.

其中,S301-S302与图2实施例中的S201-S202类似,在此,不再进行赘述。Among them, S301-S302 are similar to S201-S202 in the embodiment of FIG. 2, and will not be described again here.

S303、对业务监控指标进行分类,得到多个指标集合,其中指标集合包括指标类型相同的业务监控指标。S303. Classify the business monitoring indicators to obtain multiple indicator sets, where the indicator sets include business monitoring indicators of the same indicator type.

在本实施例中,根据每个业务监控指标的指标类型,对业务监控指标进行分类,将指标类型相同的业务监控指标作为一个指标集合,即一个指标集合中包括的业务监控指标的指标类型是相同。In this embodiment, the business monitoring indicators are classified according to the indicator type of each business monitoring indicator, and the business monitoring indicators with the same indicator type are regarded as an indicator set, that is, the indicator type of the business monitoring indicators included in an indicator set is same.

当业务监控指标相同时,表示其对应的监控数据属于同类数据,可以按照相同的存储格式去统一该监控数据。When the business monitoring indicators are the same, it means that the corresponding monitoring data belongs to the same type of data, and the monitoring data can be unified according to the same storage format.

S304、针对各指标集合,获取该指标集合对应的标准存储格式,根据标准存储格式,对该指标集合中的各业务监控指标对应的监控数据进行存储格式统一化处理,其中存储格式统一化处理包括单位统一化处理、文件占用空间统一化处理和精度统一化处理中的至少一个。S304. For each indicator set, obtain the standard storage format corresponding to the indicator set, and perform unified storage format processing on the monitoring data corresponding to each business monitoring indicator in the indicator set according to the standard storage format. The storage format unified processing includes At least one of unit unification processing, file occupation space unification processing, and accuracy unification processing.

在本实施例中,获取第一指标集合对应的标准存储格式,并作为第一存储格式,该第一指标集合为各指标集合中的任意一个指标集合,获取第一指标集合对应的存储格式,该第一指标集合对应的存储格式实际为该第一指标集合的指标类型所对应的存储格式。根据第一存储格式的标准,对第一指标集合中的各业务监控指标对应的第一监控数据进行存储格式统一化处理,该存储格式统一化处理包括单位统一化处理、文件占用空间统一化处理和精度统一处理。In this embodiment, the standard storage format corresponding to the first indicator set is obtained and used as the first storage format. The first indicator set is any indicator set in each indicator set, and the storage format corresponding to the first indicator set is obtained, The storage format corresponding to the first indicator set is actually the storage format corresponding to the indicator type of the first indicator set. According to the standard of the first storage format, the first monitoring data corresponding to each business monitoring indicator in the first indicator set is subjected to storage format unification processing. The storage format unification processing includes unit unification processing and file occupied space unification processing. and precision are processed uniformly.

其中,获取到的监控数据实际上是以文件的形式存在的,即获取到的实际上是包含监控数据的文件。存储格式表示监控数据存储的标准,例如,存储的精度、存储的单位和文件使用大小,即文件占用空间。Among them, the obtained monitoring data actually exists in the form of files, that is, the obtained monitoring data is actually files containing monitoring data. The storage format represents the standard for monitoring data storage, such as the precision of storage, the unit of storage, and the file usage size, that is, the space occupied by the file.

其中,单位统一化处理是指将各第一监控数据的单位统一为第一存储格式对应的单位,例如,有的第一监控数据的单位为秒,有的第一监控数据的单位为分,第一存储格式对应的单位为秒,则需要将所有第一监控数据的单位统一为秒。The unit unification process refers to unifying the units of each first monitoring data into the units corresponding to the first storage format. For example, the unit of some first monitoring data is seconds, and the unit of some first monitoring data is minutes. The unit corresponding to the first storage format is seconds, so the units of all first monitoring data need to be unified into seconds.

其中,文件占用空间统一化处理是指将各第一监控数据所占用的存储空间大小进行统一,即将包含第一监控数据的第一文件所占用的存储空间进行统一,例如,有的第一文件所占用的存储空间为100M,有的第一文件所占用的存储空间为200M,第一存储格式对应的文件占用空间为150M,则需将所有的第一文件占用的空间统一为150M。Among them, the unification process of file occupied space refers to unifying the storage space occupied by each first monitoring data, that is, unifying the storage space occupied by the first file containing the first monitoring data. For example, some first files The occupied storage space is 100M, some first files occupy 200M, and the files corresponding to the first storage format occupy 150M, so the space occupied by all first files needs to be unified to 150M.

其中,精度统一化处理是指将各第一监控数据的精度进行统一,例如,有的第一监控数据的精度为小数点后两位,有的第一监控数据的精度为小数点后三位,第一存储格式对应的精度为小数点后两位,则需将所有第一监控数据的精度统一到小数点后两位。The accuracy unification process refers to unifying the accuracy of each first monitoring data. For example, the accuracy of some first monitoring data is two decimal places, and the accuracy of some first monitoring data is three decimal places. The accuracy corresponding to a storage format is two decimal places, so the accuracy of all first monitoring data needs to be unified to two decimal places.

可选的,存储格式统一化处理还包括数据格式统一化处理,例如,将包含第一监控数据的第一文件的数据格式,即文件类型进行统一化处理,例如,有的第一文件的数据格式为doc格式,有的第一文件的数据格式为txt格式,第一存储格式对应的数据格式为doc格式,则需将所有的第一文件的数据格式统一为doc格式。Optionally, the storage format unification processing also includes data format unification processing. For example, the data format of the first file containing the first monitoring data, that is, the file type is unified. For example, some data of the first file The format is doc format. The data format of some first files is txt format. The data format corresponding to the first storage format is doc format. Therefore, the data format of all first files needs to be unified into doc format.

在本实施例中,在将指标类型相同的监控数据进行存储格式统一化处理后,可以统一监控数据的存储格式,便于第二终端以及客户端可以直接获取、存储以及利用,无需在对监控数据的存储格式进行处理。In this embodiment, after the storage format of monitoring data with the same indicator type is unified, the storage format of the monitoring data can be unified, so that the second terminal and the client can directly obtain, store and utilize the monitoring data without having to modify the monitoring data. storage format for processing.

S305、将目标监控信息推送到第二终端的中间件中,以使第二终端获取订阅目标监控信息的客户端,将目标监控信息发送至客户端。S305. Push the target monitoring information to the middleware of the second terminal, so that the second terminal obtains the client that subscribes to the target monitoring information and sends the target monitoring information to the client.

其中,S305与图2实施例中的S204类似,在此,不再进行赘述。Among them, S305 is similar to S204 in the embodiment of FIG. 2, and will not be described again here.

图4为本发明实施例提供的信息处理装置的结构示意图,如图4所示,本实施例提供的信息处理装置400,可以包括:信息获取模块401、类型获取模块402、类型获取模块403和信息推送模块404。Figure 4 is a schematic structural diagram of an information processing device provided by an embodiment of the present invention. As shown in Figure 4, the information processing device 400 provided by this embodiment may include: an information acquisition module 401, a type acquisition module 402, a type acquisition module 403 and Information push module 404.

其中,信息获取模块401,用于获取待监控业务对应的监控信息,其中监控信息包括业务监控指标及其对应的监控数据。Among them, the information acquisition module 401 is used to obtain monitoring information corresponding to the business to be monitored, where the monitoring information includes business monitoring indicators and their corresponding monitoring data.

类型获取模块402,用于获取业务监控指标的指标类型。The type acquisition module 402 is used to obtain the indicator type of the business monitoring indicator.

信息处理模块403,用于根据业务监控指标的指标类型,对业务监控指标对应的监控数据进行存储格式统一化处理,得到目标监控信息。The information processing module 403 is used to unify the storage format of the monitoring data corresponding to the business monitoring indicators according to the indicator type of the business monitoring indicators to obtain target monitoring information.

信息推送模块404,用于将目标监控信息推送到第二终端的中间件中,以使第二终端获取订阅目标监控信息的客户端,将目标监控信息发送至客户端。The information push module 404 is used to push the target monitoring information to the middleware of the second terminal, so that the second terminal obtains the client that subscribes to the target monitoring information and sends the target monitoring information to the client.

在一种可能的设计中,信息处理模块具体用于:In one possible design, the information processing module is specifically used to:

对业务监控指标进行分类,得到多个指标集合,其中指标集合包括指标类型相同的业务监控指标。Classify the business monitoring indicators to obtain multiple indicator sets, where the indicator sets include business monitoring indicators of the same indicator type.

针对各指标集合,获取该指标集合对应的标准存储格式,根据标准存储格式,对该指标集合中的各业务监控指标对应的监控数据进行存储格式统一化处理,其中存储格式统一化处理包括单位统一化处理、文件占用空间统一化处理和精度统一化处理中的至少一个。For each indicator set, the standard storage format corresponding to the indicator set is obtained. According to the standard storage format, the storage format is unified for the monitoring data corresponding to each business monitoring indicator in the indicator set. The storage format unification includes unit unification. At least one of normalization processing, file occupation space unification processing, and accuracy unification processing.

在一种可能的设计中,信息推送模块具体用于:In one possible design, the information push module is specifically used to:

按照预设JSON报文格式封装目标监控信息中的监控数据,得到多个JSON报文。Encapsulate the monitoring data in the target monitoring information according to the preset JSON message format and obtain multiple JSON messages.

将JSON报文推送到中间件中。Push the JSON message to the middleware.

在一种可能的设计中,信息推送模块还用于:在将数据报文推送到中间件之后,获取数据传送日志,并从数据传送日志中获取JSON节点。In a possible design, the information push module is also used to obtain the data transfer log after pushing the data message to the middleware, and obtain the JSON node from the data transfer log.

获取JSON节点对应的节点报文,并判断节点报文的报文格式是否完整。Obtain the node message corresponding to the JSON node and determine whether the message format of the node message is complete.

若节点报文的报文格式不完整,则重传节点报文对应的监控数据。If the message format of the node message is incomplete, the monitoring data corresponding to the node message is retransmitted.

在一种可能的设计中,信息获取模块还用于:在获取待监控业务对应的监控信息之后,获取业务监控指标对应的数值区间。In a possible design, the information acquisition module is also used to: after acquiring the monitoring information corresponding to the business to be monitored, acquire the numerical interval corresponding to the business monitoring indicator.

根据业务监控指标对应的监控数据和数值区间,得到业务监控指标的监控结果,其中监控结果包括指标正常和指标异常。According to the monitoring data and numerical intervals corresponding to the business monitoring indicators, the monitoring results of the business monitoring indicators are obtained, where the monitoring results include normal indicators and abnormal indicators.

在一种可能的设计中,中间件包括消息队列和消息分区。In one possible design, the middleware includes message queues and message partitions.

在一种可能的设计中,信息推送模块具体用于:In one possible design, the information push module is specifically used to:

获取预设核心业务对应的目标监控信息,并将核心业务对应的目标监控信息作为核心监控信息。Obtain the target monitoring information corresponding to the preset core business, and use the target monitoring information corresponding to the core business as the core monitoring information.

将核心监控信息推送到第二终端的目标消息队列中,其中目标消息队列为预设核心业务对应的消息队列。Push the core monitoring information to the target message queue of the second terminal, where the target message queue is a message queue corresponding to the preset core business.

本发明实施例提供的信息处理装置,可以实现上述实施例的方法,其实现原理和技术效果类似,此处不再赘述。The information processing device provided by the embodiment of the present invention can implement the method of the above embodiment. The implementation principles and technical effects are similar and will not be described again here.

图5为本发明实施例提供的终端设备的硬件结构示意图。如图5所示,本实施例提供的终端设备500包括:至少一个处理器501和存储器502。其中,处理器501、存储器502通过总线503连接。Figure 5 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present invention. As shown in Figure 5, the terminal device 500 provided in this embodiment includes: at least one processor 501 and a memory 502. Among them, the processor 501 and the memory 502 are connected through a bus 503.

在具体实现过程中,至少一个处理器501执行存储器502存储的计算机执行指令,使得至少一个处理器501执行上述方法实施例中的信息处理方法。During specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, so that at least one processor 501 executes the information processing method in the above method embodiment.

处理器501的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The specific implementation process of the processor 501 can be found in the above-mentioned method embodiments. The implementation principles and technical effects are similar and will not be described again in this embodiment.

在上述的图5所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application SpecificIntegrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above-mentioned embodiment shown in Figure 5, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), or other general-purpose processor, digital signal processor (English: Digital Signal Processor) Signal Processor (DSP for short), Application Specific Integrated Circuit (English: Application Specific Integrated Circuit (ASIC for short)), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the invention can be directly embodied and executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器。The memory may include high-speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.

总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(ExtendedIndustry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现上述方法实施例的信息处理方法。Embodiments of the present invention also provide a computer-readable storage medium. Computer-executable instructions are stored in the computer-readable storage medium. When the processor executes the computer-executable instructions, the information processing method of the above method embodiment is implemented.

上述的计算机可读存储介质,上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned computer-readable storage medium, the above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable memory. Programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.

一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific IntegratedCircuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。An exemplary readable storage medium is coupled to the processor such that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may be located in Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also exist as discrete components in the device.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Persons of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above-mentioned method embodiments are executed; and the aforementioned storage media include: ROM, RAM, magnetic disks, optical disks and other media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, but not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention. scope.

Claims (5)

1. An information processing method, characterized by comprising:
acquiring monitoring information corresponding to a service to be monitored, wherein the monitoring information comprises a service monitoring index and corresponding monitoring data thereof;
acquiring the index type of the service monitoring index;
classifying the service monitoring indexes to obtain a plurality of index sets, wherein each index set comprises service monitoring indexes with the same index type;
for each index set, acquiring a standard storage format corresponding to the index set, and carrying out storage format unification processing on monitoring data corresponding to each service monitoring index in the index set according to the standard storage format to obtain target monitoring information, wherein the storage format unification processing comprises unit unification processing, file occupation space unification processing and precision unification processing;
pushing the target monitoring information to a middleware of a second terminal, so that the second terminal obtains a client subscribing the target monitoring information, and sending the target monitoring information to the client, wherein the middleware comprises a message queue and a message partition;
the pushing the target monitoring information to the middleware of the second terminal comprises the following steps:
acquiring target monitoring information corresponding to a preset core service, and taking the target monitoring information corresponding to the core service as core monitoring information;
encapsulating the core monitoring information according to a preset JSON message format to obtain a plurality of JSON messages;
pushing the JSON message to a target message queue of a second terminal, wherein the target message queue is a message queue corresponding to the preset core service, so that the second terminal obtains a client subscribing the target monitoring information and sends the target monitoring information to the client;
after pushing the JSON message to the target message queue of the second terminal, the method further includes:
acquiring a data transmission log, and acquiring a JSON node from the data transmission log;
acquiring a node message corresponding to the JSON node, and judging whether the message format of the node message is complete;
and if the message format of the node message is incomplete, retransmitting the monitoring data corresponding to the node message.
2. The method according to claim 1, further comprising, after the obtaining the monitoring information corresponding to the service to be monitored:
acquiring a numerical interval corresponding to the service monitoring index;
and obtaining a monitoring result of the service monitoring index according to the monitoring data and the numerical interval corresponding to the service monitoring index, wherein the monitoring result comprises normal index and abnormal index.
3. An information processing apparatus, characterized by comprising:
the information acquisition module is used for acquiring monitoring information corresponding to the service to be monitored, wherein the monitoring information comprises service monitoring indexes and corresponding monitoring data thereof;
the type acquisition module is used for acquiring the index type of the service monitoring index;
information processing module for
Classifying the service monitoring indexes to obtain a plurality of index sets, wherein each index set comprises service monitoring indexes with the same index type;
for each index set, acquiring a standard storage format corresponding to the index set, and carrying out storage format unification processing on monitoring data corresponding to each service monitoring index in the index set according to the standard storage format to obtain target monitoring information, wherein the storage format unification processing comprises unit unification processing, file occupation space unification processing and precision unification processing;
information pushing module for
Pushing the target monitoring information to a middleware of a second terminal, so that the second terminal obtains a client subscribing the target monitoring information, and sending the target monitoring information to the client, wherein the middleware comprises a message queue and a message partition;
the information pushing module is particularly used for
Acquiring target monitoring information corresponding to a preset core service, and taking the target monitoring information corresponding to the core service as core monitoring information;
encapsulating the core monitoring information according to a preset JSON message format to obtain a plurality of JSON messages;
pushing the JSON message to a target message queue of a second terminal, wherein the target message queue is a message queue corresponding to the preset core service, so that the second terminal obtains a client subscribing the target monitoring information and sends the target monitoring information to the client;
the information pushing module is also used for
After pushing the JSON message to a target message queue of a second terminal, acquiring a data transmission log, and acquiring a JSON node from the data transmission log;
acquiring a node message corresponding to the JSON node, and judging whether the message format of the node message is complete;
and if the message format of the node message is incomplete, retransmitting the monitoring data corresponding to the node message.
4. A terminal device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the information processing method of claim 1 or 2.
5. A computer-readable storage medium, in which computer-executable instructions are stored, which when executed by a processor, implement the information processing method according to claim 1 or 2.
CN201911060584.0A 2019-11-01 2019-11-01 Information processing method and device and terminal equipment Active CN110806960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911060584.0A CN110806960B (en) 2019-11-01 2019-11-01 Information processing method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911060584.0A CN110806960B (en) 2019-11-01 2019-11-01 Information processing method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110806960A CN110806960A (en) 2020-02-18
CN110806960B true CN110806960B (en) 2024-01-26

Family

ID=69500896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911060584.0A Active CN110806960B (en) 2019-11-01 2019-11-01 Information processing method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110806960B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432030B (en) * 2020-04-17 2023-11-28 支付宝(杭州)信息技术有限公司 Information release method, device, equipment and medium
CN113342606A (en) * 2021-06-07 2021-09-03 平安证券股份有限公司 Data monitoring method, device, equipment and storage medium based on message middleware
CN114168405B (en) * 2021-11-17 2025-02-14 深圳市梦网科技发展有限公司 Data monitoring method, device, terminal equipment and storage medium
CN115051979B (en) * 2022-04-28 2023-09-19 福思(杭州)智能科技有限公司 Monitoring data debugging system, method, vehicle and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005235187A (en) * 2004-01-23 2005-09-02 Matsushita Electric Ind Co Ltd Electronic form system, electronic form processing method, form creation apparatus, and form processing apparatus
CN101453743A (en) * 2008-10-31 2009-06-10 中国移动通信集团北京有限公司 Real-time monitoring system, apparatus and method
CN107547589A (en) * 2016-06-27 2018-01-05 腾讯科技(深圳)有限公司 A kind of data acquisition treatment method and device
CN109040171A (en) * 2018-06-14 2018-12-18 厦门理工学院 A kind of emergency response system, method, equipment and storage medium
CN109409633A (en) * 2018-08-23 2019-03-01 山东省城市商业银行合作联盟有限公司 Business monitoring and Warning System
CN109582472A (en) * 2018-10-19 2019-04-05 华为技术有限公司 A kind of micro services processing method and equipment
CN110060118A (en) * 2019-02-27 2019-07-26 浙江执御信息技术有限公司 A kind of order is honoured an agreement full link method for real-time monitoring, device and computer equipment
WO2019184229A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method and apparatus for updating variable information, and computer device and storage medium
CN110321273A (en) * 2019-07-09 2019-10-11 政采云有限公司 A kind of business statistical method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9467500B2 (en) * 2012-08-09 2016-10-11 Rockwell Automation Technologies, Inc. Remote industrial monitoring using a cloud infrastructure
CN106921754B (en) * 2017-05-04 2020-07-28 泰康保险集团股份有限公司 Load balancing method, device, medium and electronic device for cluster system
CN108984542A (en) * 2017-05-31 2018-12-11 北京京东尚科信息技术有限公司 Distribution type data collection method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005235187A (en) * 2004-01-23 2005-09-02 Matsushita Electric Ind Co Ltd Electronic form system, electronic form processing method, form creation apparatus, and form processing apparatus
CN101453743A (en) * 2008-10-31 2009-06-10 中国移动通信集团北京有限公司 Real-time monitoring system, apparatus and method
CN107547589A (en) * 2016-06-27 2018-01-05 腾讯科技(深圳)有限公司 A kind of data acquisition treatment method and device
WO2019184229A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method and apparatus for updating variable information, and computer device and storage medium
CN109040171A (en) * 2018-06-14 2018-12-18 厦门理工学院 A kind of emergency response system, method, equipment and storage medium
CN109409633A (en) * 2018-08-23 2019-03-01 山东省城市商业银行合作联盟有限公司 Business monitoring and Warning System
CN109582472A (en) * 2018-10-19 2019-04-05 华为技术有限公司 A kind of micro services processing method and equipment
CN110060118A (en) * 2019-02-27 2019-07-26 浙江执御信息技术有限公司 A kind of order is honoured an agreement full link method for real-time monitoring, device and computer equipment
CN110321273A (en) * 2019-07-09 2019-10-11 政采云有限公司 A kind of business statistical method and device

Also Published As

Publication number Publication date
CN110806960A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN110806960B (en) Information processing method and device and terminal equipment
CN110213068B (en) Message middleware monitoring method and related equipment
CN110784355B (en) Fault identification method and device
CN110232010A (en) A kind of alarm method, alarm server and monitoring server
CN112311617A (en) A configuration data monitoring and alarming method and system
CN110908883A (en) User portrait data monitoring method, system, equipment and storage medium
CN110647447B (en) Abnormal instance detection method, device, equipment and medium for distributed system
US20160299788A1 (en) Prioritising Event Processing Based on System Workload
US20140068329A1 (en) Identifying Unreliable Parts in an IT Infrastructure
CN111984495A (en) A big data monitoring method, device and storage medium
CN116645082A (en) System inspection method, device, equipment and storage medium
CN111064656A (en) Data management method, device, system, storage medium and electronic equipment
CN115801764B (en) File transmission method, device, equipment and storage medium
CN115495234B (en) Resource detection method and device
CN119127625B (en) Database node state monitoring method and device, electronic equipment and storage medium
CN111431733A (en) Service alarm coverage information evaluation method and device
WO2022088803A1 (en) System information analysis method and apparatus based on cloud environment, electronic device, and medium
CN112988417B (en) Message processing method, device, electronic equipment and computer readable medium
CN113794719A (en) Network abnormal traffic analysis method and device based on Elasticissearch technology and electronic equipment
CN117874674A (en) Network about vehicle order monitoring and alarming method and device, computer equipment and storage medium
CN113779021B (en) Data processing method, device, computer system and readable storage medium
CN110245120A (en) Stream computing system and log data processing method of stream computing system
CN111159009A (en) Pressure testing method and device for log service system
CN116743544A (en) Traffic anomaly alarm methods, devices, equipment and storage media
CN114416560A (en) Program crash analysis aggregation method and system

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