Instance monitoring method and device, electronic equipment and storage medium

By receiving client query requests, obtaining and generating web page codes to display instances, the problems of inefficiency and high labor costs in the prior art are solved, and efficient and accurate abnormal operator positioning is achieved.

CN119299443AActive Publication Date: 2025-01-10BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411224118.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2025-01-10
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

In the process of checking example abnormalities, the prior art is inefficient and labor-intensive, making it difficult to intuitively display the operator topology relationship and monitoring index parameters of the actual example, resulting in difficulty in positioning abnormal operators.

Method used

By receiving the client's query request, obtaining the current operator information of the target instance, generating a web page code, returning to the client to display the operator monitoring diagram, real-time visual inspection is realized.

Benefits of technology

It improves the efficiency and accuracy of abnormal operator positioning, reduces labor costs, and simplifies the instance monitoring process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299443A_ABST
    Figure CN119299443A_ABST
Patent Text Reader

Abstract

The invention provides an instance monitoring method and device, electronic equipment and a storage medium, and relates to the technical field of computers, in particular to the technical fields of data monitoring, operator monitoring and the like. The specific implementation scheme is as follows: receiving a query request of a target instance from a client; obtaining current operator information of the target instance; generating a webpage code based on the current operator information of the target instance; and a query response is returned to the client, the query response carries a webpage code, and the webpage code is used for the client to display the operator monitoring graph corresponding to the target instance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to technical fields such as data monitoring and operator monitoring. Background Art

[0002] In related technologies, when troubleshooting an instance for anomalies, the investigators often need to query configuration files and log information to obtain the instance's operator topology relationship and operator monitoring indicator parameters. This method is not only inefficient, but also labor-intensive. Therefore, how to intuitively display the instance's operator topology relationship and operator monitoring indicator parameters, so as to quickly and accurately locate abnormal operators, becomes a problem that needs to be solved. Summary of the invention

[0003] The present disclosure provides an example monitoring method, device, electronic device and storage medium.

[0004] According to one aspect of the present disclosure, there is provided an instance monitoring method, comprising:

[0005] Receive a query request for a target instance from a client;

[0006] Get the current operator information of the target instance;

[0007] Generate web page encoding based on the current operator information of the target instance;

[0008] A query response is returned to the client, where the query response carries a web page code, which is used by the client to display the operator monitoring graph corresponding to the target instance.

[0009] According to another aspect of the present disclosure, there is provided an instance monitoring device, comprising:

[0010] A communication module, used to receive a query request for a target instance from a client, and return a query response to the client, wherein the query response carries a web page code, and the web page code is used by the client to display an operator monitoring diagram corresponding to the target instance;

[0011] The operator information acquisition module is used to obtain the current operator information of the target instance;

[0012] The processing module is used to generate web page encoding based on the current operator information of the target instance.

[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method provided by any embodiment of the present disclosure.

[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method provided by any embodiment of the present disclosure.

[0018] According to another aspect of the present disclosure, a computer program product is provided, including computer instructions, which implement the method provided by any embodiment of the present disclosure when executed by a processor.

[0019] By adopting the method provided by this embodiment, the current operator information of the target instance can be obtained in real time according to the query request of the target instance sent by the client, and then the web page code generated based on the current operator information is fed back to the client, so that the client can display the operator monitoring diagram corresponding to the target instance according to the web page code. In this way, the current information of the operator of any instance can be visually displayed on the client, so that it can be efficiently and conveniently checked whether there is an abnormal operator in the instance, and then the position of the abnormal operator can be accurately located.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0022] Figure 1 is a flow chart of an example monitoring method according to an embodiment of the present disclosure;

[0023] Figure 2 is a schematic diagram of a structure of an example monitoring device according to an embodiment of the present disclosure;

[0024] Figure 3 is another schematic diagram of the structure of an example monitoring device according to an embodiment of the present disclosure;

[0025] Figure 4 is a schematic diagram of an instance monitoring system architecture for interaction between a client and a server according to an instance monitoring method of an embodiment of the present disclosure;

[0026] Figure 5 It is a schematic diagram of the interaction process between the client and the server according to the example monitoring method of the embodiment of the present disclosure;

[0027] Figure 6 is a schematic diagram of an operation of a user inputting a URL of a target instance in a client browser according to an instance monitoring method of an embodiment of the present disclosure;

[0028] Figure 7 It is a schematic diagram of an operator monitoring graph corresponding to a target instance displayed on a client obtained according to the instance monitoring method of an embodiment of the present disclosure;

[0029] Figure 8 is a block diagram of an electronic device used to implement an example monitoring method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0031] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The term "at least one" in this article means any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C. The terms "first" and "second" in this article refer to multiple similar technical terms and distinguish them. They do not mean to limit the order or to limit them to only two. For example, the first feature and the second feature refer to two types / two features. The first feature can be one or more, and the second feature can also be one or more.

[0032] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0033] Figure 1 is a schematic flow chart of an example monitoring method proposed in an embodiment of the present disclosure, comprising:

[0034] S110, receiving a query request for a target instance from a client;

[0035] S120, obtaining current operator information of the target instance;

[0036] S130, generating a web page code based on current operator information of the target instance;

[0037] S140. Return a query response to the client, wherein the query response carries a web page code, and the web page code is used by the client to display a current operator monitoring graph corresponding to the target instance.

[0038] The example monitoring method provided in this embodiment can be applied to a server, which can include one or more servers. Exemplarily, the server can be one or more servers in a service cluster.

[0039] The client can be any electronic device with a display screen and supporting web browsing used by the user. For example, the client can include but is not limited to any one of the following: a smart phone, a tablet computer, a laptop computer, a personal computer, etc.

[0040] By adopting the method provided by this embodiment, the current operator information of the target instance can be obtained in real time according to the query request of the target instance sent by the client, and then the web page code generated based on the current operator information is fed back to the client, so that the client can display the operator monitoring diagram corresponding to the target instance according to the web page code. In this way, the current information of the operator of any instance can be visually displayed on the client, so that it can be efficiently and conveniently checked whether there is an abnormal operator in the instance, and then the position of the abnormal operator can be accurately located.

[0041] In some implementations, the query request for the target instance may include a URL (Uniform Resource Locator) corresponding to the target instance.

[0042] The message type of the query request of the target instance may be an HTTP (Hyper Text Transfer Protocol) GET (get) request.

[0043] An example of the URL corresponding to the target instance is given. The URL corresponding to the target instance can be "http: / / target instance address:target instance port number / common / call_graph", where "http: / / " means using the Hypertext Transfer Protocol to access resources; "target instance address" can be the IP (Internet Protocol) address of the target instance, or the domain name of the target instance. The IP address of the target instance refers to the network address of the server running the target instance, and the domain name of the target instance refers to the domain name corresponding to the IP address of the server running the target instance; "target instance port number" is the port used by the service associated with the target instance. It can be understood that different services or applications are distinguished on a server, and each service usually listens to a specific port number to receive requests from the client. Therefore, the target instance port number can be determined by the port number of the service corresponding to the target instance; " / common / call_graph" is the path part, which is used to specify the specific resource or function to be accessed, where " / common / " can represent a common path prefix, and "call_graph" can be used to recall the web page code, which is used for client drawing.

[0044] In some possible examples, the client generates a query request for the target instance in the following manner: when the client obtains the URL corresponding to the target instance entered by the user in the address bar of the browser, the client adds the URL corresponding to the target instance to the query request for the target instance. It should be noted that the query request for the target instance may include other information or content in addition to the URL corresponding to the target instance, but this embodiment does not limit or exhaustively list them.

[0045] The method of receiving the query request of the target instance from the client on the server side may be to receive the query request of the target instance from the client through the HTTP service interface. Here, the HTTP service may be a newly added service on the server side, or may be an existing RPC (Remote Procedure Call) service reused by the server side; if the server side reuses the existing RPC service, a GraphService may be added on the basis of the RPC service to process the query request of the target instance from the client, thereby avoiding repeated development, improving development efficiency, and reducing system complexity.

[0046] In some embodiments, the current operator information of the target instance includes at least one of the following: the static topology of multiple operators corresponding to the target instance, the current dynamic topology of multiple operators corresponding to the target instance, and the current value of each operator among the multiple operators corresponding to the target instance under each monitoring indicator of one or more monitoring indicators.

[0047] The obtaining of the current operator information of the target instance includes at least one of the following: obtaining an operator topology file corresponding to the target instance, and obtaining a static topology of multiple operators corresponding to the target instance based on the operator topology file corresponding to the target instance; obtaining a current connection relationship of each of the multiple operators corresponding to the target instance, and when the current connection relationship of at least some of the operators in the multiple operators corresponding to the target instance is different from the static topology of the multiple operators corresponding to the target instance, obtaining the current dynamic topology of at least some of the operators in the multiple operators corresponding to the target instance based on the current connection relationship of at least some of the operators; obtaining the current value of each operator corresponding to the target instance under each monitoring indicator in one or more monitoring indicators.

[0048] In this implementation, at least one of the static topology of multiple operators corresponding to the target instance, the current dynamic topology of multiple operators corresponding to the target instance, and the current value of each operator in the multiple operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators included in the current operator information of the target instance can be a specific description code or specific description content. In the following, the current operator information of the target instance obtained in this implementation is referred to as the original basic information of the current operator of the target instance, and no further explanation is given below.

[0049] The multiple operators corresponding to the target instance may refer to all operators constituting the target instance, or all operators required to be used or executed when the target instance is running. Among them, the operator may refer to the minimum calculation granularity with logical meaning, and any operator may be implemented by a calculation function, a neural network model, etc., which is not limited here.

[0050] The static topology of multiple operators corresponding to the target instance may include static connection relationships between the multiple operators constituting the target instance.

[0051] Specifically, obtaining the operator topology file corresponding to the target instance may include: obtaining the operator topology file corresponding to the target instance from the target computing engine through an interface of the target computing engine.

[0052] The target computing engine may be a system or tool that can process each operator corresponding to the target instance. Exemplarily, the target computing engine may be any graph computing engine, for example, the target computing engine may be a base-build engine, or a DDC (Distributed Data Center), etc., and the various possible types or names of graph computing engines are not limited or exhaustive here.

[0053] The operator topology file corresponding to the target instance can be used to determine the upper-level operator and / or lower-level operator associated with each operator of the target instance. For example, the operator topology file corresponding to the target instance may include the identification information of each operator among all the operators contained in the target instance, the identification information of the upper-level operator and / or lower-level operator associated with each operator, and the identification information of any operator may include at least one of the following: the identifier of the operator, the name of the operator, the type of the operator, the number of the operator, the location of the operator, etc. It should be noted that the operator topology file may include other contents in addition to the above contents, but this embodiment does not limit or exhaustively list them.

[0054] The operator topology file corresponding to the target instance may be generated and saved when constructing or configuring multiple operators of the target instance. This embodiment does not limit the specific method of generating the operator topology file corresponding to the target instance.

[0055] The storage location of the operator topology file corresponding to the target instance is not limited in this embodiment, and may be in the storage space corresponding to the target computing engine.

[0056] Based on the operator topology file corresponding to the target instance, obtaining the static topology of multiple operators corresponding to the target instance may include: based on the upper-level operator and / or lower-level operator associated with each operator of the target instance contained in the operator topology file corresponding to the target instance, obtaining the static connection relationship of the multiple operators corresponding to the target instance, and using the static connection relationship of the multiple operators corresponding to the target instance as the static topology of the multiple operators corresponding to the target instance.

[0057] Acquiring the current connection relationship of each of the multiple operators corresponding to the target instance may include: acquiring the current connection relationship of each of the multiple operators corresponding to the target instance from the target computing engine through an interface of the target computing engine.

[0058] The current connection relationship of any operator may include at least one of the following: the operator to which the current output data of the operator flows, and the source operator of the current input data of the operator.

[0059] Optionally, the method for determining whether the current connection relationship of at least some of the multiple operators corresponding to the target instance is the same as the static topology of the multiple operators corresponding to the target instance may include: when the i-th operator corresponding to the target instance is not a leaf node operator in the static topology of the multiple operators corresponding to the target instance, determining whether the operator to which the current output data of the i-th operator flows is the next-level operator of the i-th operator in the static topology of the multiple operators corresponding to the target instance, wherein the i-th operator is any one of the multiple operators, and i is an integer greater than or equal to 1; when the operator to which the current output data of the i-th operator flows is not the next-level operator of the i-th operator in the static topology, determining that the current connection relationship of the i-th operator is different from the static topology of the multiple operators; when the operator to which the current output data of the i-th operator flows is the next-level operator of the i-th operator in the static topology, determining that the current connection relationship of the i-th operator is the same as the static topology of the multiple operators. Among them, the leaf node operator in the static topology where the i-th operator is not a plurality of operators corresponding to the target instance may be: the root node operator or the intermediate node operator in the static topology where the i-th operator is a plurality of operators corresponding to the target instance.

[0060] Optionally, the method for determining whether the current connection relationship of at least some of the multiple operators corresponding to the target instance is the same as the static topology of the multiple operators corresponding to the target instance may include: when the i-th operator corresponding to the target instance is not the root node operator in the static topology of the multiple operators corresponding to the target instance, determining whether the source operator of the current input data of the i-th operator is the upper-level operator of the i-th operator in the static topology of the multiple operators corresponding to the target instance; when the source operator of the current input data of the i-th operator is not the upper-level operator of the i-th operator in the static topology, determining that the current connection relationship of the i-th operator is different from the static topology of the multiple operators; when the source operator of the current input data of the i-th operator is the upper-level operator of the i-th operator in the static topology, determining that the current connection relationship of the i-th operator is the same as the static topology of the multiple operators. Wherein, the i-th operator that is not the root node operator in the static topology of the multiple operators corresponding to the target instance may be: the i-th operator is a leaf node operator or an intermediate node operator in the static topology of the multiple operators corresponding to the target instance.

[0061] Since the same processing as the aforementioned i-th operator can be performed for each operator corresponding to the target instance, it can be finally determined whether the current connection relationship of at least some of the multiple operators corresponding to the target instance is different from the static topology of the multiple operators; further, the current connection relationship of each of the multiple operators corresponding to the target instance is obtained, and in the case that the current connection relationship of at least some of the multiple operators corresponding to the target instance is different from the static topology of the multiple operators corresponding to the target instance, the current dynamic topology of at least some of the multiple operators corresponding to the target instance is obtained based on the current connection relationship of at least some of the operators. Here, the current connection relationship of at least some of the operators can be directly used as the current dynamic topology of at least some of the operators.

[0062] In addition, the method may further include: when the current connection relationship of each operator in the multiple operators corresponding to the target instance is the same as the static topology of the multiple operators, the current dynamic topology of the multiple operators corresponding to the target instance is not generated.

[0063] The one or more monitoring indicators are any one or more monitoring indicators that can be used to represent the operating status of the operator. Exemplarily, the one or more monitoring indicators may include at least one of the following: number of failed processing, total number of processing, operator queue, operator accumulation information, operator latency information, QPS (Query Per Second), etc. It should be understood that the one or more monitoring indicators may include but are not limited to several possible types of the above examples, but this embodiment does not limit or exhaustively list them.

[0064] Obtaining the current value of each operator corresponding to the target instance under each monitoring indicator may refer to: obtaining the current value of each operator corresponding to the target instance under each monitoring indicator from the target computing engine through the interface of the target computing engine.

[0065] The interface of the target computing engine may be pre-configured in the target computing engine, for example, the interface may be pre-written or pre-set by the developer of the target computing engine and embedded in the target computing engine. In some possible examples, the monitoring indicator may also be pre-configured in the target computing engine.

[0066] In one example, the interface of the target computing engine may be a first interface preconfigured in the target computing engine; the first interface may be an interface in a highly multiplexed mode, and the type of interface content or interface information that can be obtained through the first interface of the target computing engine may be preconfigured. For example, the type of interface information corresponding to the first interface may also be pre-written or pre-set by the developer of the target computing engine and embedded in the target computing engine.

[0067] For example, the types of interface content or interface information that can be obtained through the first interface of the target computing engine include the static topology between operators and the monitoring information (i.e., value) of each operator under one or more specified monitoring indicators. Accordingly, the aforementioned acquisition of the current operator information of the target instance may include: obtaining the operator topology file corresponding to the target instance and the current value of each operator corresponding to the target instance under each monitoring indicator from the target computing engine through the first interface of the target computing engine, and obtaining the static topology of multiple operators corresponding to the target instance based on the operator topology file corresponding to the target instance.

[0068] The operator topology file corresponding to the target instance provided by the target computing engine may include the connection relationship between each operator corresponding to the target instance, and may specifically include the upper-level operator and / or lower-level operator of each operator. For example, the connection relationship between any pair of upper- and lower-level operators in the operator topology file corresponding to the target instance can be expressed as: map <pair<operatorA,operatorB> >, where "map" is used to represent a static topology (or static topology map), "pair" represents a pair of operators with a superior-subordinate relationship, "operator A" represents operator A among multiple operators corresponding to the target instance, "operator B" represents operator B among multiple operators corresponding to the target instance, and "<operatorA,operatorB> " indicates that operator A is the previous operator of operator B, or operator B is the next operator of operator A.

[0069] For example, the current value of any operator provided by the target computing engine under one or more monitoring indicators may include at least one of the following: set_operatorA_info(qps,10), set_operatorA_info(latency,20); wherein, "set_operatorA_info(qps,10)" indicates that the current value of operator A under the monitoring indicator of QPS is 10, and "set_operatorA_info(latency,20)" indicates that the current value of operator A under the monitoring indicator of latency is 20.

[0070] By adopting the above solution, the original basic information of the current operator of the target instance can be directly obtained, so that the client can more accurately display the current status of multiple operators of the target instance, thereby more efficiently and conveniently checking whether there are abnormal operators in the instance and accurately locating the position of the abnormal operator.

[0071] In one example, the method further includes: receiving indication information from the client, wherein the indication information is used to indicate the one or more monitoring indicators.

[0072] In this example, the interface of the target computing engine may be a second interface pre-configured in the target computing engine; the second interface may be an interface in a highly flexible mode, and the type of interface content or interface information that can be obtained through the second interface of the target computing engine may be configured to the target computing engine by the user according to actual needs.

[0073] In this example, the process of obtaining the current value of each operator corresponding to the target instance under each of the one or more monitoring indicators may include: sending the one or more monitoring indicators to the target computing engine through the interface of the target computing engine; and obtaining the current value of each operator corresponding to the target instance under each monitoring indicator from the target computing engine through the interface of the target computing engine.

[0074] In this example, at least one of the static topology of the multiple operators corresponding to the target instance and the current dynamic topology of the multiple operators corresponding to the target instance may also be obtained. The method of obtaining the static topology of the multiple operators corresponding to the target instance and the current dynamic topology of the multiple operators corresponding to the target instance is the same as that in the above embodiment, so it is not repeated.

[0075] By adopting the above solution, according to the monitoring indicators configured by the client, when obtaining the current operator information of the target instance, the current value of each operator under each configured monitoring indicator can be flexibly obtained according to the client configuration, so that the current operator information of the target instance that meets the client's needs can be obtained more flexibly, thereby ensuring that the client can more accurately display the current status of multiple operators of the target instance, so as to more efficiently and conveniently check whether there are abnormal operators in the instance, and accurately locate the position of the abnormal operator.

[0076] In some implementations, the current operator information of the target instance may be a current operator vector diagram of the target instance. The obtaining of the current operator information of the target instance includes: obtaining a current operator vector diagram corresponding to the target instance, wherein the current operator vector diagram corresponding to the target instance is composed of at least one of the following: static topology of multiple operators corresponding to the target instance, current dynamic topology of multiple operators corresponding to the target instance, and current value of each operator in the multiple operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators; using the current operator vector diagram corresponding to the target instance as the current operator information of the target instance.

[0077] Acquiring the current operator vector graph corresponding to the target instance may include: acquiring the current operator vector graph corresponding to the target instance from the target computing engine through an interface of the target computing engine.

[0078] In this implementation, the interface of the target computing engine may be a third interface preconfigured in the target computing engine, and the third interface may be an interface in semi-multiplexing mode. The type of interface content or interface information that can be obtained through the third interface of the target computing engine is a vector diagram.

[0079] In this implementation, the target computing engine itself already has the function of constructing a current operator vector map corresponding to the target instance based on at least one of the static topology of the multiple operators corresponding to the target instance, the current dynamic topology of the multiple operators corresponding to the target instance, and the current value of each of the multiple operators corresponding to the target instance under each monitoring indicator of one or more monitoring indicators. Therefore, after generating the current operator vector map corresponding to the target instance, the target computing engine can directly pass the current operator vector map corresponding to the target instance constructed by itself to the server.

[0080] Among them, the target computing engine specifically forms a processing method of the current operator vector map corresponding to the target instance based on the static topology of the multiple operators corresponding to the target instance, the current dynamic topology of the multiple operators corresponding to the target instance, and at least one of the current values ​​of each operator in the multiple operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators. It can be configured according to actual conditions. For example, the target computing engine can use Graphviz (GraphVisualization Software) to implement the graphing function, that is, the target computing engine can process the static topology of the multiple operators corresponding to the target instance, the current dynamic topology of the multiple operators corresponding to the target instance, and at least one of the current values ​​of each operator in the multiple operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators based on Graphviz to form the current operator vector map corresponding to the target instance. It should be pointed out that this is only an exemplary description, and this embodiment does not exhaustively list and limit the specific graphing functions used by the target computing engine.

[0081] Since the target computing engine is a system or tool that runs multiple operators corresponding to the target instance, the target computing engine can obtain at least one of the static topology of the multiple operators corresponding to the target instance, the current dynamic topology of the multiple operators corresponding to the target instance, and the current value of each operator among the multiple operators corresponding to the target instance under each monitoring metric in one or more monitoring metrics. Regarding the specific manner in which the target computing engine obtains the static topology of the multiple operators corresponding to the target instance, the current dynamic topology of the multiple operators corresponding to the target instance, and the current value of each operator among the multiple operators corresponding to the target instance under each monitoring metric in one or more monitoring metrics, this embodiment does not make any limitations.

[0082] The manner in which the target computing engine transmits the current operator vector diagram corresponding to the target instance to the server can also be configured according to the actual situation. For example, it can be to transmit the current operator vector diagram corresponding to the target instance through the "set_graph_viz (Set Graphviz)" function.

[0083] By adopting the above solution, it is possible to directly obtain an operator vector diagram composed of at least one of the static topology of the multiple operators corresponding to the target instance, the current dynamic topology of the multiple operators corresponding to the target instance, and the current value of each operator among the multiple operators corresponding to the target instance under each monitoring metric in one or more monitoring metrics, and directly use this operator vector diagram as the current operator information of the target instance. Thereby, the processing on the server side can be reduced, while improving the processing efficiency, it can ensure that the client can more intuitively display the current states of the multiple operators of the target instance, and thus more efficiently and conveniently check whether there are abnormal operators in the instance, and thus accurately locate the position of the abnormal operator.

[0084] In some embodiments, the web page code is an HTML (Hyper Text Markup Language) web page. Generating a web page code based on the current operator information of the target instance includes: adding the current operator information of the target instance to a specified element of an HTML template to obtain an HTML web page. Returning a query response to the client can be to send a query response containing the HTML web page to the client.

[0085] The HTML template can be pre-configured according to actual needs, and this HTML template is a template that follows the HTML document structure. The HTML template can include one or more tags such as <head (header)>, <body (content)>, etc., as well as a nested structure of various HTML elements. Among them, the nested structure of the HTML elements can include one or more <div (Division)> elements for displaying dynamically generated items, any one or more The element may be the specified element.

[0086] That is, the current operator information of the target instance is added to the specified element of the HTML template to obtain the HTML web page, which can be: the current operator information of the target instance is filled into the specified element of the HTML template. element, an HTML page containing the current operator information of the target instance is generated.

[0087] In this implementation, the current operator information of the target instance may be original basic information of the current operator of the target instance, or a current operator vector map of the target instance.

[0088] Sending the query response including the HTML webpage to the client may include: sending the query response including the HTML webpage to the client through an HTTP service interface.

[0089] On the client side, after receiving the query response including the HTML web page, the following may be included: rendering the HTML web page and displaying a page view including the operator monitoring graph corresponding to the target instance.

[0090] The type of the operator monitoring graph corresponding to the target instance can be a vector graph. The specific way of rendering and displaying the page view on the client side can be configured according to the actual situation. For example, the client can use HTML5 Canvas for rendering and display, or use Graphviz's graph expression engine for rendering and display. This embodiment does not limit or exhaustively list them. It should be pointed out that the content contained in the operator monitoring graph corresponding to the target instance displayed on the client should be the same as the current operator information of the target instance, so it will not be repeated one by one.

[0091] In this embodiment, the current operator information of the target instance can be filled into the HTML template to obtain an HTML webpage, and the HTML webpage can be transmitted to the client. In this way, while ensuring that the client can more accurately display the current status of multiple operators of the target instance, thereby more efficiently and conveniently checking whether there are abnormal operators in the instance and accurately locating the position of the abnormal operator, the processing efficiency of the client's display page view can also be improved.

[0092] In some implementations, the web page is encoded as HTML code, and generating the web page code based on the current operator information of the target instance includes: directly using the current operator information of the target instance as HTML code.

[0093] Returning the query response to the client may be by transmitting the query response including the HTML code to the client through the set_html function. Specifically, the query response including the HTML code may be transmitted to the client through the HTTP service interface by calling the set_html function.

[0094] This implementation is particularly applicable to a scenario where the current operator information of the target instance is original basic information of the current operator of the target instance.

[0095] Specifically, directly using the current operator information of the target instance as the web page code may refer to directly using the original basic information of the current operator of the target instance as the HTML code.

[0096] On the client side, after receiving the query response containing HTML code, the following may be included: rendering the HTML code in combination with the local HTML template and finally displaying a page view containing the operator monitoring graph corresponding to the target instance. This embodiment does not limit the specific way in which the client side renders and displays the page view.

[0097] In this implementation, the HTML code consisting of the original basic information of the current operator of the target instance can be passed to the client through the "set_html" function, and the server does not need to configure the HTML template. While ensuring that the client can more accurately display the current status of multiple operators of the target instance, thereby more efficiently and conveniently checking whether there are abnormal operators in the instance and accurately locating the position of the abnormal operator, it can also provide great flexibility for the client, so that the client can configure the HTML template according to its own needs and finally dynamically display the HTML code.

[0098] In some embodiments, a web page code is generated based on the current operator information of the target instance, including: when it is determined based on the current operator information of the target instance that there are one or more current abnormal operators among multiple operators corresponding to the target instance, current alarm information is generated, wherein the current alarm information is used to indicate the abnormal state of the one or more current abnormal operators; and the web page code is generated based on the current operator information of the target instance and the current alarm information.

[0099] A method for judging whether there are one or more current abnormal operators among the multiple operators corresponding to the target instance based on the current operator information of the target instance may include at least one of the following: when the current operator information of the target instance includes the current dynamic topology of at least some of the multiple operators corresponding to the target instance, determining that at least some of the operators are one or more current abnormal operators with topological abnormalities; when the current operator information of the target instance includes the current value of each operator under each monitoring indicator, judging whether the current value of each monitoring indicator of each operator is within a normal range; if there are one or more monitoring indicators of one or more candidate operators whose current values ​​are not within the normal range, then taking the one or more candidate operators as one or more current abnormal operators with abnormal monitoring indicators, and determining each abnormal monitoring indicator of each current abnormal operator with abnormal monitoring indicators.

[0100] In the case where it is determined based on the current operator information of the target instance that there are one or more current abnormal operators, current alarm information is generated, which may include at least one of the following: in the case where it is determined based on the current operator information of the target instance that there are one or more current abnormal operators with topological abnormalities, connection information of one or more current abnormal operators with topological abnormalities is generated as first-category current alarm information; in the case where it is determined based on the current operator information of the target instance that there are one or more current abnormal operators with abnormal monitoring indicators, an alarm display method is set for each abnormal monitoring indicator of each current abnormal operator with abnormal monitoring indicators to obtain second-category current alarm information.

[0101] Among them, the connection information can be used to indicate the abnormal connection relationship generated by each current abnormal operator; optionally, the connection information can also be used to indicate the rendering and / or display method of the abnormal connection relationship generated by each current abnormal operator, for example, the connection information can be used to indicate that the rendering and / or display method of the abnormal connection relationship generated by each current abnormal operator is a dotted arrow.

[0102] In a scenario where the current operator information of the target instance is the original basic information of the current operator of the target instance, an alarm display method is set for each abnormal monitoring indicator of each current abnormal operator whose monitoring indicator is abnormal. This can be done by associating the description code of each abnormal monitoring indicator of each current abnormal operator whose monitoring indicator is abnormal with the alarm display method.

[0103] In the scenario where the current operator information of the target instance is the current operator vector diagram of the target instance, an alarm display method is set for each abnormal monitoring indicator of each current abnormal operator with abnormal monitoring indicators. The method can be associating the position of each abnormal monitoring indicator of each current abnormal operator with abnormal monitoring indicators in the current operator vector diagram with the alarm display method.

[0104] The alarm display mode can be configured according to the actual situation. By setting the alarm display mode for the abnormal indicators of the abnormal operator, the display of the abnormal monitoring indicators of the current abnormal operator and the display of the current normal operator and / or normal monitoring indicators can be distinguished on the client side; for example, the alarm display mode can be at least one of a highlighting mode, a blurring mode, a display color different from that of the normal monitoring indicators, etc. In this way, the user can intuitively see the currently abnormal operator and its corresponding abnormal monitoring indicator, which is convenient for more accurate location of the problem.

[0105] In one example, the webpage encoding is an HTML webpage. Based on the current operator information and the current alarm information of the target instance, the webpage encoding is generated, including: adding the current operator information and the current alarm information of the target instance to a specified element of an HTML template to obtain an HTML webpage. Returning the query response to the client may be sending a query response including an HTML webpage to the client.

[0106] This example is applicable to the scenario where the current operator information of the target instance is the original basic information of the current operator of the target instance, or the current operator vector diagram of the target instance. In this example, the relevant processing after the server obtains the HTML webpage and the client obtains the query response including the HTML webpage is similar to the above-mentioned embodiment and will not be described in detail.

[0107] In one example, the webpage encoding is HTML code, and the webpage encoding is generated based on the current operator information and the current alarm information of the target instance, including: directly using the current operator information and the current alarm information of the target instance as HTML code. Returning the query response to the client can be to pass the query response containing the HTML code to the client through the set_html function.

[0108] This example is particularly suitable for the scenario where the current operator information of the target instance is the original basic information of the current operator of the target instance. In this example, the relevant processing after the server obtains the HTML code and the client obtains the query response containing the HTML code is similar to the above embodiment and will not be repeated.

[0109] By adopting the above solution, the server can analyze whether there is an abnormal operator based on the current operator information of the target instance. If there is an abnormal operator, the web page code is generated based on the current operator information of the target instance and the current alarm information. In this way, the client can directly determine whether there is an abnormal operator in the target instance and accurately locate the position of the abnormal operator based on the currently displayed content.

[0110] In some embodiments, the method further includes: inputting current operator information of the target instance and historical operator information of the target instance into a prediction model to obtain a prediction result output by the prediction model, wherein the prediction result is used to indicate whether there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance.

[0111] In this implementation, the historical operator information of the target instance may refer to: the historical operator information of the target instance at each historical moment in one or more historical moments within a first time period up to the current moment (excluding the current moment).

[0112] The first duration can be configured according to actual conditions. Each historical moment may refer to the moment when the server periodically obtains the historical operator information of the target instance; or each historical moment may be the historical moment when the server obtains the historical query request for the target instance from the client, that is, at each historical moment, the server will obtain the historical operator information of the target instance based on the historical query request of the target instance from the client.

[0113] The content that the historical operator information of the target instance may contain is similar to the current operator information of the target instance in the aforementioned embodiment, for example, it may include the original basic information of the historical operator of the target instance or the historical operator vector diagram of the target instance, etc., which will not be repeated here.

[0114] The prediction model can be configured according to actual conditions, and its training method is not limited in this embodiment. The function of the prediction model can be to analyze the current operator information of the target instance and the historical operator information of the target instance to obtain a prediction result of whether there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance.

[0115] Among them, the predicted abnormality may refer to the predicted abnormality occurring within a second time period after the current moment (excluding the current moment). The second time period may be configured according to actual conditions, and may be 1 day, 7 days, 10 hours, or longer or shorter, and this embodiment does not limit it.

[0116] Each operator to be adjusted included in the prediction result can be represented by identification information of each operator to be adjusted. The relevant description of the identification information is the same as that in the above embodiment and will not be repeated herein.

[0117] In this way, by using the prediction model, the operator information of the target instance within a period of time can be comprehensively analyzed to predict whether there are one or more operators to be adjusted that are expected to be abnormal among the multiple operators of the target instance. In this way, the status of each operator of the target instance can be more comprehensively estimated.

[0118] In some embodiments, the generating the web page code based on the operator information of the target instance includes: when the prediction result indicates that there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance, generating the web page code based on the current operator information of the target instance and the one or more operators to be adjusted.

[0119] Here, generating the web page code based on the current operator information of the target instance and the one or more operators to be adjusted may include: adding the identification information of each operator to be adjusted in the one or more operators to be adjusted to the prediction prompt information; generating the web page code based on the prediction prompt information and the current operator information of the target instance.

[0120] In one example, the webpage encoding is an HTML webpage. Based on the prediction prompt information and the current operator information of the target instance, the webpage encoding is generated, including: adding the current operator information of the target instance and the prediction prompt information to a specified element of an HTML template to obtain an HTML webpage. Returning the query response to the client may be sending a query response including an HTML webpage to the client.

[0121] This example is applicable to the scenario where the current operator information of the target instance is the original basic information of the current operator of the target instance, or the current operator vector diagram of the target instance. In this example, the relevant processing after the server obtains the HTML webpage and the client obtains the query response including the HTML webpage is similar to the above-mentioned embodiment and will not be described in detail.

[0122] In one example, the web page is encoded as HTML code, and the web page encoding is generated based on the prediction prompt information and the current operator information of the target instance, including: directly using the current operator information of the target instance and the prediction prompt information as HTML code.

[0123] This example is particularly suitable for the scenario where the current operator information of the target instance is the original basic information of the current operator of the target instance. In this example, the relevant processing after the server obtains the HTML code, feeds back the HTML code to the client, and the client obtains the query response containing the HTML code is similar to the above-mentioned embodiment and will not be described in detail.

[0124] It should be pointed out that the process of generating the web page encoding based on the operator information of the target instance provided in this embodiment can be combined with the related processes such as the judgment of whether there is a current abnormal operator in the current operator information of the target instance in the aforementioned embodiment.

[0125] Exemplarily, generating a web page code based on the current operator information of the target instance may include: generating current warning information when it is determined based on the current operator information of the target instance that there are one or more current abnormal operators among the multiple operators corresponding to the target instance; generating the web page code based on the current operator information of the target instance, the current warning information, and each operator to be adjusted when the prediction result indicates that there are one or more operators to be adjusted that are expected to be abnormal among the multiple operators corresponding to the target instance.

[0126] Exemplarily, generating a web page code based on the current operator information of the target instance may include: when it is determined based on the current operator information of the target instance that there is no current abnormal operator among the multiple operators corresponding to the target instance, and the prediction result indicates that there is no operator to be adjusted that is expected to be abnormal among the multiple operators corresponding to the target instance, it is only necessary to generate the web page code based on the current operator information of the target instance.

[0127] By adopting the above solution, when the server determines that there is an operator to be adjusted that is about to become abnormal based on the prediction result, the web page code can be generated based on the current operator information of the target instance and the one or more operators to be adjusted. In this way, the client can not only determine whether there is an abnormal operator in the target instance and accurately locate the position of the abnormal operator based on the currently displayed content, but also prompt the operator to be adjusted that is about to become abnormal on the client, thereby solving potential abnormal problems in advance.

[0128] In some embodiments, when the prediction result indicates that there are one or more operators to be adjusted that are expected to have an abnormality among the multiple operators corresponding to the target instance, the web page code is generated based on the current operator information of the target instance and the one or more operators to be adjusted, including: when the prediction result indicates that there are one or more operators to be adjusted that are expected to have an abnormality among the multiple operators corresponding to the target instance, and indicates the expected abnormality type of each of the one or more operators to be adjusted, based on the expected abnormality type of each operator to be adjusted, obtaining adjustment information of each operator to be adjusted; generating the web page code based on the current operator information of the target instance, each operator to be adjusted, and the adjustment information of each operator to be adjusted.

[0129] In this embodiment, the prediction result output by the prediction model may include not only whether there are one or more operators to be adjusted that are expected to have an abnormality among the multiple operators corresponding to the target instance, but also the predicted abnormality type of each of the one or more operators to be adjusted when there are one or more operators to be adjusted that are expected to have an abnormality among the multiple operators corresponding to the target instance. The difference from the above embodiment is that when the prediction model is trained in this embodiment, the predicted abnormality type of each operator to be adjusted needs to be configured in the training data as a training label.

[0130] The estimated abnormality type of each to-be-adjusted operator may include one or more optional abnormality types among a plurality of pre-configured optional abnormality types.

[0131] For example, the pre-configured multiple optional abnormality types may include at least one of the following: one or more monitoring indicator abnormalities, connection relationship abnormalities, etc. Based on the expected abnormality type of each operator to be adjusted, the adjustment information of each operator to be adjusted is obtained, which may include at least one of the following: when the expected abnormality type of the mth operator to be adjusted includes one or more monitoring indicator abnormalities, it is determined that the adjustment information of the mth operator to be adjusted includes the adjustment method associated with each abnormal monitoring indicator; when the expected abnormality type of the mth operator to be adjusted includes a connection relationship abnormality, it is determined that the adjustment information of the mth operator to be adjusted includes maintaining the static topology of the mth operator to be adjusted using the multiple operators corresponding to the target instance to connect the upper-level operator and / or the lower-level operator, the mth operator to be adjusted is any one of the one or more operators to be adjusted, and m is an integer greater than or equal to 1. Since the processing for each operator to be adjusted is the same as that for the mth operator to be adjusted, they will not be described one by one. It should be noted that the above is only an exemplary description, and the various optional exception types are not limited or exhaustively listed here, and correspondingly, the possible contents of the adjustment information corresponding to all possible exception types are not limited or exhaustively listed.

[0132] In one example, the web page encoding is an HTML web page. Based on the current operator information of the target instance, each of the operators to be adjusted, and the adjustment information of each of the operators to be adjusted, the web page encoding is generated, including: adding the current operator information of the target instance, the identification information of each of the operators to be adjusted, and the adjustment information of each of the operators to be adjusted to a specified element of the HTML template to obtain the HTML web page. Returning the query response to the client may be sending a query response including the HTML web page to the client.

[0133] This example is applicable to the scenario where the current operator information of the target instance is the original basic information of the current operator of the target instance, or the current operator vector diagram of the target instance. In this example, the relevant processing after the server obtains the HTML webpage and the client obtains the query response including the HTML webpage is similar to the above-mentioned embodiment and will not be described in detail.

[0134] In one example, a web page is encoded as HTML code, and the web page code is generated based on the current operator information of the target instance, each operator to be adjusted, and the adjustment information of each operator to be adjusted, including: directly using the current operator information of the target instance, the identification information of each operator to be adjusted, and the adjustment information of each operator to be adjusted as HTML code.

[0135] This example is particularly suitable for the scenario where the current operator information of the target instance is the original basic information of the current operator of the target instance. In this example, the relevant processing after the server obtains the HTML code, feeds back the HTML code to the client, and the client obtains the query response containing the HTML code is similar to the above-mentioned embodiment and will not be described in detail.

[0136] It should be pointed out that the process of generating the web page encoding based on the operator information of the target instance provided in this embodiment can be combined with the related processes such as the judgment of whether there is a current abnormal operator in the current operator information of the target instance in the aforementioned embodiment.

[0137] Exemplarily, generating a web page code based on the current operator information of the target instance may include: generating current alarm information when it is determined based on the current operator information of the target instance that there are one or more current abnormal operators among the multiple operators corresponding to the target instance; obtaining adjustment information of each operator to be adjusted based on the expected abnormal type of each operator to be adjusted when the prediction result indicates that there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance, and indicates the expected abnormal type of each operator to be adjusted among the one or more operators to be adjusted; generating the web page code based on the current operator information of the target instance, the current alarm information, each operator to be adjusted, and the adjustment information of each operator to be adjusted.

[0138] The specific processing method for generating the web page encoding based on the current operator information of the target instance, the current alarm information, each operator to be adjusted, and the adjustment information of each operator to be adjusted is similar to the above example and will not be repeated.

[0139] By adopting the above scheme, when the prediction result indicates that the target instance has an operator to be adjusted that is about to become abnormal, and indicates the expected abnormal type of each operator to be adjusted, the server can determine the corresponding adjustment information according to the expected abnormal type of each operator to be adjusted, and generate the web page code based on the current operator information of the target instance, the one or more operators to be adjusted, and the adjustment information of each operator to be adjusted. In this way, in addition to being able to determine whether the target instance has an abnormal operator and accurately locate the position of the abnormal operator based on the currently displayed content, the client can also prompt the operator to be adjusted that is about to become abnormal and the corresponding adjustment method on the client, thereby resolving potential abnormal problems in advance.

[0140] In some embodiments, the generating the web page code based on the current operator information of the target instance includes: when the prediction result indicates that there are one or more operators to be adjusted in the target instance that are expected to have an operational abnormality, and indicates adjustment information of each of the one or more operators to be adjusted, generating the web page code based on the current operator information of the target instance, each operator to be adjusted, and the adjustment information of each operator to be adjusted.

[0141] In this embodiment, the prediction result output by the prediction model may not only include whether there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance, but also include adjustment information of each of the one or more operators to be adjusted when there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance.

[0142] The difference from the previous embodiment is that when this embodiment trains the prediction model, it is necessary to configure the adjustment information of each operator to be adjusted in the training data as a training label. The specific content that the adjustment information may contain is related to the training label, which is not limited in this embodiment.

[0143] The relevant processing method of generating the web page encoding based on the current operator information of the target instance, each operator to be adjusted, and the adjustment information of each operator to be adjusted is the same as that in the above embodiment, so it is not repeated here.

[0144] It should be pointed out that the process of generating the web page encoding based on the operator information of the target instance provided in this embodiment can be combined with the related processes such as the judgment of whether there is a current abnormal operator in the current operator information of the target instance in the aforementioned embodiment.

[0145] Exemplarily, generating a web page code based on the current operator information of the target instance may include: generating current alarm information when it is determined based on the current operator information of the target instance that there are one or more current abnormal operators among the multiple operators corresponding to the target instance; generating the web page code based on the current operator information of the target instance, the current alarm information, each operator to be adjusted, and the adjustment information of each operator to be adjusted when the prediction result indicates that there are one or more operators to be adjusted that are expected to be abnormal among the multiple operators corresponding to the target instance, and indicates the adjustment information of each of the one or more operators to be adjusted.

[0146] The specific processing method for generating the web page encoding based on the current operator information of the target instance, the current alarm information, each operator to be adjusted, and the adjustment information of each operator to be adjusted is similar to the above example and will not be repeated.

[0147] By adopting the above scheme, when the prediction result indicates that the target instance has an operator to be adjusted that is about to become abnormal, and indicates the adjustment information of each operator to be adjusted, the web page code can be generated based on the current operator information of the target instance, the one or more operators to be adjusted, and the adjustment information of each operator to be adjusted. In this way, the client can not only determine whether the target instance has an abnormal operator and accurately locate the position of the abnormal operator based on the currently displayed content, but also prompt the client for the operator to be adjusted that is about to become abnormal and the corresponding adjustment method, so as to solve potential abnormal problems in advance.

[0148] The present disclosure also provides an example monitoring device, such as Figure 2 As shown, including:

[0149] The communication module 201 is used to receive a query request for a target instance from a client and return a query response to the client, wherein the query response carries a web page code, and the web page code is used by the client to display an operator monitoring diagram corresponding to the target instance;

[0150] An operator information acquisition module 202 is used to acquire current operator information of a target instance;

[0151] The processing module 203 is used to generate a web page code based on the current operator information of the target instance.

[0152] In one embodiment, the operator information acquisition module 202 is used to perform at least one of the following: obtain an operator topology file corresponding to the target instance, and obtain the static topology of multiple operators corresponding to the target instance based on the operator topology file corresponding to the target instance; obtain the current connection relationship of each operator among the multiple operators corresponding to the target instance, and when the current connection relationship of at least some operators among the multiple operators corresponding to the target instance is different from the static topology of the multiple operators corresponding to the target instance, obtain the current dynamic topology of at least some operators among the multiple operators corresponding to the target instance based on the current connection relationship of at least some operators; obtain the current value of each operator corresponding to the target instance under each monitoring indicator in one or more monitoring indicators.

[0153] In one implementation, the communication module 201 is further configured to receive indication information from a client, wherein the indication information is configured to indicate one or more monitoring indicators.

[0154] In one embodiment, the operator information acquisition module 202 is used to obtain a current operator vector map corresponding to the target instance, wherein the current operator vector map corresponding to the target instance is composed of at least one of the following: a static topology of multiple operators corresponding to the target instance, a current dynamic topology of at least some of the multiple operators corresponding to the target instance, and a current value of each operator among the multiple operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators; the current operator vector map corresponding to the target instance is used as the current operator information of the target instance.

[0155] In one embodiment, the processing module 203 is used to generate current alarm information when it is determined that there are one or more current abnormal operators based on the current operator information of the target instance, wherein the current alarm information is used to indicate the abnormal state of one or more current abnormal operators; and generate web page code based on the current operator information and current alarm information of the target instance.

[0156] In one embodiment, if Figure 3 As shown, the instance monitoring device also includes: a prediction module 301, which is used to input the current operator information of the target instance and the historical operator information of the target instance into the prediction model to obtain a prediction result output by the prediction model, wherein the prediction result is used to indicate whether there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance.

[0157] In one embodiment, the processing module 203 is used to generate a web page code based on the current operator information of the target instance and one or more operators to be adjusted when the prediction result indicates that there are one or more operators to be adjusted among the multiple operators corresponding to the target instance that are expected to have abnormalities.

[0158] In one embodiment, the processing module 203 is used to obtain adjustment information of each operator to be adjusted based on the expected abnormality type of each operator to be adjusted when the prediction result indicates that there are one or more operators to be adjusted that are expected to have an abnormality among the multiple operators corresponding to the target instance, and indicates the expected abnormality type of each operator to be adjusted among the one or more operators to be adjusted; and generate web page code based on the current operator information of the target instance, each operator to be adjusted, and the adjustment information of each operator to be adjusted.

[0159] In one embodiment, the processing module 203 is used to generate a web page code based on the current operator information of the target instance, each operator to be adjusted, and the adjustment information of each operator to be adjusted, when the prediction result indicates that there are one or more operators to be adjusted among the multiple operators corresponding to the target instance that are expected to have an abnormality, and indicates the adjustment information of each of the one or more operators to be adjusted.

[0160] In some possible examples, the instance monitoring device provided by this embodiment may be embedded in the target computing engine in the form of a static link library.

[0161] Next, combine Figures 4 to 7 An example of the process of client and server monitoring is given below:

[0162] First, execute S501 to S502 on the client 400:

[0163] S501, the client 400 obtains the URL of the target instance input in the browser 401. For example, Figure 6 As shown, the user can enter the URL of the target instance "http: / / target instance address:target instance port number / common / call_graph" in the address bar 602 of the browser 601 of the client used by the user.

[0164] S502 , the client 400 adds the URL of the target instance to the query request of the target instance, and sends the query request of the target instance to the server 410 .

[0165] Execute S511 to S515 at the server 410:

[0166] S511, the server 410 receives the query request of the target instance through the HTTP service interface 402. The HTTP service interface may be set in the communication module of the instance monitoring device.

[0167] S512, the HTTP service interface 402 of the server forwards the query request of the target instance to the processing module 403. Here, the processing module of the server can also be alternatively called core processing logic, core processing function module, etc.

[0168] S513, the processing module 403 of the server obtains the current operator information of the target instance through the interface of the target computing engine 420. The current operator information of the target instance can also be called a composition code for generating an operator monitoring graph corresponding to the target instance, and the type of the operator monitoring graph corresponding to the target instance can be a vector graph. Among them, the current operator information of the target instance includes at least one of the following: the static topology of multiple operators corresponding to the target instance, the current dynamic topology of multiple operators corresponding to the target instance, and the current value (or dynamic monitoring value) of each operator in the multiple operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators. Specifically, obtaining the static topology of multiple operators corresponding to the target instance may include: obtaining the operator topology file 405 corresponding to the target instance from the target computing engine through the interface of the target computing engine, and obtaining the static topology of the multiple operators corresponding to the target instance based on the operator topology file corresponding to the target instance; the current dynamic topology of the multiple operators corresponding to the target instance may include: obtaining the current connection relationship 406 of each of the multiple operators corresponding to the target instance from the target computing engine through the interface of the target computing engine, and when the current connection relationship of at least some of the operators in the multiple operators corresponding to the target instance is different from the static topology of the multiple operators corresponding to the target instance, obtaining the current dynamic topology of at least some of the operators in the multiple operators corresponding to the target instance based on the current connection relationship of at least some of the operators; obtaining the current value of each of the multiple operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators may include: obtaining the current value 407 of each of the operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators from the target computing engine through the interface of the target computing engine.

[0169] S514, the processing module 403 of the server adds the current operator information of the target instance to the HTML template 404 to generate an HTML web page.

[0170] S515 , the processing module 403 of the server side feeds back an HTML web page to the client 400 through the HTTP service interface 402 .

[0171] Finally, S521 is executed on the client, the browser 401 of the client 400 parses the HTML webpage, and the operator monitoring graph corresponding to the target instance is constructed and displayed through the image rendering engine. Here, the contents of the operator monitoring graph corresponding to the target instance should be the same as the current operator information of the target instance.

[0172] Combination Figure 7 The following is an example of the operator monitoring graph corresponding to the target instance displayed by the client: Figure 7 The monitoring status of each operator (operator A, operator B, operator C, operator D, operator E) in the target instance is displayed, including: static topology, dynamic monitoring value of each operator, and current dynamic topology of at least some operators. Among them, operators A, B, C, D, and E are connected by directed edges (i.e. Figure 7 The solid line in the figure indicates the static topology of multiple operators corresponding to the target instance; the dynamic monitoring value of the operator in the monitoring indicator is displayed next to each operator to indicate the real-time running status of each operator. The monitoring indicators in the figure can be configured on the client, including: "Operator Queue", "Operator Delay", "Total Processing", and "Number of Processing Failures"; Figure 7 The dotted arrow between operator B and operator E in FIG. 1 indicates the current dynamic topology between operator B and operator E.

[0173] By displaying the operator monitoring graph corresponding to the target instance on the client, users can intuitively understand the current running status of the target instance, allowing users to quickly identify potential abnormal problems.

[0174] In order to avoid adding extra burden to the server, the present embodiment will render the operator monitoring graph in the client's browser, that is, the HTML webpage transmitted through the HTTP service interface can be parsed and converted into a real monitoring graph in the client's browser, and it is not necessary to directly convert the original image on the server and then transmit it back. The advantages of this are: the calculation speed and transmission speed are very fast, basically 0 cost for the server to run, and no extra calculation burden is added, because the server only needs to transmit the original key information of the composition and the encoding of the key parameters of the composition, and the amount of information of this encoding information is less than 1K. If the composition is done on the server, not only does it need to perform relatively heavy composition calculations on the server (occupying large resources such as CPU and memory), but it may even occupy a large amount of image bandwidth because the image itself is relatively large, which seriously affects the service capability of the computing engine itself, which is a bit upside down for the service; the link library will be very small, and there is 0 cost for the service compilation and deployment. The server transmits the encoding so that the server parameters themselves do not need to be embedded in the image rendering engine on the server, but only the core parameter logic needs to be processed. The client browser itself can be adapted across multiple operating system environments, so you can directly choose an open source browser to render and display the operator monitoring graph. The client can use HTML5 Canvas for rendering and display, or use Graphviz's graph expression engine for rendering and display, which is not limited or exhaustive in this embodiment.

[0175] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0176] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0177] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0178] like Figure 8 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0179] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0180] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the instance monitoring method. For example, in some embodiments, the instance monitoring method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the instance monitoring method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the instance monitoring method in any other appropriate manner (e.g., by means of firmware).

[0181] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0182] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0183] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0184] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0185] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0186] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0187] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of this disclosure can be achieved, and this document is not limited here.

[0188] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. An instance monitoring method, comprising: Receive a query request for a target instance from a client; Obtaining current operator information of the target instance; Generate web page code based on current operator information of the target instance; A query response is returned to the client, wherein the query response carries the web page code, and the web page code is used by the client to display an operator monitoring graph corresponding to the target instance.

2. The method according to claim 1, wherein: The acquiring the current operator information of the target instance includes at least one of the following: Obtain an operator topology file corresponding to the target instance, and obtain static topologies of multiple operators corresponding to the target instance based on the operator topology file corresponding to the target instance; Obtaining a current connection relationship of each operator among the multiple operators corresponding to the target instance, and in a case where the current connection relationship of at least some of the operators among the multiple operators corresponding to the target instance is different from the static topology of the multiple operators corresponding to the target instance, obtaining the current dynamic topology of at least some of the operators among the multiple operators corresponding to the target instance based on the current connection relationship of at least some of the operators; Obtain the current value of each operator corresponding to the target instance under each monitoring indicator of one or more monitoring indicators.

3. The method according to claim 2, further comprising: Receive indication information from the client, wherein the indication information is used to indicate the one or more monitoring indicators.

4. The method according to claim 1, wherein: The obtaining the current operator information of the target instance includes: Obtain a current operator vector graph corresponding to the target instance, wherein the current operator vector graph corresponding to the target instance is composed of at least one of the following: a static topology of multiple operators corresponding to the target instance, a current dynamic topology of at least some of the multiple operators corresponding to the target instance, and a current value of each of the multiple operators corresponding to the target instance under each monitoring indicator of one or more monitoring indicators; The current operator vector map corresponding to the target instance is used as the current operator information of the target instance.

5. The method according to any one of claims 1 to 4, wherein: The generating of web page code based on the current operator information of the target instance includes: In a case where it is determined based on the current operator information of the target instance that there are one or more current abnormal operators among the multiple operators corresponding to the target instance, current alarm information is generated, wherein the current alarm information is used to indicate an abnormal state of the one or more current abnormal operators; The web page code is generated based on the current operator information of the target instance and the current alarm information.

6. The method according to any one of claims 1 to 4, wherein: The method further comprises: The current operator information of the target instance and the historical operator information of the target instance are input into the prediction model to obtain a prediction result output by the prediction model, wherein the prediction result is used to indicate whether there are one or more operators to be adjusted that are expected to be abnormal among the multiple operators corresponding to the target instance.

7. The method according to claim 6, wherein: The generating the webpage code based on the operator information of the target instance includes: When the prediction result indicates that there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance, the web page code is generated based on current operator information of the target instance and the one or more operators to be adjusted.

8. The method according to claim 7, wherein: When the prediction result indicates that one or more operators to be adjusted that are expected to be abnormal exist among the multiple operators corresponding to the target instance, generating the webpage code based on the current operator information of the target instance and the one or more operators to be adjusted includes: When the prediction result indicates that there are one or more operators to be adjusted that are expected to have an abnormality among the multiple operators corresponding to the target instance, and indicates the expected abnormality type of each of the one or more operators to be adjusted, based on the expected abnormality type of each operator to be adjusted, obtaining adjustment information of each operator to be adjusted; The web page code is generated based on the current operator information of the target instance, each of the operators to be adjusted, and the adjustment information of each of the operators to be adjusted.

9. The method according to claim 6, wherein: The generating the webpage code based on the current operator information of the target instance includes: When the prediction result indicates that there are one or more operators to be adjusted that are expected to have an abnormality among the multiple operators corresponding to the target instance, and indicates adjustment information of each of the one or more operators to be adjusted, the web page code is generated based on the current operator information of the target instance, each operator to be adjusted, and the adjustment information of each operator to be adjusted.

10. An instance monitoring device, comprising: A communication module, used to receive a query request for a target instance from a client, and return a query response to the client, wherein the query response carries a web page code, and the web page code is used by the client to display an operator monitoring diagram corresponding to the target instance; An operator information acquisition module, used to acquire the current operator information of the target instance; The processing module is used to generate web page code based on the current operator information of the target instance.

11. The device according to claim 10, wherein: The operator information acquisition module is used to perform at least one of the following: Obtain an operator topology file corresponding to the target instance, and obtain static topologies of multiple operators corresponding to the target instance based on the operator topology file corresponding to the target instance; Obtaining a current connection relationship of each operator among the multiple operators corresponding to the target instance, and in a case where the current connection relationship of at least some of the operators among the multiple operators corresponding to the target instance is different from the static topology of the multiple operators corresponding to the target instance, obtaining the current dynamic topology of at least some of the operators among the multiple operators corresponding to the target instance based on the current connection relationship of at least some of the operators; Obtain the current value of each operator corresponding to the target instance under each monitoring indicator of one or more monitoring indicators.

12. The device according to claim 11, wherein the communication module is further configured to receive instruction information from the client, wherein: The indication information is used to indicate the one or more monitoring indicators.

13. The device according to claim 10, wherein: The operator information acquisition module is used to obtain a current operator vector map corresponding to the target instance, wherein the current operator vector map corresponding to the target instance is composed of at least one of the following: a static topology of multiple operators corresponding to the target instance, a current dynamic topology of at least some of the multiple operators corresponding to the target instance, and a current value of each operator in the multiple operators corresponding to the target instance under each monitoring indicator in one or more monitoring indicators; the current operator vector map corresponding to the target instance is used as the current operator information of the target instance.

14. The device according to claims 10-13, wherein: The processing module is used to generate current alarm information when it is determined that there are one or more current abnormal operators based on the current operator information of the target instance, wherein the current alarm information is used to indicate the abnormal state of the one or more current abnormal operators; and generate the web page code based on the current operator information of the target instance and the current alarm information.

15. The device according to any one of claims 10 to 13, wherein: The device also includes: A prediction module is used to input the current operator information of the target instance and the historical operator information of the target instance into a prediction model to obtain a prediction result output by the prediction model, wherein the prediction result is used to indicate whether there are one or more operators to be adjusted that are expected to be abnormal among the multiple operators corresponding to the target instance.

16. The device according to claim 15, wherein: The processing module is used to generate the web page code based on the current operator information of the target instance and the one or more operators to be adjusted when the prediction result indicates that there are one or more operators to be adjusted that are expected to have abnormalities among the multiple operators corresponding to the target instance.

17. The device according to claim 16, wherein: The processing module is configured to obtain adjustment information of each operator to be adjusted based on the expected abnormality type of each operator to be adjusted when the prediction result indicates that there are one or more operators to be adjusted that are expected to have an abnormality among the multiple operators corresponding to the target instance and indicates the expected abnormality type of each operator to be adjusted among the one or more operators to be adjusted; The web page code is generated based on the current operator information of the target instance, each of the operators to be adjusted, and the adjustment information of each of the operators to be adjusted.

18. The device according to claim 15, wherein: The processing module is used to generate the web page code based on the current operator information of the target instance, each operator to be adjusted, and the adjustment information of each operator to be adjusted, when the prediction result indicates that there are one or more operators to be adjusted among the multiple operators corresponding to the target instance and that an abnormality is expected to occur, and indicates the adjustment information of each of the one or more operators to be adjusted.

19. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.

20. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-9.

21. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Webpage encoding identifying method and device

    CN104361021A

  • Heterogeneous-operator management method in big-data analysis and development platform

    CN107943945A

  • Operator arrangement method and device, electronic equipment and storage medium

    CN117032887A

  • Scalable web data extraction

    US20170337484A1