CN109672741A - Micro services monitoring method, device, computer equipment and storage medium - Google Patents
Micro services monitoring method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109672741A CN109672741A CN201811589255.0A CN201811589255A CN109672741A CN 109672741 A CN109672741 A CN 109672741A CN 201811589255 A CN201811589255 A CN 201811589255A CN 109672741 A CN109672741 A CN 109672741A
- Authority
- CN
- China
- Prior art keywords
- link
- identifier
- information
- abnormal
- call
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请涉及一种微服务监控方法、装置、计算机设备和存储介质。所述方法包括:显示链路调用监控页面;所述链路调用监控页面包括标识输入入口;接收针对所述标识输入入口的查询标识;显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息;当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求;响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。采用本方法,能够帮助运维人员利用链路调用监控页面快速搜索、跟踪各项链路调用信息,并在微服务调用异常时,快速定位、解决异常问题,使微服务监控方法提供的功能更加多元化。
The present application relates to a microservice monitoring method, apparatus, computer equipment and storage medium. The method includes: displaying a link invocation monitoring page; the link invocation monitoring page includes an identification input entry; receiving a query identification for the identification input entry; displaying link invocation information; The query identifies the information queried and generated when the microservice is invoked; when the link invocation information is abnormal, receive an abnormal query request for the link invocation information; in response to the abnormal query request, display all The abnormal query result of the link calling information; the abnormal query result is the result of querying the link calling information. Using this method can help operation and maintenance personnel to use the link call monitoring page to quickly search and track various link call information, and when the microservice call is abnormal, quickly locate and solve the abnormal problem, so that the functions provided by the microservice monitoring method are more efficient. Diversification.
Description
技术领域technical field
本申请涉及微服务技术领域,特别是涉及一种微服务监控方法、装置、计算机设备和存储介质。The present application relates to the technical field of microservices, and in particular, to a microservice monitoring method, apparatus, computer equipment and storage medium.
背景技术Background technique
微服务是一个新兴的软件架构,主要是将一个大型独立系统拆分为数十个小型服务,各个微服务之间通过超文本传输协议(Hyper Text Transfer Protocol)进行调用的架构。Microservice is an emerging software architecture, which mainly divides a large independent system into dozens of small services, and calls between each microservice through the Hyper Text Transfer Protocol (Hyper Text Transfer Protocol).
现有的微服务监控方法,主要是采用Spring Cloud提供的分布式服务链路监控解决方案,并整合分布式跟踪系统,来收集各个服务器上请求链路的跟踪数据,通过其提供的PEST(Representational State Transfer)API(Application Programming Interface)接口来辅助查询跟踪数据,以实现对分布式系统的程序监控,从而及时发现系统中出现的异常问题。The existing microservice monitoring method mainly adopts the distributed service link monitoring solution provided by Spring Cloud, and integrates the distributed tracking system to collect the tracking data of the request link on each server. State Transfer) API (Application Programming Interface) interface to assist in querying and tracking data to realize program monitoring of distributed systems, so as to detect abnormal problems in the system in time.
然而,现有的微服务监控方法在Spring Cloud工程中集成非常简单,导致后续功能业务的扩展很难进行。并且,随着业务的发展、微服务监控的场景越来越多,现有微服务监控方法无法满足层次不一的需求。However, the integration of the existing microservice monitoring methods in the Spring Cloud project is very simple, which makes it difficult to expand the subsequent functional business. Moreover, with the development of business and more and more scenarios of microservice monitoring, the existing microservice monitoring methods cannot meet the needs of different levels.
因此,现有的微服务监控方法存在着功能单一的问题。Therefore, the existing microservice monitoring methods have the problem of single function.
发明内容SUMMARY OF THE INVENTION
基于此,有必要针对上述微服务监控方法存在着功能单一的技术问题,提供一种能够增加微服务信息监控功能的微服务监控方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a microservice monitoring method, device, computer equipment and storage medium that can increase the microservice information monitoring function in view of the technical problem of single function in the above microservice monitoring method.
一种微服务监控方法,所述方法包括:A microservice monitoring method, the method comprising:
显示链路调用监控页面;所述链路调用监控页面包括标识输入入口;Displaying a link call monitoring page; the link call monitoring page includes an identification input entry;
接收针对所述标识输入入口的查询标识;receiving a query identifier for the identifier input entry;
显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息;Displaying link invocation information; the link invocation information is the information queried according to the query identifier and generated when the microservice is invoked;
当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求;When the link invocation information is abnormal, receive an abnormal query request for the link invocation information;
响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。In response to the abnormal query request, an abnormal query result of the link invocation information is displayed; the abnormal query result is a result of querying the link invocation information.
在其中一个实施例中,在所述显示链路调用监控页面之前,还包括:In one embodiment, before the display link invokes the monitoring page, the method further includes:
接收微服务调用请求;Receive microservice call requests;
根据所述微服务调用请求,生成调用记录项;generating a call record item according to the microservice call request;
当所述调用记录项中未包括第一标识时,生成所述第一标识;所述第一标识用于标记所述微服务调用请求的链路调用信息;所述第一标识用于与所述查询标识进行匹配,并根据所述查询标识指示所述链路调用监控页面显示所述链路调用信息。When the call record item does not include the first identifier, the first identifier is generated; the first identifier is used to mark the link invocation information of the microservice call request; the first identifier is used to communicate with all The query identifier is matched, and the link invocation monitoring page is instructed to display the link invocation information according to the query identifier.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
获取所述调用记录项中的第二标识;obtaining the second identifier in the call record item;
当所述调用记录项中未包括所述第二标识时,根据所述第一标识,生成所述第二标识;所述第二标识用于记录所述微服务调用数量;所述第二标识用于在所述微服务调用异常时,标注异常。When the call record item does not include the second identifier, the second identifier is generated according to the first identifier; the second identifier is used to record the number of microservice calls; the second identifier Used to mark exceptions when the microservice calls exceptions.
在其中一个实施例中,所述当所述调用记录项中未包括所述第二标识时,根据所述第一标识,生成所述第二标识,包括:In one of the embodiments, when the call record item does not include the second identifier, generating the second identifier according to the first identifier includes:
当所述调用记录项中包括所述第一标识时,生成异常的第二标识;所述异常的第二标识用于标注所述微服务的上级调用异常。When the call record item includes the first identifier, a second identifier of the exception is generated; the second identifier of the exception is used to mark the exception of the upper-level call of the microservice.
在其中一个实施例中,在所述显示链路调用监控页面之前,还包括:In one embodiment, before the display link invokes the monitoring page, the method further includes:
获取微服务调用数据;Get microservice call data;
将所述微服务调用数据通过消息队列存储至多个微服务数据库中,供服务器根据所述查询标识,在所述多个微服务数据库中,获取所述链路调用信息;所述微服务调用数据按数据类型分别存储于所述多个微服务数据库中。Store the microservice invocation data in multiple microservice databases through message queues, so that the server can obtain the link invocation information in the multiple microservice databases according to the query identifier; the microservice invocation data They are respectively stored in the plurality of microservice databases according to data types.
在其中一个实施例中,所述多个微服务数据库包括有内存数据库、搜索引擎数据库、分布式数据库以及关系数据库;所述内存数据库用于存储实时统计的所述微服务调用数据;所述搜索引擎数据库用于存储短期的所述微服务调用数据;所述分布式数据库用于存储长期的所述微服务调用数据;所述关系数据库用于存储离线统计的所述微服务调用数据。In one embodiment, the multiple microservice databases include an in-memory database, a search engine database, a distributed database and a relational database; the in-memory database is used to store real-time statistics of the micro-service invocation data; the search engine The engine database is used to store the short-term microservice invocation data; the distributed database is used to store the long-term microservice invocation data; the relational database is used to store the offline statistics of the microservice invocation data.
在其中一个实施例中,在所述接收针对所述标识输入入口的查询标识之后,还包括:In one embodiment, after the receiving the query identifier for the identifier input entry, the method further includes:
获取多个候选标识;所述多个候选标识分别具有对应的候选调用信息;Obtain multiple candidate identifiers; the multiple candidate identifiers respectively have corresponding candidate call information;
将所述查询标识与所述多个候选标识进行匹配;matching the query identifier with the multiple candidate identifiers;
在所述多个候选标识中,确定目标标识;In the plurality of candidate identifiers, determine a target identifier;
提取所述目标标识对应的候选调用信息,作为所述链路调用信息。The candidate invocation information corresponding to the target identifier is extracted as the link invocation information.
一种微服务监控装置,所述装置包括:A microservice monitoring device, the device comprising:
页面显示模块,用于显示链路调用监控页面;所述链路调用监控页面包括标识输入入口;a page display module for displaying a link call monitoring page; the link call monitoring page includes an identification input entry;
标识接收模块,用于接收针对所述标识输入入口的查询标识;an identification receiving module for receiving a query identification for the identification input entry;
信息显示模块,用于显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息;an information display module, configured to display link invocation information; the link invocation information is the information queried according to the query identifier and generated when the microservice is invoked;
请求接收模块,用于当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求;a request receiving module, configured to receive an abnormal query request for the link invocation information when the link invocation information is abnormal;
结果显示模块,用于响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。A result display module, configured to display an abnormal query result of the link invocation information in response to the abnormal query request; the abnormal query result is a result of querying the link invocation information.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
显示链路调用监控页面;所述链路调用监控页面包括标识输入入口;Displaying a link call monitoring page; the link call monitoring page includes an identification input entry;
接收针对所述标识输入入口的查询标识;receiving a query identifier for the identifier input entry;
显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息;Displaying link invocation information; the link invocation information is the information queried according to the query identifier and generated when the microservice is invoked;
当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求;When the link invocation information is abnormal, receive an abnormal query request for the link invocation information;
响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。In response to the abnormal query request, an abnormal query result of the link invocation information is displayed; the abnormal query result is a result of querying the link invocation information.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
显示链路调用监控页面;所述链路调用监控页面包括标识输入入口;Displaying a link call monitoring page; the link call monitoring page includes an identification input entry;
接收针对所述标识输入入口的查询标识;receiving a query identifier for the identifier input entry;
显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息;Displaying link invocation information; the link invocation information is the information queried according to the query identifier and generated when the microservice is invoked;
当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求;When the link invocation information is abnormal, receive an abnormal query request for the link invocation information;
响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。In response to the abnormal query request, an abnormal query result of the link invocation information is displayed; the abnormal query result is a result of querying the link invocation information.
上述微服务监控方法、装置、计算机设备和存储介质,用户终端显示的链路调用监控页面用于提供给运维人员输入查询标识后,查询其标识相关的链路调用信息,并在链路调用信息异常的情况下,接收运维人员发起的异常查询请求,响应于该请求之后显示异常查询结果。具体包括对标识的记录处理,以及链路调用信息的传输以及分类存储。本发明提供一个链路调用监控页面,便于运维人员快速搜索、跟踪链路调用信息,并在微服务调用异常时,帮助运维人员快速定位、解决异常问题,使其微服务监控方法提供的功能更加多元化。The above microservice monitoring method, device, computer equipment and storage medium, the link call monitoring page displayed by the user terminal is used to provide the operation and maintenance personnel after inputting the query ID, query the link call information related to the ID, and call the link when the link is called. In the case of abnormal information, the abnormal query request initiated by the operation and maintenance personnel is received, and the abnormal query result is displayed after responding to the request. Specifically, it includes the record processing of the identification, and the transmission and classification storage of the link invocation information. The invention provides a link invocation monitoring page, which is convenient for operation and maintenance personnel to quickly search and track link invocation information, and when the micro-service invocation is abnormal, it helps the operation and maintenance personnel to quickly locate and solve the abnormal problem, so that the micro-service monitoring method provides the The functions are more diversified.
附图说明Description of drawings
图1为一个实施例中微服务监控方法的应用环境图;Fig. 1 is the application environment diagram of the microservice monitoring method in one embodiment;
图2为一个实施例中微服务监控方法的流程示意图;2 is a schematic flowchart of a microservice monitoring method in one embodiment;
图3为一个实施例中微服务监控方法的信息监控界面图;Fig. 3 is the information monitoring interface diagram of the microservice monitoring method in one embodiment;
图4为一个实施例中微服务监控方法的异常查询界面图;Fig. 4 is the abnormal query interface diagram of the microservice monitoring method in one embodiment;
图5为一个实施例中微服务监控方法的数据传输示意图;5 is a schematic diagram of data transmission of a microservice monitoring method in one embodiment;
图6为一个实施例中微服务监控装置的结构框图;6 is a structural block diagram of a microservice monitoring device in one embodiment;
图7为一个实施例中计算机设备的内部结构图;Fig. 7 is the internal structure diagram of the computer device in one embodiment;
图8为另一个实施例中计算机设备的内部结构图。FIG. 8 is an internal structure diagram of a computer device in another embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
首先需要说明的是,本发明实施例所涉及的术语“第一\第二”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二”在允许的情况下可以互换特定的顺序或先后次序。应该理解“第一\第二”区分的对象在适当情况下可以互换,以使这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。First of all, it should be noted that the term "first\second" involved in the embodiments of the present invention is only to distinguish similar objects, and does not represent a specific ordering of objects. It is understandable that "first\second" allows The specific order or sequence may be interchanged. It should be understood that the "first\second" distinctions may be interchanged under appropriate circumstances to enable the embodiments of the invention described herein to be practiced in sequences other than those illustrated or described herein.
微服务(Micro service Architecture)是一种软件架构,具体而言是一种将软件应用程序设计为可独立部署的服务套件的特定方式,即将单个应用程序作为一套小型服务开发的方法,每种应用程序都在自己的进程中运行,并与轻量级机制进行通信,该轻量级机制通常是HTTP(Hyper Text Transfer Protocol)资源API(Application ProgrammingInterface)。这些服务是围绕业务功能构建的,可以通过全自动部署机制独立部署。并且,这些服务的集中管理最少,可以用不同的编程语言编写,并使用不同的数据存储技术。Micro service Architecture is a software architecture, specifically a specific way of designing software applications as a suite of services that can be deployed independently, that is, a method of developing a single application as a set of small services, each Applications all run in their own process and communicate with a lightweight mechanism, usually the HTTP (Hyper Text Transfer Protocol) resource API (Application Programming Interface). These services are built around business functionality and can be deployed independently through a fully automated deployment mechanism. Also, these services are minimally centrally managed, can be written in different programming languages, and use different data storage technologies.
本发明所提供的,一种微服务监控方法,可以应用于如图1所示的应用环境中。其中,在一个微服务监控系统中,监控终端102和监控服务器104通过网络与用户终端106进行通信。其中,监控终端102和用户终端106可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,监控服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The microservice monitoring method provided by the present invention can be applied to the application environment shown in FIG. 1 . Wherein, in a microservice monitoring system, the monitoring terminal 102 and the monitoring server 104 communicate with the user terminal 106 through the network. The monitoring terminal 102 and the user terminal 106 can be, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the monitoring server 104 can be an independent server or a server cluster composed of multiple servers. to fulfill.
在一个实施例中,如图2所示,提供了一种微服务监控方法,以该方法应用于图1中的监控终端102为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a microservice monitoring method is provided, and the method is applied to the monitoring terminal 102 in FIG. 1 as an example for description, including the following steps:
步骤S210,显示链路调用监控页面;所述链路调用监控页面包括标识输入入口。Step S210, displaying a link invocation monitoring page; the link invocation monitoring page includes an identification input entry.
其中,链路调用监控页面显示于监控终端102,提供运维人员对微服务调用信息进行查询、监控的页面,通过该页面提供的查询入口,可查询出相关该用户调用过微服务的信息,可用于作为用户与设备的交互界面,可参考图3所示的页面。Among them, the link call monitoring page is displayed on the monitoring terminal 102, and provides a page for operation and maintenance personnel to query and monitor the micro-service call information. Through the query entry provided on this page, the information about the micro-services that the user has called can be queried. It can be used as an interactive interface between the user and the device, please refer to the page shown in Figure 3.
其中,标识输入入口可以是用于接收用户在链路调用监控页面上输入标识的输入框,也可以是接收标识输入指令的触发按键,例如,虚拟按钮等按钮类组件,例如,前端设备获取到的用户ID,或是记录某个用户ID一次微服务调用的调用链ID。The identifier input entry may be an input box for receiving an identifier input by a user on the link call monitoring page, or a trigger button for receiving an identifier input instruction, for example, a button-type component such as a virtual button, for example, the front-end device obtains The user ID of the user ID, or the call chain ID that records a microservice call for a user ID.
需要说明的是,用户ID是用户终端106在发起微服务访问操作时,由监控服务器104获取的用户终端的用户ID,而调用链ID是针对各个发起微服务访问的用户在一次微服务调用结束后,由监控服务器104为此次调用分配的、一个全局唯一的字符串,该字符串在各个微服务调用期间保持不变,便于运维人员获取该全局唯一字符串的相关信息。It should be noted that the user ID is the user ID of the user terminal obtained by the monitoring server 104 when the user terminal 106 initiates the microservice access operation, and the call chain ID is the end of a microservice call for each user who initiates microservice access. Afterwards, a globally unique string is allocated by the monitoring server 104 for this call, and the string remains unchanged during each microservice call, so that the operation and maintenance personnel can obtain relevant information of the globally unique string.
具体实现中,提供一个链路调用监控页面,运维人员可通过在该页面中设计的标识输入入口,获取各用户终端106对微服务的调用信息,如传递和何种参数、执行了何种操作等等。即在监控终端102上,可显示路调用监控页面,当用户输入某个标识后,监控服务器104相应接收到该标识,以此利用该标识查询数据库中标识对应的调用信息,统计完成后反馈至监控终端102,以使运维人员能够根据链路调用监控页面,以标识作为查询信号,获取到相同标识所涉及的所有微服务调用信息,以此对各标识对应账户的微服务调用信息进行监控。In the specific implementation, a link call monitoring page is provided, and the operation and maintenance personnel can obtain the call information of each user terminal 106 to the micro-service through the logo input entry designed in the page, such as what parameters are passed and what kind of execution is performed. operation and so on. That is, on the monitoring terminal 102, a road call monitoring page can be displayed. When the user inputs a certain identifier, the monitoring server 104 receives the identifier accordingly, and uses the identifier to query the call information corresponding to the identifier in the database. Monitoring terminal 102, so that operation and maintenance personnel can call the monitoring page according to the link, and use the identifier as a query signal to obtain all the micro-service invocation information involved in the same identifier, so as to monitor the micro-service invocation information of the account corresponding to each identifier. .
例如,如图3所示,显示了一个链路调用监控页面,该页面上提供有标识输入入口,该标识输入入口可以是“用户ID”,也可以是“调用链ID”,当运维人员在“用户ID”的输入框中输入ID号后,则相应提交了查询该用户ID的相关微服务调用的信息。For example, as shown in Figure 3, a link call monitoring page is displayed, and the page is provided with an identification input entry. The identification input entry can be "user ID" or "call chain ID". When the operation and maintenance personnel After entering the ID number in the input box of "User ID", the information about the related microservice call for querying the user ID is submitted accordingly.
步骤S220,接收针对所述标识输入入口的查询标识。Step S220, receiving a query identifier for the identifier input entry.
其中,查询标识是指用户通过交互界面输入的、用于查询监控服务器104中存储微服务调用信息的标识,该查询标识具备身份识别作为,即该查询标识是唯一的,监控服务器104可根据该查询标识获取到仅针对该查询标识的相关信息。查询标识可以是由监控服务器104在用户终端106发起微服务调用时采集到的用户ID,也可以是由监控服务器104响应各用户终端106调用服务所分配的字符串,例如,手机号13711112222,字符串0504321C2F10。The query identifier refers to the identifier input by the user through the interactive interface and used to query the microservice invocation information stored in the monitoring server 104. The query identifier has the identity recognition function, that is, the query identifier is unique, and the monitoring server 104 can The query ID obtains relevant information only for the query ID. The query identifier can be the user ID collected by the monitoring server 104 when the user terminal 106 initiates the microservice call, or it can be a character string allocated by the monitoring server 104 in response to each user terminal 106 calling the service, for example, the mobile phone number 13711112222, the character String 0504321C2F10.
具体实现中,监控终端102上显示了链路调用监控页面,且运维人员利用链路调用监控页面上的标识输入入口,输入了查询标识后,监控服务器104将接收到该查询标识,该查询标识可以是监控服务器104前期生成的、任何进制的一段字符串,还可以是体现个用户账户身份的标识识别码,如手机号、IP地址等。In the specific implementation, the monitoring terminal 102 displays the link call monitoring page, and the operation and maintenance personnel use the identifier input entry on the link call monitoring page. After inputting the query identifier, the monitoring server 104 will receive the query identifier, and the query The identifier may be a string of any hexadecimal system generated by the monitoring server 104 in the early stage, or may be an identification code that reflects the identity of a user account, such as a mobile phone number, an IP address, and the like.
例如,运维人员在链路调用监控页面上的“调用链ID”输入框内,输入了查询标识为“0504321C2F10”,则向监控服务器104发送了该查询标识,监控服务器104后续将针对该查询标识获取存储在各数据库中的相关微服务调用信息。For example, the operation and maintenance personnel input the query ID as "0504321C2F10" in the "call chain ID" input box on the link call monitoring page, and then send the query ID to the monitoring server 104, and the monitoring server 104 will follow up on the query Identify the related microservice invocation information stored in each database.
步骤S230,显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息。Step S230, displaying link invocation information; the link invocation information is information queried according to the query identifier and generated when the microservice is invoked.
其中,链路调用信息是指包含有相同查询标识的、用于对链路调用信息起关联作用的信息,例如,某用户终端106调用微服务的调用请求时间、调用持续时间、调用微服务所含数量等。The link invocation information refers to information that contains the same query identifier and is used to correlate the link invocation information. Including quantity etc.
具体实现中,运维人员在监控终端102的标识输入入口输入了查询标识后,监控服务器104将通过监控终端102接收到该查询标识,利用接收到的查询标识进入对该标识的一个信息查询、分析处理步骤,在完成针对该查询标识的信息获取之后,监控服务器104发送查询到的信息至监控终端102,由监控终端102按照预定规则在链路调用监控页面上显示该信息,即显示关于该查询标识的链路调用信息。这里,预定规则可以是指页面的排版,即监控终端102获取了查询标识的各项信息后,将按照预先设置的页面排版要求显示其各项链路调用信息。In the specific implementation, after the operation and maintenance personnel input the query identification at the identification input entry of the monitoring terminal 102, the monitoring server 104 will receive the query identification through the monitoring terminal 102, and use the received query identification to enter an information query, Analysis and processing step, after completing the information acquisition for the query identifier, the monitoring server 104 sends the queried information to the monitoring terminal 102, and the monitoring terminal 102 displays the information on the link call monitoring page according to predetermined rules, that is, displays the information about the query. Query the identified link invocation information. Here, the predetermined rule may refer to page layout, that is, after the monitoring terminal 102 obtains various information of the query identifier, it will display various link calling information according to preset page layout requirements.
例如,可参考图3,图3中包括有多个链路调用信息,每个链路调用信息对应关联不同的查询标识,该查询标识即为“调用链ID”或“用户ID”,运维人员在各标识输入入口处输入了不同的查询标识后,监控终端102将仅显示该查询标识的相关链路调用信息,如图4所示,监控终端102的链路调用监控页面上仅显示了“调用链ID”为“0504321C2F10”,以及“用户ID”为“hzf/1371373****”的链路调用信息,该链路调用信息中包括有“时间”,即调用时间“300ms”;“服务”,即调用涉及微服务的数量“4”;“深度”,即微服务调用层级“3”;“SPAN”,即span标识的数量“4”等等。For example, refer to FIG. 3, which includes a plurality of link invocation information, each link invocation information is associated with a different query identifier, and the query identifier is the "call chain ID" or "user ID". After the personnel input different query identifiers at each identifier input entry, the monitoring terminal 102 will only display the relevant link invocation information of the query identifier. As shown in FIG. 4 , the link invocation monitoring page of the monitoring terminal 102 only displays The "call chain ID" is "0504321C2F10", and the "user ID" is "hzf/1371373****" link call information, the link call information includes "time", that is, the call time "300ms"; "Service", that is, the number of microservices involved in the call "4"; "depth", that is, the microservice call level "3"; "SPAN", that is, the number of span identifiers "4" and so on.
步骤S240,当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求。Step S240, when the link invocation information is abnormal, receive an abnormal query request for the link invocation information.
其中,异常查询请求是指针对异常的链路调用信息进行的查询操作,该查询操作可以是点击链路调用信息的异常处,也可以是在链路调用信息出现异常时弹出异常弹窗,点击该异常弹窗即可发起链路调用信息的异常查询请求。The abnormal query request refers to a query operation for abnormal link invocation information. The query operation may be clicking on the abnormal place of the link invocation information, or popping up an abnormal pop-up window when the link invocation information is abnormal. Click The abnormal pop-up window can initiate an abnormal query request for link invocation information.
具体实现中,运维人员可通过监控终端102的链路调用监控页面监控各项链路调用信息,若存在有某项链路调用信息出现异常,则该项异常提示可以是以突出颜色显示来提示异常,也可以是出现一个异常弹窗来提示异常。运维人员针对不同的异常提示,在监控终端102上操作,点击异常提示的链路调用信息,或是拖动异常提示的链路调用信息后,监控终端102相应发起该操作的异常查询请求,由此监控服务器104响应请求,执行下一步骤。In the specific implementation, the operation and maintenance personnel can monitor various link invocation information through the link invocation monitoring page of the monitoring terminal 102. If there is an abnormality in a certain link invocation information, the abnormality prompt can be displayed in a highlighted color. An exception can also be an exception pop-up window to prompt the exception. The operation and maintenance personnel operate on the monitoring terminal 102 for different abnormal prompts, click the link call information of the abnormal prompt, or drag the link call information of the abnormal prompt, and the monitoring terminal 102 correspondingly initiates the abnormal query request of the operation, The monitoring server 104 thus responds to the request and executes the next step.
例如,可参考图3和图4,首先在图3中,“调用链ID”为“0504321C2F10”的链路调用信息在链路调用监控页面上以突出颜色显示异常,当运维人员在监控终端102上点击该条链路调用信息后,即通过监控终端102向监控服务器104提交异常查询请求。For example, please refer to Figure 3 and Figure 4. First, in Figure 3, the link call information whose "call chain ID" is "0504321C2F10" is displayed abnormally in a highlighted color on the link call monitoring page. When the operation and maintenance personnel are monitoring the terminal After clicking on the link call information on 102 , an abnormal query request is submitted to the monitoring server 104 through the monitoring terminal 102 .
步骤S250,响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。Step S250, in response to the abnormal query request, displaying the abnormal query result of the link invocation information; the abnormal query result is a result of querying the link invocation information.
其中,异常查询结果是指链路调用信息的异常统计情况,可以包括调用时长异常、调用某个微服务出现异常等异常的统计结果。Among them, the abnormal query result refers to the abnormal statistics of link invocation information, which may include abnormal statistical results such as abnormal invocation duration, abnormal invocation of a microservice, etc.
具体实现中,运维人员在监控终端102上提交了异常查询请求后,监控服务器104响应该请求,并向监控终端102发送该异常链路调用信息的异常查询结果,监控终端102接收到该异常查询结果后,按照预先设置的页面排版要求,在链路调用监控页面上显示其异常查询结果。In the specific implementation, after the operation and maintenance personnel submit the abnormal query request on the monitoring terminal 102, the monitoring server 104 responds to the request and sends the abnormal query result of the abnormal link call information to the monitoring terminal 102, and the monitoring terminal 102 receives the abnormality After querying the results, the abnormal query results are displayed on the link call monitoring page according to the preset page layout requirements.
例如,监控终端102接收到监控服务器104发送的、针对该异常链路调用信息查询分析得到的异常查询结果后,在链路调用监控页面上,显示为如图4所示的页面,此时该页面显示的异常查询界面图中内容,即为该异常的链路调用信息的异常查询结果。For example, after the monitoring terminal 102 receives the abnormal query result sent by the monitoring server 104 and obtained by querying and analyzing the abnormal link invocation information, it displays the page shown in FIG. 4 on the link invocation monitoring page. The content in the abnormal query interface displayed on the page is the abnormal query result of the abnormal link call information.
上述微服务监控方法中,用户终端显示的链路调用监控页面用于提供给运维人员输入查询标识后,查询其标识相关的链路调用信息,并在链路调用信息异常的情况下,接收运维人员发起的异常查询请求,响应于该请求之后显示异常查询结果。本发明提供一个链路调用监控页面,便于运维人员快速搜索、跟踪链路调用信息,并在微服务调用异常时,帮助运维人员快速定位、解决异常问题,使其微服务监控方法提供的功能更加多元化。In the above microservice monitoring method, the link call monitoring page displayed by the user terminal is used to provide the operation and maintenance personnel with inputting the query ID, and then query the link call information related to the ID, and receive the link call information when the link call information is abnormal. The abnormal query request initiated by the operation and maintenance personnel, and the abnormal query result is displayed after responding to the request. The invention provides a link invocation monitoring page, which is convenient for operation and maintenance personnel to quickly search and track link invocation information, and when the micro-service invocation is abnormal, it helps the operation and maintenance personnel to quickly locate and solve the abnormal problem, so that the micro-service monitoring method provides the The functions are more diversified.
在一个实施例中,在所述步骤S210之前,还包括:In one embodiment, before the step S210, the method further includes:
接收微服务调用请求;根据所述微服务调用请求,生成调用记录项;当所述调用记录项中未包括第一标识时,生成所述第一标识;所述第一标识用于标记所述微服务调用请求的链路调用信息;所述第一标识用于与所述查询标识进行匹配,并根据所述查询标识指示所述链路调用监控页面显示所述链路调用信息。Receive a microservice call request; generate a call record item according to the microservice call request; generate the first identifier when the call record item does not include a first identifier; the first identifier is used to mark the Link invocation information of a microservice invocation request; the first identifier is used for matching with the query identifier, and instructs the link invocation monitoring page to display the link invocation information according to the query identifier.
其中,微服务调用请求是指由用户终端106向监控服务器104发起的请求,该请求在监控服务器104中的后端系统会经过多个不同的微服务调用,由多个微服务协同产生最后的请求结果。The microservice call request refers to a request initiated by the user terminal 106 to the monitoring server 104. The back-end system of the request in the monitoring server 104 will be called by a number of different microservices, and the final result will be generated by the cooperation of the multiple microservices. request result.
其中,调用记录项是用户终端106请求监控服务器104调用各个微服务的信息采集监控结果集,调用记录项中包括有用户终端的请求时间、请求协议、微服务调用持续时间等信息。The call record item is the information collection and monitoring result set that the user terminal 106 requests the monitoring server 104 to call each microservice, and the call record item includes the request time of the user terminal, the request protocol, the duration of the microservice call and other information.
其中,第一标识是指用户终端106发起的一次外部访问多个微服务,由监控服务器104为其生成的一个全局唯一标识。在实际应用中,第一标识也可称之为交易标识。The first identifier refers to a global unique identifier generated by the monitoring server 104 for one external access to multiple microservices initiated by the user terminal 106 . In practical applications, the first identifier may also be referred to as a transaction identifier.
具体实现中,监控服务器104必须采集多项链路调用信息,并存储至数据库中,方可提供运维人员在监控终端102对其实施信息监控。监控服务器104首先接收到由用户终端106发送的微服务调用请求,响应该请求后,生成调用记录项,此时用户终端106的用户身份信息、请求信息等将被微服务监控系统中的第一个微服务监控组件所采集,并由第一个微服务/微应用生成一个全局唯一的第一标识,以此第一标识关联该用户终端106访问各项微服务的信息。因此,监控服务器104接收到用户终端106的微服务调用请求,并生成调用记录项之后,首先要判断该调用记录项中是否存在有第一标识,若无,则生成一个全局唯一的第一标识,并且,在各微服务的调用之间,第一标识保持不变。In a specific implementation, the monitoring server 104 must collect multiple pieces of link invocation information and store them in the database, so that the operation and maintenance personnel can perform information monitoring on the monitoring terminal 102 . The monitoring server 104 first receives the microservice call request sent by the user terminal 106, and after responding to the request, generates a call record item. At this time, the user identity information and request information of the user terminal 106 will be used by the first microservice monitoring system. A globally unique first identifier is collected by the first microservice/microapplication, and the first identifier is used to associate the information of the user terminal 106 accessing various microservices. Therefore, after the monitoring server 104 receives the microservice invocation request from the user terminal 106 and generates the invocation record item, it must first determine whether there is a first identifier in the invocation record item, and if not, generate a globally unique first identifier , and between invocations of each microservice, the first identifier remains unchanged.
例如,监控服务器104接收到用户终端106发送的微服务调用请求后,首先生成调用记录项(交易记录对象),然后判断该调用记录项的超文本传输协议请求头中是否存在有第一标识,若不存在,则生成一个全局唯一的第一标识。此外,监控服务器104利用微服务监控组件(Filter)采集信息,手机所有用户调用信息,微服务运行状态信息等,如用户名、用电户号等内容。For example, after receiving the microservice call request sent by the user terminal 106, the monitoring server 104 first generates a call record item (transaction record object), and then judges whether there is a first identifier in the hypertext transfer protocol request header of the call record item, If it does not exist, a globally unique first identifier is generated. In addition, the monitoring server 104 uses the microservice monitoring component (Filter) to collect information, all user call information of the mobile phone, and microservice running status information, such as user name, user number, and the like.
在一个实施例中,所述方法还包括:In one embodiment, the method further includes:
获取所述调用记录项中的第二标识;当所述调用记录项中未包括所述第二标识时,根据所述第一标识,生成所述第二标识;所述第二标识用于记录所述微服务调用数量;所述第二标识用于在所述微服务调用异常时,标注异常。Obtain the second identifier in the call record item; when the call record item does not include the second identifier, generate the second identifier according to the first identifier; the second identifier is used to record The number of microservice calls; the second identifier is used to mark exceptions when the microservice calls are abnormal.
其中,第二标识是指监控服务器104接收到用户终端106发送的微服务调用请求后,与第一标识同时生成的一个标识,第二标识不同于第一标识,其并非全局唯一,相反是根据不同的微服务调用生成不同的标识值,即在当前调用微服务所生成第二标识的基础上,若调用其他微服务,则为其他被调用微服务产生新的第二标识,以此记录一次调用请求涉及的微服务数量,其作用在于可通过当前的第二标识,使监控服务器104能够分析出其上级调用的微服务,或下级调用的微服务,为各项调用微服务之间建立层级关系。The second identifier refers to an identifier generated at the same time as the first identifier after the monitoring server 104 receives the microservice invocation request sent by the user terminal 106. The second identifier is different from the first identifier and is not globally unique. On the contrary, it is based on Different microservice calls generate different identifier values, that is, on the basis of the second identifier generated by the current calling microservice, if other microservices are called, a new second identifier will be generated for the other called microservices to record once The number of microservices involved in the invocation request, the function of which is to enable the monitoring server 104 to analyze the microservices invoked by its superiors or the microservices invoked by subordinates through the current second identifier, so as to establish a hierarchy between the invoked microservices relation.
具体实现中,监控服务器104为发起微服务调用请求的用户终端106生成调用记录项之后,不仅会获取第一标识,还将获取第二标识。当调用记录项中未包括第二标识时,主要根据第一标识的存在情况,生成第二标识。In a specific implementation, after the monitoring server 104 generates a call record item for the user terminal 106 that initiates the microservice call request, it will not only acquire the first identifier, but also acquire the second identifier. When the call record item does not include the second identifier, the second identifier is mainly generated according to the existence of the first identifier.
例如,第一标识存在时,生成第二标识的值为9,表示上级微服务调用发生异常;第一标识若不存在,则在生成第一标识的同时,生成第一标识的值为0,表示调用开始,微服务调用数量开始计算。需要说明的是,将第二标识的值取一个自然整数,是便于监控服务器104在后续调用信息时,可进行微服务调用定位,以及异常排查。在一次微服务调用中,不会出现第一标识不存在而第二标识存在的情况,否则此次调用无意义。For example, when the first identifier exists, the value of the second identifier generated is 9, indicating that an exception occurs in the upper-level microservice call; if the first identifier does not exist, when the first identifier is generated, the value of the first identifier is 0, Indicates that the call starts, and the number of microservice calls starts to count. It should be noted that taking the value of the second identifier as a natural integer is convenient for the monitoring server 104 to perform microservice invocation positioning and exception investigation when the information is subsequently invoked. In a microservice call, there will not be a situation where the first identifier does not exist but the second identifier exists, otherwise the call is meaningless.
在一个实施例中,所述当所述调用记录项中未包括所述第二标识时,根据所述第一标识,生成所述第二标识,包括:In one embodiment, when the invocation record item does not include the second identifier, generating the second identifier according to the first identifier includes:
当所述调用记录项中包括所述第一标识时,生成异常的第二标识;所述异常的第二标识用于标注所述微服务的上级调用异常。When the call record item includes the first identifier, a second identifier of the exception is generated; the second identifier of the exception is used to mark the exception of the upper-level call of the microservice.
具体实现中,监控服务器104生成的调用记录项中,若未包括第二标识,则将获取第一标识,并根据第一标识的存在情况生成预设的第二标识。In a specific implementation, if the call record item generated by the monitoring server 104 does not include the second identifier, the first identifier will be acquired, and a preset second identifier will be generated according to the existence of the first identifier.
例如,调用记录项中未包括第二标识,而第一标识存在时,则生成一个第二标识,并取值为9;若第一标识存在,则同样生成一个第二标识,但第二标识取值为0。For example, if the second identifier is not included in the call record item, but the first identifier exists, a second identifier is generated and takes the value 9; if the first identifier exists, a second identifier is also generated, but the second identifier is generated. The value is 0.
在一个实施例中,在所述步骤S210之前,还包括:In one embodiment, before the step S210, the method further includes:
获取微服务调用数据;将所述微服务调用数据通过消息队列存储至多个微服务数据库中,供服务器根据所述查询标识,在所述多个微服务数据库中,获取所述链路调用信息;所述微服务调用数据按数据类型分别存储于所述多个微服务数据库中。Acquiring microservice invocation data; storing the microservice invocation data in a plurality of microservice databases through a message queue, so that the server can acquire the link invocation information in the plurality of microservice databases according to the query identifier; The microservice invocation data is stored in the multiple microservice databases according to data types.
其中,微服务调用数据是指各微服务的访问次数、系统的并发访问量等实时信息,还包括短期或长期的系统告警信息等。Among them, the microservice invocation data refers to real-time information such as the number of visits of each microservice, the concurrent access volume of the system, etc., and also includes short-term or long-term system alarm information.
具体实现中,监控服务器104提供监控终端102监控微服务调用信息,首先要对各项微服务的调用信息进行采集,然后进行各项信息数据的传输和处理。首先,监控服务器104获取各项微服务调用数据,然后将各项微服务调用数据存储至本地,以文件形式通过消息队列传输至各个数据库中,各数据库存储数据的类型不同,因此,各数据库通过不同的模块获取不同数据类型的数据库。In the specific implementation, the monitoring server 104 provides the monitoring terminal 102 to monitor the invocation information of the micro-services. First, the invocation information of various micro-services should be collected, and then the transmission and processing of various information data should be performed. First, the monitoring server 104 obtains the calling data of various microservices, then stores the calling data of various microservices locally, and transmits it to each database in the form of a file through a message queue. The types of data stored in each database are different. Different modules fetch databases of different data types.
需要说明的是,微服务调用数据的传输方式存在两种形式,可参考图5,图5所示为一个实施例中微服务监控方法的数据传输示意图。其中,微服务监控组件(Filter)可以是将微服务调用数据通过信息输入模块传输至消息队列,也可以是直接传输至消息队列。It should be noted that there are two modes of transmission of microservice invocation data, and reference may be made to FIG. 5 , which is a schematic diagram of data transmission of the microservice monitoring method in one embodiment. Among them, the microservice monitoring component (Filter) may transmit the microservice call data to the message queue through the information input module, or may directly transmit it to the message queue.
例如,可参考图5,微服务监控系统中存在有4个数据库,各个数据库存储的数据类型不同,由各个不同的模块进行处理。For example, referring to Figure 5, there are 4 databases in the microservice monitoring system, and each database stores different types of data, which are processed by different modules.
在一个实施例中,所述多个微服务数据库包括有内存数据库、搜索引擎数据库、分布式数据库以及关系数据库;所述内存数据库用于存储实时统计的所述微服务调用数据;所述搜索引擎数据库用于存储短期的所述微服务调用数据;所述分布式数据库用于存储长期的所述微服务调用数据;所述关系数据库用于存储离线统计的所述微服务调用数据。In one embodiment, the multiple microservice databases include an in-memory database, a search engine database, a distributed database, and a relational database; the in-memory database is used to store real-time statistics of the micro-service invocation data; the search engine The database is used to store the short-term microservice invocation data; the distributed database is used to store the long-term microservice invocation data; the relational database is used to store the offline statistics of the microservice invocation data.
其中,内存数据库是指Redis,可以极大的提高查询性能,监控信息并实时分析,且将频繁更新的监控信息统计结果如各微服务的访问次数、系统并发访问量等实时信息,输出到Redis内存数据库,具有良好的读写性能。内存数据库实时分析的计算数据可实时对外发布,Redis中存储的信息主要是一些实时监控数据和告警信息,存储的数据量较少。Among them, the in-memory database refers to Redis, which can greatly improve query performance, monitor information and analyze it in real time, and output the statistics results of frequently updated monitoring information, such as the number of visits of each microservice, the number of concurrent system visits, and other real-time information to Redis. In-memory database with good read and write performance. The calculation data of the real-time analysis of the in-memory database can be released in real time. The information stored in Redis is mainly some real-time monitoring data and alarm information, and the amount of stored data is small.
其中,搜索引擎数据库是指Elastic Search,可以快速搜索相关信息,快速定位问题。存储最近几天或一个月的短期数据,在Elastic Search中可以快速进行多条件的快速检索。Among them, the search engine database refers to Elastic Search, which can quickly search for relevant information and quickly locate problems. Store short-term data in recent days or a month, and can quickly retrieve multiple conditions quickly in Elastic Search.
其中,分布式数据库是指Hbase,存储较长周期的监控信息,是离线分析的数据源。Among them, the distributed database refers to Hbase, which stores monitoring information for a long period and is the data source for offline analysis.
其中,关系数据库是指MySQL,主要存储离线分析的统计结果结构化数据。Among them, the relational database refers to MySQL, which mainly stores structured data of statistical results of offline analysis.
具体实现中,监控服务器104采集获取的微服务调用数据,将被分析并存储至不同的数据库,存储依据取决于数据类型。In a specific implementation, the microservice invocation data collected and acquired by the monitoring server 104 will be analyzed and stored in different databases, and the storage basis depends on the data type.
例如,如图5所示,实时计算服务模块从消息队列中获取实施汇总数据,存储至内存数据库中;搜索引擎装载模块从消息队列中获取短期的微服务调用数据,存储至搜索引擎数据库;持久化服务模块从消息队列中获取长期的微服务调用数据,存储至分布式数据库;离线计算服务模块从消息队列中获取离线分析的统计结果机构化数据,存储至关系数据库中。For example, as shown in Figure 5, the real-time computing service module obtains implementation summary data from the message queue and stores it in the in-memory database; the search engine loading module obtains short-term microservice call data from the message queue and stores it in the search engine database; persistent The service module obtains long-term microservice call data from the message queue and stores it in the distributed database; the offline computing service module obtains the institutionalized data of the statistical results of offline analysis from the message queue and stores it in the relational database.
在一个实施例中,在所述步骤S220之后,还包括:In one embodiment, after the step S220, it further includes:
获取多个候选标识;所述多个候选标识分别具有对应的候选调用信息;将所述查询标识与所述多个候选标识进行匹配;在所述多个候选标识中,确定目标标识;提取所述目标标识对应的候选调用信息,作为所述链路调用信息。Obtaining multiple candidate identifiers; the multiple candidate identifiers respectively have corresponding candidate call information; matching the query identifier with the multiple candidate identifiers; determining the target identifier from the multiple candidate identifiers; extracting all the candidate identifiers The candidate invocation information corresponding to the target identifier is used as the link invocation information.
其中,候选标识是指监控服务器104前期采集获取调用信息,以存储至数据库的标识,例如,用户手机号、用户ID、用户IP地址,自定义生成的字符串0674321C2F10等。Wherein, the candidate identifier refers to an identifier that the monitoring server 104 collects and obtains the calling information in the early stage to store in the database, for example, the user's mobile phone number, user ID, user IP address, a custom generated string 0674321C2F10, etc.
其中,目标标识是指在候选标识中,与查询标识匹配一致的标识。The target identifier refers to an identifier that matches the query identifier among the candidate identifiers.
具体实现中,监控服务器104以用户输入的查询标识为目标,在多个候选标识中进行标识匹配工作,匹配到的候选标识作为目标标识,并提取该目标标识对应的调用信息,作为链路调用信息,供监控终端102显示。In the specific implementation, the monitoring server 104 takes the query identifier input by the user as the target, performs the identifier matching work among multiple candidate identifiers, uses the matched candidate identifier as the target identifier, and extracts the call information corresponding to the target identifier as the link call information for the monitoring terminal 102 to display.
例如,运维人员在监控终端102的链路调用监控页面上输入的查询标识为“0674321C2F10”,则监控服务器104首先在数据库中查询匹配该标识,找到目标标识后提取出相应的链路调用信息,并发送至监控终端102,由监控终端102接收并显示该链路调用信息。For example, if the query identifier entered by the operation and maintenance personnel on the link call monitoring page of the monitoring terminal 102 is "0674321C2F10", the monitoring server 104 first searches the database to match the identifier, and then extracts the corresponding link call information after finding the target identifier. , and sent to the monitoring terminal 102, and the monitoring terminal 102 receives and displays the link calling information.
根据本发明实施例提供的方案,在监控终端显示链路调用监控页面之前,监控服务器首先需要采集链路调用信息,即通过用户终端发起的微服务调用请求执行信息采集工作。监控服务器在信息采集期间,主要通过对第一标识和第二标识的预处理,记录用户终端调用微服务的调用信息,使得调用过程被关联或标注异常。通过本发明提出的方案,运维人员可利用监控终端显示的链路调用监控页面快速搜索、跟踪各项链路调用信息,并在微服务调用异常时,帮助运维人员快速定位、解决异常问题,使微服务监控方法提供的功能更加多元化。According to the solution provided by the embodiment of the present invention, before the monitoring terminal displays the link call monitoring page, the monitoring server first needs to collect link call information, that is, the information collection work is performed through the microservice call request initiated by the user terminal. During the information collection period, the monitoring server records the invocation information of the user terminal invoking the microservice mainly by preprocessing the first identifier and the second identifier, so that the calling process is associated or marked as abnormal. Through the solution proposed by the present invention, the operation and maintenance personnel can use the link call monitoring page displayed on the monitoring terminal to quickly search and track various link call information, and help the operation and maintenance personnel to quickly locate and solve the abnormal problem when the micro-service call is abnormal. , to make the functions provided by the microservice monitoring method more diversified.
应该理解的是,虽然图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也非必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of FIG. 2 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 2 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution sequence of these sub-steps or stages It also does not have to be performed sequentially, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.
在一个实施例中,如图6所示,提供了一种微服务监控装置,包括页面显示模块610、标识接收模块620、信息显示模块630、请求接收模块640以及结果显示模块650,其中:In one embodiment, as shown in FIG. 6, a microservice monitoring device is provided, including a page display module 610, an identification receiving module 620, an information display module 630, a request receiving module 640, and a result display module 650, wherein:
页面显示模块610,用于显示链路调用监控页面;所述链路调用监控页面包括标识输入入口;a page display module 610, configured to display a link call monitoring page; the link call monitoring page includes an identification input entry;
标识接收模块620,用于接收针对所述标识输入入口的查询标识;an identification receiving module 620, configured to receive a query identification for the identification input entry;
信息显示模块630,用于显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息;an information display module 630, configured to display link invocation information; the link invocation information is the information queried according to the query identifier and generated when the microservice is invoked;
请求接收模块640,用于当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求;a request receiving module 640, configured to receive an abnormal query request for the link invocation information when the link invocation information is abnormal;
结果显示模块650,用于响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。The result display module 650 is configured to display an abnormal query result of the link invocation information in response to the abnormal query request; the abnormal query result is a result of querying the link invocation information.
根据本发明实施例提供的方案,监控终端显示的链路调用监控页面用于提供给运维人员输入查询标识后,查询其标识相关的链路调用信息,并在链路调用信息异常的情况下,接收运维人员发起的异常查询请求,响应于该请求之后显示异常查询结果。本发明提供一个链路调用监控页面,便于运维人员快速搜索、跟踪链路调用信息,并在微服务调用异常时,帮助运维人员快速定位、解决异常问题,使其微服务监控方案提供的功能更加多元化。According to the solution provided by the embodiment of the present invention, the link invocation monitoring page displayed by the monitoring terminal is used to provide the operation and maintenance personnel with the link invocation information related to the identification after inputting the query identification, and when the link invocation information is abnormal , receives the abnormal query request initiated by the operation and maintenance personnel, and displays the abnormal query result after responding to the request. The invention provides a link call monitoring page, which is convenient for operation and maintenance personnel to quickly search and track link call information, and when the micro-service call is abnormal, it helps the operation and maintenance personnel to quickly locate and solve the abnormal problem, so that the micro-service monitoring solution provides The functions are more diversified.
在一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
调用请求接收模块,用于接收微服务调用请求;记录项生成模块,用于根据所述微服务调用请求,生成调用记录项;第一标识生成模块,用于当所述调用记录项中未包括第一标识时,生成所述第一标识;所述第一标识用于标记所述微服务调用请求的链路调用信息;所述第一标识用于与所述查询标识进行匹配,并根据所述查询标识指示所述链路调用监控页面显示所述链路调用信息。The call request receiving module is used to receive the microservice call request; the record item generation module is used to generate the call record item according to the microservice call request; the first identification generation module is used for when the call record item does not include When the first identifier is used, the first identifier is generated; the first identifier is used to mark the link invocation information of the microservice invocation request; the first identifier is used to match the query identifier, and according to the The query identifier instructs the link invocation monitoring page to display the link invocation information.
在一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
第二标识获取模块,用于获取所述调用记录项中的第二标识;第二标识生成模块,用于当所述调用记录项中未包括所述第二标识时,根据所述第一标识,生成所述第二标识;所述第二标识用于记录所述微服务调用数量;所述第二标识用于在所述微服务调用异常时,标注异常。A second identifier acquisition module, configured to acquire the second identifier in the call record item; a second identifier generation module, configured to obtain the second identifier according to the first identifier when the call record item does not include the second identifier , and generate the second identifier; the second identifier is used to record the number of the microservice calls; the second identifier is used to mark the exception when the microservice call is abnormal.
在一个实施例中,所述第二标识生成模块包括:In one embodiment, the second identification generation module includes:
异常标识生成子模块,用于当所述调用记录项中包括所述第一标识时,生成异常的第二标识;所述异常的第二标识用于标注所述微服务的上级调用异常。An exception identifier generating sub-module is configured to generate a second identifier of the exception when the call record item includes the first identifier; the second identifier of the exception is used to mark the exception of the upper-level invocation of the microservice.
在一个实施例中,所述装置还包括:In one embodiment, the apparatus further comprises:
调用数据获取模块,用于获取微服务调用数据;调用数据存储模块,用于将所述微服务调用数据通过消息队列存储至多个微服务数据库中,供服务器根据所述查询标识,在所述多个微服务数据库中,获取所述链路调用信息;所述微服务调用数据按数据类型分别存储于所述多个微服务数据库中。The calling data acquisition module is used to obtain the micro-service calling data; the calling data storage module is used to store the micro-service calling data in the multiple micro-service databases through the message queue, so that the server can store the data in the multiple micro-service databases according to the query identifier. The link invocation information is obtained from each of the microservice databases; the microservice invocation data are respectively stored in the multiple microservice databases according to data types.
在一个实施例中,所述多个微服务数据库包括有内存数据库、搜索引擎数据库、分布式数据库以及关系数据库;所述内存数据库用于存储实时统计的所述微服务调用数据;所述搜索引擎数据库用于存储短期的所述微服务调用数据;所述分布式数据库用于存储长期的所述微服务调用数据;所述关系数据库用于存储离线统计的所述微服务调用数据。In one embodiment, the multiple microservice databases include an in-memory database, a search engine database, a distributed database, and a relational database; the in-memory database is used to store real-time statistics of the micro-service invocation data; the search engine The database is used to store the short-term microservice invocation data; the distributed database is used to store the long-term microservice invocation data; the relational database is used to store the offline statistics of the microservice invocation data.
在一个实施例中,所述装置还包括:In one embodiment, the apparatus further comprises:
候选标识获取模块,用于获取多个候选标识;所述多个候选标识分别具有对应的候选调用信息;标识匹配模块,用于将所述查询标识与所述多个候选标识进行匹配;目标标识确定模块,用于在所述多个候选标识中,确定目标标识;调用信息提取模块,用于提取所述目标标识对应的候选调用信息,作为所述链路调用信息。A candidate identifier acquisition module is used to acquire multiple candidate identifiers; the multiple candidate identifiers respectively have corresponding candidate call information; an identifier matching module is used to match the query identifier with the multiple candidate identifiers; target identifiers A determination module is used for determining a target identifier among the plurality of candidate identifiers; an invocation information extraction module is used for extracting candidate invocation information corresponding to the target identifier as the link invocation information.
根据本发明实施例提供的方案,在监控终端显示链路调用监控页面之前,监控服务器首先需要采集链路调用信息,即通过用户终端发起的微服务调用请求执行信息采集工作。监控服务器在信息采集期间,主要通过对第一标识和第二标识的预处理,记录用户终端调用微服务的调用信息,使得调用过程被关联或标注异常。通过本发明提出的方案,运维人员可利用监控终端显示的链路调用监控页面快速搜索、跟踪各项链路调用信息,并在微服务调用异常时,帮助运维人员快速定位、解决异常问题,使微服务监控方法提供的功能更加多元化。According to the solution provided by the embodiment of the present invention, before the monitoring terminal displays the link call monitoring page, the monitoring server first needs to collect link call information, that is, the information collection work is performed through the microservice call request initiated by the user terminal. During the information collection period, the monitoring server records the invocation information of the user terminal invoking the microservice mainly by preprocessing the first identification and the second identification, so that the calling process is associated or marked as abnormal. Through the solution proposed by the present invention, the operation and maintenance personnel can use the link call monitoring page displayed on the monitoring terminal to quickly search and track various link call information, and help the operation and maintenance personnel to quickly locate and solve the abnormal problem when the micro-service call is abnormal. , to make the functions provided by the microservice monitoring method more diversified.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储标识信息和设备信息。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时实现一种微服务监控方法。In one embodiment, a computer device is provided, and the computer device can be a server, and its internal structure diagram can be as shown in FIG. 7 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The computer device's database is used to store identification information and device information. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program implements a microservice monitoring method when executed by the processor.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种微服务监控方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8 . The computer equipment includes a processor, memory, a network interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements a microservice monitoring method. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
本领域技术人员可以理解,图7和图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structures shown in FIG. 7 and FIG. 8 are only block diagrams of partial structures related to the solution of the present application, and do not constitute a limitation on the computer equipment to which the solution of the present application is applied. A computer device may include more or fewer components than those shown in the figures, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
显示链路调用监控页面;所述链路调用监控页面包括标识输入入口;接收针对所述标识输入入口的查询标识;显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息;当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求;响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。Displaying a link invocation monitoring page; the link invocation monitoring page includes an identification input entry; receiving a query identification for the identification input entry; displaying link invocation information; the link invocation information is queried according to the query identification. information generated when the microservice is called; when the link call information is abnormal, receive an abnormal query request for the link call information; in response to the abnormal query request, display the link call information The abnormal query result is the result of querying the link invocation information.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
接收微服务调用请求;根据所述微服务调用请求,生成调用记录项;当所述调用记录项中未包括第一标识时,生成所述第一标识;所述第一标识用于标记所述微服务调用请求的链路调用信息;所述第一标识用于与所述查询标识进行匹配,并根据所述查询标识指示所述链路调用监控页面显示所述链路调用信息。Receive a microservice call request; generate a call record item according to the microservice call request; generate the first identifier when the call record item does not include a first identifier; the first identifier is used to mark the Link invocation information of a microservice invocation request; the first identifier is used for matching with the query identifier, and instructs the link invocation monitoring page to display the link invocation information according to the query identifier.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
获取所述调用记录项中的第二标识;当所述调用记录项中未包括所述第二标识时,根据所述第一标识,生成所述第二标识;所述第二标识用于记录所述微服务调用数量;所述第二标识用于在所述微服务调用异常时,标注异常。Obtain the second identifier in the call record item; when the call record item does not include the second identifier, generate the second identifier according to the first identifier; the second identifier is used to record The number of microservice calls; the second identifier is used to mark exceptions when the microservice calls are abnormal.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
当所述调用记录项中包括所述第一标识时,生成异常的第二标识;所述异常的第二标识用于标注所述微服务的上级调用异常。When the call record item includes the first identifier, a second identifier of the exception is generated; the second identifier of the exception is used to mark the exception of the upper-level call of the microservice.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
获取微服务调用数据;将所述微服务调用数据通过消息队列存储至多个微服务数据库中,供服务器根据所述查询标识,在所述多个微服务数据库中,获取所述链路调用信息;所述微服务调用数据按数据类型分别存储于所述多个微服务数据库中。Acquiring microservice invocation data; storing the microservice invocation data in a plurality of microservice databases through a message queue, so that the server can acquire the link invocation information in the plurality of microservice databases according to the query identifier; The microservice invocation data is stored in the multiple microservice databases according to data types.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
所述多个微服务数据库包括有内存数据库、搜索引擎数据库、分布式数据库以及关系数据库;所述内存数据库用于存储实时统计的所述微服务调用数据;所述搜索引擎数据库用于存储短期的所述微服务调用数据;所述分布式数据库用于存储长期的所述微服务调用数据;所述关系数据库用于存储离线统计的所述微服务调用数据。The multiple microservice databases include an in-memory database, a search engine database, a distributed database and a relational database; the in-memory database is used to store the real-time statistics of the micro-service invocation data; the search engine database is used to store short-term data. the microservice invocation data; the distributed database is used to store the long-term microservice invocation data; the relational database is used to store the offline statistics of the microservice invocation data.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
获取多个候选标识;所述多个候选标识分别具有对应的候选调用信息;将所述查询标识与所述多个候选标识进行匹配;在所述多个候选标识中,确定目标标识;提取所述目标标识对应的候选调用信息,作为所述链路调用信息。Obtaining multiple candidate identifiers; the multiple candidate identifiers respectively have corresponding candidate call information; matching the query identifier with the multiple candidate identifiers; determining the target identifier from the multiple candidate identifiers; extracting all the candidate identifiers The candidate invocation information corresponding to the target identifier is used as the link invocation information.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
显示链路调用监控页面;所述链路调用监控页面包括标识输入入口;接收针对所述标识输入入口的查询标识;显示链路调用信息;所述链路调用信息为根据所述查询标识查询到的、调用所述微服务时生成的信息;当所述链路调用信息异常时,接收针对所述链路调用信息的异常查询请求;响应于所述异常查询请求,显示所述链路调用信息的异常查询结果;所述异常查询结果为对所述链路调用信息进行查询的结果。Displaying a link invocation monitoring page; the link invocation monitoring page includes an identification input entry; receiving a query identification for the identification input entry; displaying link invocation information; the link invocation information is queried according to the query identification. information generated when the microservice is called; when the link call information is abnormal, receive an abnormal query request for the link call information; in response to the abnormal query request, display the link call information The abnormal query result is the result of querying the link invocation information.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
接收微服务调用请求;根据所述微服务调用请求,生成调用记录项;当所述调用记录项中未包括第一标识时,生成所述第一标识;所述第一标识用于标记所述微服务调用请求的链路调用信息;所述第一标识用于与所述查询标识进行匹配,并根据所述查询标识指示所述链路调用监控页面显示所述链路调用信息。Receive a microservice call request; generate a call record item according to the microservice call request; generate the first identifier when the call record item does not include a first identifier; the first identifier is used to mark the Link invocation information of a microservice invocation request; the first identifier is used for matching with the query identifier, and instructs the link invocation monitoring page to display the link invocation information according to the query identifier.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
获取所述调用记录项中的第二标识;当所述调用记录项中未包括所述第二标识时,根据所述第一标识,生成所述第二标识;所述第二标识用于记录所述微服务调用数量;所述第二标识用于在所述微服务调用异常时,标注异常。Obtain the second identifier in the call record item; when the call record item does not include the second identifier, generate the second identifier according to the first identifier; the second identifier is used to record The number of microservice calls; the second identifier is used to mark exceptions when the microservice calls are abnormal.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
当所述调用记录项中包括所述第一标识时,生成异常的第二标识;所述异常的第二标识用于标注所述微服务的上级调用异常。When the call record item includes the first identifier, a second identifier of the exception is generated; the second identifier of the exception is used to mark the exception of the upper-level call of the microservice.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
获取微服务调用数据;将所述微服务调用数据通过消息队列存储至多个微服务数据库中,供服务器根据所述查询标识,在所述多个微服务数据库中,获取所述链路调用信息;所述微服务调用数据按数据类型分别存储于所述多个微服务数据库中。Acquiring microservice invocation data; storing the microservice invocation data in a plurality of microservice databases through a message queue, so that the server can acquire the link invocation information in the plurality of microservice databases according to the query identifier; The microservice invocation data is stored in the multiple microservice databases according to data types.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
所述多个微服务数据库包括有内存数据库、搜索引擎数据库、分布式数据库以及关系数据库;所述内存数据库用于存储实时统计的所述微服务调用数据;所述搜索引擎数据库用于存储短期的所述微服务调用数据;所述分布式数据库用于存储长期的所述微服务调用数据;所述关系数据库用于存储离线统计的所述微服务调用数据。The multiple microservice databases include an in-memory database, a search engine database, a distributed database and a relational database; the in-memory database is used to store the real-time statistics of the micro-service invocation data; the search engine database is used to store short-term data. the microservice invocation data; the distributed database is used to store the long-term microservice invocation data; the relational database is used to store the offline statistics of the microservice invocation data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
获取多个候选标识;所述多个候选标识分别具有对应的候选调用信息;将所述查询标识与所述多个候选标识进行匹配;在所述多个候选标识中,确定目标标识;提取所述目标标识对应的候选调用信息,作为所述链路调用信息。Obtaining multiple candidate identifiers; the multiple candidate identifiers respectively have corresponding candidate call information; matching the query identifier with the multiple candidate identifiers; determining the target identifier from the multiple candidate identifiers; extracting all the candidate identifiers The candidate invocation information corresponding to the target identifier is used as the link invocation information.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811589255.0A CN109672741B (en) | 2018-12-25 | 2018-12-25 | Micro-service monitoring method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811589255.0A CN109672741B (en) | 2018-12-25 | 2018-12-25 | Micro-service monitoring method and device, computer equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109672741A true CN109672741A (en) | 2019-04-23 |
| CN109672741B CN109672741B (en) | 2020-01-14 |
Family
ID=66147160
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811589255.0A Active CN109672741B (en) | 2018-12-25 | 2018-12-25 | Micro-service monitoring method and device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109672741B (en) |
Cited By (25)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110445643A (en) * | 2019-07-25 | 2019-11-12 | 泰康保险集团股份有限公司 | Asynchronous micro services call link tracking, device, medium and electronic equipment |
| CN110442641A (en) * | 2019-08-06 | 2019-11-12 | 中国工商银行股份有限公司 | A kind of link topology figure methods of exhibiting, device, storage medium and equipment |
| CN110737592A (en) * | 2019-09-16 | 2020-01-31 | 平安科技(深圳)有限公司 | link abnormity identification method, server and computer readable storage medium |
| CN110943858A (en) * | 2019-11-21 | 2020-03-31 | 中国联合网络通信集团有限公司 | Fault positioning method and device |
| CN111130955A (en) * | 2020-03-31 | 2020-05-08 | 四川新网银行股份有限公司 | Distributed link monitoring method based on internet credit system |
| CN111221853A (en) * | 2019-12-18 | 2020-06-02 | 平安健康保险股份有限公司 | Drug list abnormality detection method, device, computer equipment and storage medium |
| CN111240876A (en) * | 2020-01-06 | 2020-06-05 | 远光软件股份有限公司 | Fault positioning method and device for microservice, storage medium and terminal |
| CN111586092A (en) * | 2020-03-25 | 2020-08-25 | 深圳壹账通智能科技有限公司 | Full link monitoring method, system and CAT client |
| CN111614483A (en) * | 2020-04-08 | 2020-09-01 | 拉扎斯网络科技(上海)有限公司 | Link monitoring method, device, storage medium and computer equipment |
| CN111858248A (en) * | 2020-07-20 | 2020-10-30 | 北京百度网讯科技有限公司 | Application monitoring method, device, device and storage medium |
| CN112035317A (en) * | 2020-08-28 | 2020-12-04 | 北京浪潮数据技术有限公司 | Micro-service link monitoring method, device, equipment and medium |
| CN112491650A (en) * | 2020-11-17 | 2021-03-12 | 中国平安财产保险股份有限公司 | Method for dynamically analyzing call loop condition between services and related equipment |
| CN112559285A (en) * | 2020-12-08 | 2021-03-26 | 中国联合网络通信集团有限公司 | Distributed service architecture-based micro-service monitoring method and related device |
| CN112559831A (en) * | 2020-12-24 | 2021-03-26 | 平安普惠企业管理有限公司 | Link monitoring method and device, computer equipment and medium |
| CN113010365A (en) * | 2019-12-20 | 2021-06-22 | 北京金山云网络技术有限公司 | System running state monitoring method, system running state detection device, electronic equipment and storage medium |
| CN113448796A (en) * | 2020-03-26 | 2021-09-28 | 北京沃东天骏信息技术有限公司 | Service monitoring method, device, computer system and medium |
| CN113760677A (en) * | 2021-02-02 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Abnormal link analysis method, device, equipment and storage medium |
| CN114092064A (en) * | 2021-11-29 | 2022-02-25 | 南方电网大数据服务有限公司 | Power big data processing batch system and method, device, equipment and medium |
| CN114172823A (en) * | 2021-11-19 | 2022-03-11 | 郑州云海信息技术有限公司 | Microservice link sampling method, apparatus, device and readable storage medium |
| CN114253797A (en) * | 2021-11-26 | 2022-03-29 | 中国联合网络通信集团有限公司 | Fault processing method and related device of micro-service system |
| CN114389970A (en) * | 2021-12-03 | 2022-04-22 | 浙江时空道宇科技有限公司 | Link monitoring method and device |
| CN115037653A (en) * | 2022-06-28 | 2022-09-09 | 北京奇艺世纪科技有限公司 | Service flow monitoring method and device, electronic equipment and storage medium |
| CN115082063A (en) * | 2021-03-11 | 2022-09-20 | 银联国际有限公司 | Method and system for realizing transaction full-flow tracking and real-time monitoring |
| CN115186294A (en) * | 2022-07-11 | 2022-10-14 | 中国银行股份有限公司 | A kind of abnormal query detection method and device |
| CN118227447A (en) * | 2024-05-22 | 2024-06-21 | 北京阿帕科蓝科技有限公司 | Index monitoring method, device, computer equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106790718A (en) * | 2017-03-16 | 2017-05-31 | 北京搜狐新媒体信息技术有限公司 | Service call link analysis method and system |
| CN106933724A (en) * | 2017-03-16 | 2017-07-07 | 北京搜狐新媒体信息技术有限公司 | A kind of distributed information tracing system, information processing method and device |
| CN107766205A (en) * | 2017-10-10 | 2018-03-06 | 武汉大学 | A kind of monitoring system and method towards the tracking of micro services invoked procedure |
| CN107861859A (en) * | 2017-11-22 | 2018-03-30 | 北京汇通金财信息科技有限公司 | A kind of blog management method and system based on micro services framework |
| CN108205486A (en) * | 2017-12-26 | 2018-06-26 | 上海中畅数据技术有限公司 | A kind of intelligent distributed call chain tracking based on machine learning |
| CN108512689A (en) * | 2017-12-15 | 2018-09-07 | 中国平安财产保险股份有限公司 | Micro services business monitoring method and server |
| US20180324173A1 (en) * | 2017-05-03 | 2018-11-08 | International Business Machines Corporation | Stateful session manager |
-
2018
- 2018-12-25 CN CN201811589255.0A patent/CN109672741B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106790718A (en) * | 2017-03-16 | 2017-05-31 | 北京搜狐新媒体信息技术有限公司 | Service call link analysis method and system |
| CN106933724A (en) * | 2017-03-16 | 2017-07-07 | 北京搜狐新媒体信息技术有限公司 | A kind of distributed information tracing system, information processing method and device |
| US20180324173A1 (en) * | 2017-05-03 | 2018-11-08 | International Business Machines Corporation | Stateful session manager |
| CN107766205A (en) * | 2017-10-10 | 2018-03-06 | 武汉大学 | A kind of monitoring system and method towards the tracking of micro services invoked procedure |
| CN107861859A (en) * | 2017-11-22 | 2018-03-30 | 北京汇通金财信息科技有限公司 | A kind of blog management method and system based on micro services framework |
| CN108512689A (en) * | 2017-12-15 | 2018-09-07 | 中国平安财产保险股份有限公司 | Micro services business monitoring method and server |
| CN108205486A (en) * | 2017-12-26 | 2018-06-26 | 上海中畅数据技术有限公司 | A kind of intelligent distributed call chain tracking based on machine learning |
Cited By (37)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110445643A (en) * | 2019-07-25 | 2019-11-12 | 泰康保险集团股份有限公司 | Asynchronous micro services call link tracking, device, medium and electronic equipment |
| CN110445643B (en) * | 2019-07-25 | 2021-11-16 | 泰康保险集团股份有限公司 | Asynchronous microservice call link tracking method, device, medium and electronic equipment |
| CN110442641A (en) * | 2019-08-06 | 2019-11-12 | 中国工商银行股份有限公司 | A kind of link topology figure methods of exhibiting, device, storage medium and equipment |
| CN110442641B (en) * | 2019-08-06 | 2022-07-12 | 中国工商银行股份有限公司 | Link topology graph display method and device, storage medium and equipment |
| CN110737592A (en) * | 2019-09-16 | 2020-01-31 | 平安科技(深圳)有限公司 | link abnormity identification method, server and computer readable storage medium |
| CN110737592B (en) * | 2019-09-16 | 2024-01-30 | 平安科技(深圳)有限公司 | Link abnormality identification method, server and computer readable storage medium |
| CN110943858A (en) * | 2019-11-21 | 2020-03-31 | 中国联合网络通信集团有限公司 | Fault positioning method and device |
| CN110943858B (en) * | 2019-11-21 | 2022-07-12 | 中国联合网络通信集团有限公司 | Fault positioning method and device |
| CN111221853A (en) * | 2019-12-18 | 2020-06-02 | 平安健康保险股份有限公司 | Drug list abnormality detection method, device, computer equipment and storage medium |
| CN113010365A (en) * | 2019-12-20 | 2021-06-22 | 北京金山云网络技术有限公司 | System running state monitoring method, system running state detection device, electronic equipment and storage medium |
| CN111240876A (en) * | 2020-01-06 | 2020-06-05 | 远光软件股份有限公司 | Fault positioning method and device for microservice, storage medium and terminal |
| CN111240876B (en) * | 2020-01-06 | 2023-08-25 | 远光软件股份有限公司 | Fault positioning method and device for micro-service, storage medium and terminal |
| CN111586092A (en) * | 2020-03-25 | 2020-08-25 | 深圳壹账通智能科技有限公司 | Full link monitoring method, system and CAT client |
| CN113448796A (en) * | 2020-03-26 | 2021-09-28 | 北京沃东天骏信息技术有限公司 | Service monitoring method, device, computer system and medium |
| CN111130955A (en) * | 2020-03-31 | 2020-05-08 | 四川新网银行股份有限公司 | Distributed link monitoring method based on internet credit system |
| CN111130955B (en) * | 2020-03-31 | 2020-08-21 | 四川新网银行股份有限公司 | Distributed link monitoring method based on internet credit system |
| CN111614483A (en) * | 2020-04-08 | 2020-09-01 | 拉扎斯网络科技(上海)有限公司 | Link monitoring method, device, storage medium and computer equipment |
| CN111858248A (en) * | 2020-07-20 | 2020-10-30 | 北京百度网讯科技有限公司 | Application monitoring method, device, device and storage medium |
| CN111858248B (en) * | 2020-07-20 | 2024-03-15 | 北京百度网讯科技有限公司 | Application monitoring method, device, equipment and storage medium |
| CN112035317A (en) * | 2020-08-28 | 2020-12-04 | 北京浪潮数据技术有限公司 | Micro-service link monitoring method, device, equipment and medium |
| CN112035317B (en) * | 2020-08-28 | 2022-06-17 | 北京浪潮数据技术有限公司 | Micro-service link monitoring method, device, equipment and medium |
| CN112491650B (en) * | 2020-11-17 | 2023-07-07 | 中国平安财产保险股份有限公司 | Method for dynamically analyzing call loop condition between services and related equipment |
| CN112491650A (en) * | 2020-11-17 | 2021-03-12 | 中国平安财产保险股份有限公司 | Method for dynamically analyzing call loop condition between services and related equipment |
| CN112559285A (en) * | 2020-12-08 | 2021-03-26 | 中国联合网络通信集团有限公司 | Distributed service architecture-based micro-service monitoring method and related device |
| CN112559285B (en) * | 2020-12-08 | 2023-05-30 | 中国联合网络通信集团有限公司 | Microservice monitoring method and related device based on distributed service architecture |
| CN112559831A (en) * | 2020-12-24 | 2021-03-26 | 平安普惠企业管理有限公司 | Link monitoring method and device, computer equipment and medium |
| CN113760677A (en) * | 2021-02-02 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Abnormal link analysis method, device, equipment and storage medium |
| CN115082063A (en) * | 2021-03-11 | 2022-09-20 | 银联国际有限公司 | Method and system for realizing transaction full-flow tracking and real-time monitoring |
| CN114172823B (en) * | 2021-11-19 | 2023-08-22 | 郑州云海信息技术有限公司 | A microservice link sampling method, device, equipment and readable storage medium |
| CN114172823A (en) * | 2021-11-19 | 2022-03-11 | 郑州云海信息技术有限公司 | Microservice link sampling method, apparatus, device and readable storage medium |
| CN114253797A (en) * | 2021-11-26 | 2022-03-29 | 中国联合网络通信集团有限公司 | Fault processing method and related device of micro-service system |
| CN114092064A (en) * | 2021-11-29 | 2022-02-25 | 南方电网大数据服务有限公司 | Power big data processing batch system and method, device, equipment and medium |
| CN114389970A (en) * | 2021-12-03 | 2022-04-22 | 浙江时空道宇科技有限公司 | Link monitoring method and device |
| CN115037653A (en) * | 2022-06-28 | 2022-09-09 | 北京奇艺世纪科技有限公司 | Service flow monitoring method and device, electronic equipment and storage medium |
| CN115037653B (en) * | 2022-06-28 | 2023-10-13 | 北京奇艺世纪科技有限公司 | Service flow monitoring method, device, electronic equipment and storage medium |
| CN115186294A (en) * | 2022-07-11 | 2022-10-14 | 中国银行股份有限公司 | A kind of abnormal query detection method and device |
| CN118227447A (en) * | 2024-05-22 | 2024-06-21 | 北京阿帕科蓝科技有限公司 | Index monitoring method, device, computer equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109672741B (en) | 2020-01-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109672741B (en) | Micro-service monitoring method and device, computer equipment and storage medium | |
| US11811805B1 (en) | Detecting fraud by correlating user behavior biometrics with other data sources | |
| US20210192395A1 (en) | Automatic generation of data analysis queries | |
| US10642913B2 (en) | Intent and bot based query guidance | |
| CN112910945A (en) | Request link tracking method and service request processing method | |
| US12120170B1 (en) | Presenting un-deployed features of an application | |
| US20170220672A1 (en) | Enhancing time series prediction | |
| CN111310427A (en) | Service data configuration processing method, apparatus, computer equipment and storage medium | |
| CN114693192A (en) | Wind control decision method and device, computer equipment and storage medium | |
| WO2019205717A1 (en) | Method and device for searching for information in application program | |
| CN111597422B (en) | Buried point mapping method, device, computer equipment and storage medium | |
| CN110659349A (en) | Log query method, apparatus, device, and computer-readable storage medium | |
| WO2021072742A1 (en) | Assessing an impact of an upgrade to computer software | |
| CN110659435A (en) | Page data acquisition processing method and device, computer equipment and storage medium | |
| US20180300572A1 (en) | Fraud detection based on user behavior biometrics | |
| WO2019136987A1 (en) | Web crawler identification method and apparatus, computer device, and storage medium | |
| US20240202824A1 (en) | Smart contract security auditing | |
| CN112084403A (en) | Data query method and device, computer equipment and storage medium | |
| CN114579446A (en) | Data processing method and device, computer equipment and computer readable storage medium | |
| CN116126808A (en) | Behavior log recording method, device, computer equipment and storage medium | |
| CN110716916A (en) | Resource online management method and device, computer equipment and storage medium | |
| CN113568810A (en) | Security log data processing method | |
| CN114168607A (en) | Global serial number generation method, apparatus, apparatus, medium and product | |
| US8918406B2 (en) | Intelligent analysis queue construction | |
| US20250112936A1 (en) | Online code similarity and maliciousness searching using a vector database |
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 | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: 511458 Room 1301, Chengtou Building, 106 Fengze East Road, Nansha District, Guangzhou City, Guangdong Province (self-compiled 1301-12159) Applicant after: Southern Power Grid Digital Grid Research Institute Co.,Ltd. Address before: 511458 Room 1301, Chengtou Building, 106 Fengze East Road, Nansha District, Guangzhou City, Guangdong Province (self-compiled 1301-12159) Applicant before: DINGXIN INFORMATION TECHNOLOGY Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Room 1301, Chengtou building, No. 106, Fengze East Road, Nansha District, Guangzhou City, Guangdong Province Patentee after: Southern Power Grid Digital Grid Research Institute Co.,Ltd. Country or region after: China Address before: Room 1301, Chengtou building, No. 106, Fengze East Road, Nansha District, Guangzhou City, Guangdong Province Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd. Country or region before: China |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20240912 Address after: Yunsheng Science Park, No. 11 Spectral Middle Road, Huangpu District, Guangzhou City, Guangdong Province, 510700 Patentee after: China Southern Power Grid Digital Enterprise Technology (Guangdong) Co.,Ltd. Country or region after: China Address before: Room 1301, Chengtou building, No. 106, Fengze East Road, Nansha District, Guangzhou City, Guangdong Province Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: 510000 Guangdong Province, Guangzhou City, Huangpu District, Guangzhou Huiguang Spectrum Road No. 11 Yunseng Science Park Building 2 Unit 3 1601 Room Patentee after: China Southern Power Grid Data Platform and Security (Guangdong) Co., Ltd. Country or region after: China Address before: Room 509, No. 808 Dongfeng East Road, Yuexiu District, Guangzhou City, Guangdong Province Patentee before: China Southern Power Grid Digital Enterprise Technology (Guangdong) Co.,Ltd. Country or region before: China |