Monitoring information display and processing method and device, computer device and storage medium

By acquiring the metadata of the chart display template and query expressions of the monitored objects, the high development cost of traditional monitoring information display methods is solved, enabling convenient chart-based display of monitoring details and adapting to new monitoring objects and changes in requirements.

CN113886174BActive Publication Date: 2026-04-07SHENZHEN KINGDEE MIDDLEWARE
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Traditional methods of displaying monitoring information require adjustments to the front-end page and back-end interface for different monitoring objects, resulting in high development costs.

Method used

By obtaining the metadata of the chart display template of the monitored object, querying the monitoring details based on the query expression of the monitoring metrics in the metadata, and populating the chart display template according to the panel type for rendering and display, the adjustment of the front-end page and back-end interface is reduced.

Benefits of technology

It reduces the cost of front-end and back-end development, enables convenient graphical display of monitoring details, and adapts to changes in the requirements for new monitoring objects and monitoring details.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886174B_ABST
    Figure CN113886174B_ABST
Patent Text Reader

Abstract

The application relates to a monitoring information display and processing method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring metadata of a graph display template set for a monitoring object; the graph display template is set based on monitoring detail requirements of the monitoring object; according to a query expression corresponding to a monitoring index in the metadata, monitoring detail information corresponding to each monitoring index is queried; according to a panel type corresponding to each monitoring index recorded in the metadata, monitoring detail information corresponding to each monitoring index is filled into a corresponding panel in the graph display template for rendering display. The method can reduce development cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing technology, and in particular to a method, apparatus, computer equipment, and storage medium for displaying and processing monitoring information. Background Technology

[0002] With the development of information processing technology, visualization technologies for cloud monitoring information have emerged. Traditionally, different interfaces need to be encapsulated on the backend to provide detailed monitoring information for different monitored objects. Furthermore, since different monitoring metrics and charts are required for different monitored objects, different frontend pages also need to be developed accordingly.

[0003] Therefore, in traditional methods, when new monitoring objects need to be added or the requirements for monitoring details change, both the front-end page and the back-end interface need to be adjusted appropriately, which will greatly increase development costs. Summary of the Invention

[0004] Therefore, it is necessary to provide a monitoring information display and processing method, device, computer equipment, and storage medium that can reduce development costs in response to the above-mentioned technical problems.

[0005] A method for displaying monitoring information, the method comprising:

[0006] Obtain the metadata of the chart display template set for the monitored object; the chart display template is set based on the monitoring details requirements of the monitored object;

[0007] Based on the query expressions corresponding to the monitoring metrics in the metadata, query the monitoring details information corresponding to each monitoring metric.

[0008] According to the panel type corresponding to each monitoring indicator recorded in the metadata, the monitoring details information corresponding to each monitoring indicator is filled into the corresponding panel in the chart display template for rendering and display.

[0009] In one embodiment, obtaining the metadata of the chart display template set for the monitored object includes:

[0010] Upon receiving an access request for monitoring details of the monitored object, the metadata interface is invoked to retrieve the metadata of the chart display template set for the monitored object from the database.

[0011] In one embodiment, the metadata includes the panel type corresponding to each monitoring metric; querying the monitoring details information corresponding to each monitoring metric based on the query expression in the metadata includes:

[0012] Based on the panel type corresponding to each monitoring indicator in the metadata, determine the indicator query interface corresponding to the monitoring indicator;

[0013] Based on the query expression corresponding to the monitoring metric in the metadata, the metric query interface corresponding to the monitoring metric is called to query the monitoring details information corresponding to each monitoring metric.

[0014] In one embodiment, the method further includes:

[0015] After the monitoring details obtained through the same indicator query interface are aggregated and encapsulated, the encapsulated monitoring details are received back based on the indicator query interface.

[0016] In one embodiment, determining the metric query interface corresponding to each monitoring metric based on the panel type in the metadata includes:

[0017] If the panel type corresponding to the monitoring indicator is a form panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface used to query form data.

[0018] If the panel type corresponding to the monitoring indicator is a chart panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface used to query chart data.

[0019] If the panel type corresponding to the monitoring indicator is a table panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface used to query table data.

[0020] In one embodiment, querying the monitoring details information corresponding to each monitoring metric based on the query expression in the metadata corresponding to the monitoring metric includes:

[0021] Determine the monitoring metric expression in the metadata that corresponds to the monitoring metric;

[0022] Based on the query expression and query type in each of the monitoring indicator expressions, query the monitoring details information corresponding to each of the monitoring indicators.

[0023] In one embodiment, the metadata of the chart display template is obtained from the chart display template setting step; the chart display template setting step includes:

[0024] Create an initial chart display template for the monitored object;

[0025] In response to the panel addition operation, an initial panel of at least one panel type corresponding to the monitoring metric is added to the initial chart display template; the monitoring metric matches the monitoring details requirements of the monitored object.

[0026] The initial panel is edited in response to a panel editing operation to obtain an edited panel;

[0027] Based on the query expression configured for the monitoring metric and the panel, a chart display template corresponding to the monitoring object is generated, and the metadata of the chart display template is stored in the database.

[0028] A method for processing monitoring information, the method comprising:

[0029] Receive monitoring details query requests initiated based on metadata from a chart display template; the chart display template is set based on the monitoring details requirements of the monitored object; the monitoring details query request carries a query expression from the metadata corresponding to the monitoring metric;

[0030] Based on the query expression, query the monitoring details information corresponding to each of the monitoring indicators;

[0031] Return the monitoring details information; the returned monitoring details information is used to instruct that the monitoring details information corresponding to each monitoring indicator recorded in the metadata be filled into the corresponding panel in the chart display template for rendering and display.

[0032] In one embodiment, the metadata of the chart display template includes the panel type corresponding to each monitoring metric;

[0033] The process of receiving monitoring details query requests initiated based on metadata from the chart display template includes:

[0034] The system receives monitoring detail query requests for the monitoring indicators based on the metadata through the indicator query interface of the monitoring indicators determined by the panel type.

[0035] The returned monitoring details include:

[0036] The monitoring details obtained through the same metric query interface are aggregated and encapsulated to obtain the encapsulated monitoring details.

[0037] The query interface for each of the aforementioned metrics returns encapsulated monitoring details for the corresponding monitoring metrics.

[0038] A monitoring information display device, the device comprising:

[0039] The metadata acquisition module is used to acquire the metadata of the chart display template set for the monitored object; the chart display template is set based on the monitoring details requirements of the monitored object.

[0040] The monitoring information query module is used to query the monitoring details information corresponding to each monitoring indicator based on the query expression in the metadata that corresponds to the monitoring indicator;

[0041] The monitoring information display module is used to fill the monitoring details information corresponding to each monitoring indicator into the corresponding panel in the chart display template according to the panel type corresponding to each monitoring indicator recorded in the metadata, so as to render and display it.

[0042] A monitoring information processing device, the device comprising:

[0043] The request receiving module is used to receive monitoring detail query requests initiated based on metadata from a chart display template; the chart display template is set based on the monitoring detail requirements of the monitored object; the monitoring detail query request carries a query expression corresponding to the monitoring metric in the metadata;

[0044] The monitoring information query module is used to query the monitoring details information corresponding to each of the monitoring indicators according to the query expression.

[0045] The monitoring information processing module is used to return the monitoring details information; the returned monitoring details information is used to instruct the corresponding monitoring details information of each monitoring indicator to be filled into the corresponding panel in the chart display template according to the panel type of each monitoring indicator recorded in the metadata, so as to be rendered and displayed.

[0046] A computer device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the methods described in the embodiments of this application.

[0047] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of the methods described in the embodiments of this application.

[0048] The aforementioned monitoring information display and processing method, device, computer equipment, and storage medium acquire metadata of a chart display template set for the monitored object; the chart display template is set based on the monitoring details requirements of the monitored object. According to the query expression corresponding to the monitoring indicator in the metadata, the monitoring details information corresponding to each monitoring indicator is queried; the monitoring details information of each monitored object is queried through the metadata. According to the panel type corresponding to each monitoring indicator recorded in the metadata, the monitoring details information corresponding to each monitoring indicator is filled into the corresponding panel in the chart display template for rendering and display. That is, by setting a chart display template and combining it with the metadata of the chart display template, the chart display of monitoring details can be conveniently realized. If a new monitored object needs to be added, only a new chart display template needs to be set accordingly; there is no need to develop a front-end page for the monitored object, which can reduce the cost of front-end development. Moreover, for different monitoring details requirements, only the metadata of the chart display template needs to be modified; there is no need to adjust the front-end page and back-end interface, further reducing development costs. Attached Figure Description

[0049] Figure 1 This is an application environment diagram of a monitoring information display method in one embodiment;

[0050] Figure 2 This is a flowchart illustrating a method for displaying monitoring information in one embodiment;

[0051] Figure 3 This is a sequence diagram of the monitoring details acquisition process in one embodiment;

[0052] Figure 4 This is a flowchart illustrating the process of creating a chart display template in one embodiment;

[0053] Figure 5 This is a flowchart illustrating the process of drawing a panel in one embodiment;

[0054] Figure 6 This is a structural block diagram of a monitoring information display device in one embodiment;

[0055] Figure 7 This is a structural block diagram of a monitoring information processing device in one embodiment;

[0056] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0057] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0058] The monitoring information display method provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. Server 104 pre-stores metadata for chart display templates set according to the monitoring details requirements of the monitored object. Terminal 102 retrieves the metadata of the chart display templates set for the monitored object from server 104. Terminal 102 queries server 104 for the monitoring details information corresponding to each monitoring indicator according to the query expression corresponding to the monitoring indicator in the metadata. Terminal 102 fills the monitoring details information corresponding to each monitoring indicator into the corresponding panel in the chart display template according to the panel type recorded in the metadata for rendering and display. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices, and server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0059] In one embodiment, such as Figure 2 As shown, a method for displaying monitoring information is provided. This method can be used by... Figure 1 Executed in the middle terminal, or by Figure 1 The process is executed jointly by the terminal and the server, including the following steps:

[0060] S202, retrieve metadata for the chart display template set for the monitored object.

[0061] Here, "monitored object" refers to the object being monitored. The chart display template is set based on the monitoring details requirements of the monitored object. Monitoring details requirements refer to the requirements related to displaying the monitoring details information of the monitored object. Monitoring details information refers to relevant information obtained from monitoring the monitored object that reflects the details of the monitored object. Metadata refers to data attributes used to describe the data related to the chart display template.

[0062] Specifically, the terminal can retrieve metadata from the server's database for the chart display template set for the monitored object.

[0063] In one embodiment, the terminal can retrieve metadata about the chart display template set for the monitored object from the server's database based on a specific metadata interface. It is understood that in other embodiments, the terminal can also retrieve metadata about the chart display template set for the monitored object from the server's database based on a non-specific interface that can still retrieve metadata. For example, an existing interface can be given the function of retrieving metadata, thus enabling the retrieval of metadata based on that existing interface.

[0064] In one embodiment, the monitored object may include at least one of the following: database, middleware, host, network, storage, log, cloud service, website, application server, message middleware, and reverse proxy server.

[0065] In one embodiment, the chart display template may include panels for drawing at least one type of chart. That is, the chart display template may be a combined template obtained by customizing and combining panels of multiple panel types. It should be noted that the term "chart" in the chart display template is used to refer to templates that display data graphically and / or in tables, and is not limited to a specific type of chart such as a graph chart.

[0066] In one embodiment, the panel type of the panel in the chart display template may include at least one of the following: form panel type, table panel type, and chart panel type.

[0067] In one embodiment, the metadata of the chart display template has an identification code. This identification code uniquely identifies the metadata of the chart display template. The terminal can use the identification code to obtain the metadata of the chart display template set for the monitored object.

[0068] In one embodiment, Table 1 shows the metadata table for the chart display template. The terminal can send an identifier code of the chart display template's metadata to the server. The server retrieves the metadata table of the chart display template from the database based on the identifier code and sends the metadata table back to the terminal. The terminal can then extract the metadata of the chart display template from the metadata table. In another embodiment, the server can, based on the type and version of the monitoring engine's metric exporter, call the corresponding metric exporter to obtain the monitoring details information corresponding to the monitoring metrics.

[0069]

[0070]

[0071] Table 1

[0072] The metadata table includes the metadata identifier (ID), name (NAME), indicator exporter type (PROM_EXPORTER_TYPE), indicator exporter version (PROM_EXPORTER_VER), metadata (METADATA), and description (DESCRIPTION). The identifier field is of type Long integer. The name field is of type VARCHAR(50) character. The indicator exporter type field is of type Integer. The indicator exporter version field is of type VARCHAR(20) character. The metadata field is of type TEXT long text. The description field is of type VARCHAR(255) character. It should be noted that VARCHAR is a character data type, and 50, 20, and 255 represent the maximum character length for the name, indicator exporter version, and description, respectively.

[0073] It's important to note that JSON (JavaScript Object Notation) is a lightweight data-interchange format. Essentially, metadata is stored in a metadata table in JSON format.

[0074] S204: Based on the query expression corresponding to the monitoring metric in the metadata, query the monitoring details information corresponding to each monitoring metric.

[0075] Among them, monitoring metrics refer to indicators that reflect the status of the monitored object. Query expressions are expressions used to retrieve detailed monitoring information.

[0076] Specifically, the terminal queries the monitoring details information corresponding to each monitoring indicator through the corresponding indicator query interface based on the query expression corresponding to the monitoring indicator in the metadata.

[0077] In one embodiment, monitoring metrics may include metrics exposed by the monitored object through a metric exporter. For example, when the monitored object is a host, the monitoring metrics may include at least one of CPU utilization, memory usage, and disk usage. It should be noted that a metric exporter is a component that collects monitoring data and provides the data externally according to the monitoring specifications of an open-source monitoring engine, such as the exporter in Prometheus (a monitoring engine).

[0078] In one embodiment, the query expression may include at least one aggregation function, such as SUM (summation function), AVG (average value function), etc. The terminal can obtain the monitoring details corresponding to each monitoring indicator aggregated according to the aggregation function through the corresponding indicator query interface.

[0079] S206. According to the panel type corresponding to each monitoring indicator recorded in the metadata, fill the monitoring details information corresponding to each monitoring indicator into the corresponding panel in the chart display template for rendering and display.

[0080] Panel type refers to the type of panel used to draw charts. Panels are used to draw charts corresponding to each monitoring indicator to display the monitoring details for each indicator.

[0081] Specifically, the terminal obtains the panel type corresponding to each monitoring indicator by traversing the metadata, dynamically loads the panel corresponding to the panel type according to the panel type, and fills the monitoring details information corresponding to each monitoring indicator into the corresponding panel in the chart display template for rendering and display.

[0082] In one embodiment, the panel type may include at least one of the following panel types: Form, Table, Graph, Singlestat, Heatmap, etc.

[0083] The Graph type can be used to draw at least one of line charts and bar charts. It's worth noting that Graph type panels can be used to display many metrics and series. Singlestat type panels can be used to display a single data point.

[0084] In one embodiment, the panel type can be a form panel type or a table panel type. The metadata of the chart display template may include at least one of the following: the identifier code, title, panel type, icon, field list, layout grid position, query target list, and table pagination size of the form panel or table panel corresponding to the monitoring metric.

[0085] In one embodiment, the panel type can be a chart panel type. The metadata of the chart display template may include at least one of the following: the identifier code of the chart panel corresponding to the monitoring metric, title, panel type, help description, chart type, query target list, horizontal axis configuration, vertical axis configuration, and vertical axis format.

[0086] In the above-described monitoring information display method, metadata of a chart display template set for the monitored object is obtained; the chart display template is set based on the monitoring details requirements of the monitored object. According to the query expression corresponding to the monitoring metric in the metadata, the monitoring details information corresponding to each monitoring metric is queried; the monitoring details information of each monitored object is queried through the metadata. According to the panel type corresponding to each monitoring metric recorded in the metadata, the monitoring details information corresponding to each monitoring metric is filled into the corresponding panel in the chart display template for rendering and display. That is, by setting a chart display template and combining it with the metadata of the chart display template, the chart display of monitoring details can be conveniently realized. If a new monitored object needs to be added, only a new chart display template needs to be set accordingly; there is no need to develop a front-end page for the monitored object, which reduces the cost of front-end development. Moreover, for different monitoring details requirements, only the metadata of the chart display template needs to be modified; there is no need to adjust the front-end page and back-end interface, further reducing development costs.

[0087] In one embodiment, obtaining the metadata of the chart display template set for the monitored object includes: upon receiving an access request for monitoring details of the monitored object, calling the metadata interface to obtain the metadata of the chart display template set for the monitored object from the database.

[0088] The metadata interface refers to the interface used to retrieve the metadata of the chart display template. Specifically, when the terminal receives an access request for monitoring details of a monitored object, it responds to the access request by calling the metadata interface to retrieve the metadata of the chart display template set for the monitored object from the server's database.

[0089] In one embodiment, the metadata interface can return the metadata of the chart display template based on the identifier code of the metadata of the chart display template, so as to serve as the basis for the server to parse the metadata and for the terminal to draw the chart display template.

[0090] Specifically, the server can identify the metadata of the chart display template obtained by the terminal through the metadata interface, and parse the metadata to query monitoring details. The terminal can draw the chart display template based on the received metadata. For example, in the function `public String findDashMetadataByDashId(Long dashId)`, `findDashMetadataByDashId` is the metadata interface, and the server returns the metadata of the chart display template in JSON format based on the identifier (dashId) of the metadata.

[0091] In this embodiment, when the terminal receives an access request for monitoring details of a monitored object, it can call the metadata interface to retrieve the metadata of the chart display template set for the monitored object from the database. Simultaneously, the server can query the monitoring details based on this metadata, enabling faster display of the monitoring details. Furthermore, the terminal can draw charts to display the monitoring information based on the acquired metadata, eliminating the need for developers to create front-end pages for the monitored object, thus reducing front-end development costs.

[0092] In one embodiment, the metadata includes the panel type corresponding to each monitoring metric. Querying the monitoring details for each monitoring metric based on the query expression in the metadata includes: determining the metric query interface corresponding to each monitoring metric based on the panel type in the metadata; and calling the metric query interface corresponding to each monitoring metric based on the query expression in the metadata to query the monitoring details for each monitoring metric.

[0093] The indicator query interface refers to the interface used to query the monitoring details information corresponding to the monitoring indicators.

[0094] In one embodiment, there is a one-to-one correspondence between panel types and indicator query interfaces. The terminal can determine the panel type corresponding to the monitoring indicator in the metadata and directly determine the indicator query interface corresponding to that monitoring indicator.

[0095] Specifically, the terminal can determine the corresponding query interface for each monitoring indicator based on the panel type in the metadata, and then communicate with the server by calling the corresponding query interface. The query expression in the metadata is parsed to obtain the parsed query expression. It's important to understand that the query expression in the metadata cannot be directly used for querying. The server can then use the parsed query expression to retrieve the monitoring details corresponding to the monitoring indicator. The server then sends the retrieved monitoring details to the terminal through the corresponding query interface.

[0096] In one embodiment, the server can parse the query expression in the metadata and directly query the monitoring details information corresponding to the monitoring metric based on the parsed query expression.

[0097] In one embodiment, the server can send the monitoring details corresponding to the queried monitoring metric to the corresponding metric query interface. The terminal can then read the monitoring details corresponding to the monitoring metric from the metric query interface.

[0098] In this embodiment, the panel type corresponds to the indicator query interface. The terminal determines the indicator query interface corresponding to each monitoring indicator based on the panel type in the metadata. The terminal queries monitoring details using the indicator query interface. It only needs to encapsulate the indicator query interface for the panel type, without needing to encapsulate an interface for the monitored object itself to call that interface to obtain monitoring details. Furthermore, if the monitoring details requirements for a monitored object change, only the query expression in the metadata needs to be adjusted. Therefore, when adding new monitored objects, there is no need to encapsulate interfaces for the new monitored objects, reducing backend development costs.

[0099] In one embodiment, the method further includes: after the monitoring details information queried through the same metric query interface is aggregated and encapsulated, receiving the encapsulated monitoring details information returned by the metric query interface.

[0100] Specifically, the server can aggregate and encapsulate the monitoring details information corresponding to the queried monitoring metrics, and then send the encapsulated monitoring details information to the corresponding metric query interface. The terminal calls the metric query interface to receive the returned encapsulated monitoring details information.

[0101] In one embodiment, the metadata of the chart display template may include the identifiers of panels under each panel type. It is understood that the chart display template includes panels of different panel types, and each panel has an identifier. The panel identifier is used to uniquely identify the panel.

[0102] In one embodiment, the server can encapsulate the metadata identifier of the chart display template corresponding to the monitoring metric, the identifier of the panel corresponding to the monitoring metric, and the monitoring details data. For example, the server encapsulates the metadata identifier, the panel identifier, and the monitoring details information into a Map format. It can be understood that the Map format is a data format that facilitates format conversion by the terminal for binding.

[0103] In one embodiment, the terminal can parse the encapsulated monitoring details information to obtain the metadata identifier and the panel identifier. The terminal can determine the chart display template corresponding to the monitoring details information based on the metadata identifier, and determine the panel corresponding to the monitoring details information based on the panel identifier.

[0104] In this embodiment, the server can aggregate and encapsulate the monitoring details information corresponding to the queried monitoring metrics, and then send the encapsulated monitoring details information to the metric query interface corresponding to the monitoring metric. The terminal calls the metric query interface to receive the returned encapsulated monitoring details information, eliminating the need for multiple queries for the monitoring metrics and enabling rapid acquisition of the monitoring details information corresponding to the monitoring metrics.

[0105] In one embodiment, determining the indicator query interface corresponding to each monitoring indicator based on the panel type in the metadata includes: if the panel type corresponding to the monitoring indicator is a form panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface for querying form data; if the panel type corresponding to the monitoring indicator is a chart panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface for querying chart data; if the panel type corresponding to the monitoring indicator is a table panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface for querying table data.

[0106] In this context, form data refers to data filled into forms, chart data refers to data filled into charts, and tabular data refers to data filled into charts. It can be understood that the monitoring details for each monitoring metric can be categorized into form data, chart data, and tabular data based on the panel type corresponding to that metric.

[0107] Specifically, the terminal parses the metadata of the chart display template to obtain the monitoring metrics corresponding to the monitored objects, and reads the panel type corresponding to each monitoring metric recorded in the metadata. If the panel type corresponding to the monitoring metric is a form panel type, the corresponding metric query interface is determined to be the metric query interface for querying form data, and the interface is called to query form data. If the panel type corresponding to the monitoring metric is a chart panel type, the corresponding metric query interface is determined to be the metric query interface for querying chart data, and the interface is called to query chart data. If the panel type corresponding to the monitoring metric is a table panel type, the corresponding metric query interface is determined to be the metric query interface for querying table data, and the interface is called to query table data.

[0108] In this embodiment, the terminal can determine the indicator query interface corresponding to each monitoring indicator based on the panel type in the metadata, and query the data that needs to be filled for each panel type in parallel for each indicator query interface, which can quickly fill different types of panels.

[0109] In one embodiment, when a terminal queries form data, the interface used to query the form data metrics is getFormData, and the server can access it through public Map.<String,Object> getFormData(Long dashId,Integer panelId,String promUrl,Map<String,String> The `valMap` function retrieves the monitoring details corresponding to the monitoring metrics and aggregates and converts the retrieved monitoring details into a Map format.<String,String> (valMap). It's important to note that the server retrieves time-series monitoring details. To facilitate terminal binding of these details, the monitoring details are encapsulated in a Map format (i.e., the retrieved form data). This means that when the terminal queries the table data, the corresponding metric query interface is getTableData, accessed through the public List... <Map<String,Object> >getTableData(Long dashId,Integer panelId,String promUrl,Map<String,String> The `valMap` function retrieves table data. When querying chart data in the terminal, the corresponding indicator query interface is `getGraphData`, which can be accessed via `public Map`. <String,List <object>>getGraphData(Long dashId,Integer panelId,String promUrl,Long start,Long end,Map<String,String> Use valMap to retrieve chart data.

[0110] In one embodiment, querying the monitoring details information corresponding to each monitoring metric based on the query expression corresponding to the monitoring metric in the metadata includes: determining the monitoring metric expression corresponding to the monitoring metric in the metadata; and querying the monitoring details information corresponding to each monitoring metric based on the query expression and query type in each monitoring metric expression.

[0111] Here, the monitoring metric expression refers to the expression corresponding to the monitoring metric. The monitoring metric expression includes the query expression and the query type.

[0112] Specifically, the terminal can determine the monitoring metric expression corresponding to the monitoring metric in the metadata and send the monitoring metric expression to the server. The server can parse the query expression and query type in the monitoring metric expression, query the monitoring details information corresponding to the monitoring metric according to the parsed query expression and query type, and send the monitoring details information to the terminal through the metric query interface corresponding to the monitoring metric.

[0113] In one embodiment, the query type may include at least one of query value and query range. The server can query the query value or query range of monitoring details corresponding to a monitoring metric. For example, when the monitored object is a host, for the monitoring metric of CPU utilization, the server can query the current CPU utilization or the CPU utilization at fixed time points over seven days.

[0114] In one embodiment, the monitoring metric expression includes a legend name. The terminal can populate the legend name from the monitoring metric expression into the panel corresponding to the monitoring metric.

[0115] In this embodiment, the server can query the monitoring details information corresponding to each monitoring indicator by parsing the monitoring indicator expression in the metadata. The monitoring details information can be queried based on the metadata. When the requirements for the monitoring details information corresponding to the monitoring indicators change, only the monitoring indicator expression needs to be modified accordingly, which can reduce development costs.

[0116] In one embodiment, such as Figure 3 The diagram illustrates a sequence diagram of a process for obtaining monitoring details. Specifically, it includes the following steps:

[0117] 1) The terminal obtains metadata of the dashboard template from a metadata service class (DashMetaService) of the dashboard template based on a metadata interface provided by a panel resource class (DashPannelResource) of the dashboard template.

[0118] The panel resource class of the dashboard template can include at least one REST interface for obtaining forms, tables, chart data, etc. It should be noted that REST is resource-oriented and emphasizes describing the things and nouns of an application. REST is to transfer the state of resources from the server side to the client side (or vice versa) in the most suitable form for the client or server. The metadata service class of the dashboard template is used to obtain metadata of the dashboard template.

[0119] In one embodiment, the terminal calls the metadata interface provided by the panel resource class of the dashboard template, and sends a request to a core service class (DashPanelSevice) of the dashboard template based on the metadata interface provided by the panel resource class. The core service class calls the metadata service class to obtain metadata of the dashboard template according to the request, and returns the metadata of the dashboard template to the metadata interface.

[0120] 2) The terminal calls an index query interface corresponding to the panel type exposed by the panel resource class according to the panel type in the metadata, and requests to query monitoring detail information corresponding to the monitoring index in the metadata.

[0121] For example, if the panel type is a table panel type, the getTableData interface corresponding to the table panel type is called to query the monitoring detail information corresponding to the monitoring index.

[0122] 3) The panel resource class sends a query request to the core service class (DashPanelSevice) of the dashboard template.

[0123] The core service class of the dashboard template can include at least one Service interface for obtaining forms, tables, chart data, etc. Reactive programming can be used to query, convert, and aggregate index values in parallel. It should be noted that the backend development usually adopts a layered architecture, which is divided into: presentation layer, application layer, domain layer and infrastructure layer. The Service interface is an external interface provided by the application layer to operate the upper layer. Reactive programming is a declarative programming specification for data streams and propagating changes. Reactive programming is an asynchronous and event-driven non-blocking program.

[0124] 4) The core service class requests a format analysis tool (JsonPath) to parse the JSON format metadata corresponding to the monitoring index.

[0125] wherein, JsonPath is a method for extracting part of the content of a given JSON document. The JSON parsing provided by JsonPath is very powerful, it provides a regular expression-like syntax that basically covers all the JSON content you want to get.

[0126] 5) The format parsing tool returns the parsed metadata to the core service class.

[0127] 6) The core service class initiates a query request to the client tool (PromWebClient) of the monitoring engine according to the monitoring metric expression in the parsed metadata.

[0128] It can be understood that the monitoring metric expression can include a query expression and a query type, if the query type is query value, a query request for value is initiated based on the query expression. If the query type is query range (Range), a query request for range is initiated based on the query expression.

[0129] wherein, the client tool of the monitoring engine refers to the encapsulation of two major query application program interfaces (APIs) of the monitoring engine (Prometheus) by the client tool (WebClient), which are query value (query) and query range (query_range). It should be noted that WebClient is a non-blocking client tool for making hypertext transfer protocol requests based on reactive programming, and WebClient provides methods corresponding to standard hypertext transfer protocol request methods, which can be used to initiate corresponding requests.7) The client tool of the monitoring engine calls the interface provided by the internal response class (WebClient.ResponseSpec) of the client tool to query the monitoring detail information corresponding to the monitoring metric from the internal response class of the client tool.

[0130] wherein, the internal response class can include at least one of the interfaces for returning Mono objects (bodyToMono) and Flux objects (bodyToFlux). It should be noted that a Mono object represents a result containing zero or one element. A Flux object represents a reactive sequence containing zero or more elements.

[0131] 8) The client tool of the monitoring engine returns the queried monitoring detail information to the core service class.

[0132] 9) The core service class encapsulates the queried monitoring detail information and returns the encapsulated monitoring detail information to the panel resource class.

[0133] 10) The panel resource class returns the encapsulated monitoring details information to the terminal through the index query interface corresponding to the panel type.

[0134] In one embodiment, the metadata of the chart display template is obtained by a chart display template setting step; the chart display template setting step comprises: creating an initial chart display template for a monitoring object; in response to a panel adding operation, adding an initial panel under at least one panel type corresponding to a monitoring index in the initial chart display template; the monitoring index matches the monitoring details requirement of the monitoring object; in response to a panel editing operation, editing the initial panel to obtain an edited panel; generating a chart display template corresponding to the monitoring object according to the query expression configured for the monitoring index and the panel, and storing the metadata of the chart display template into a database.

[0135] The panel adding operation refers to an operation of adding an initial panel for a monitoring index in an initial chart display template. It can be understood that the initial chart display template refers to a chart display template without a panel adding operation. The panel editing operation refers to an operation of editing an initial panel corresponding to a monitoring index. It can be understood that the initial panel refers to a panel without a panel editing operation.

[0136] Specifically, a user creates an initial chart display template for a monitoring object on a terminal, and the terminal can add an initial panel added by the user for a monitoring index in the initial chart display template in response to a panel adding operation. It can be understood that the monitoring index meets the monitoring details requirement of the monitoring object. The user performs a panel editing operation on the terminal for a monitoring details information display mode corresponding to a monitoring index, and the terminal can edit the initial panel in response to the panel editing operation to obtain an edited panel. The user configures a query expression for a monitoring index on the terminal, and the terminal generates a chart display template corresponding to the monitoring object according to the query expression and the panel, and sends the metadata of the chart display template to a server, which stores the received metadata of the chart display template into a database.

[0137] In one embodiment, the user can perform a panel adding operation in an initial chart display template by a dragging manner. The terminal adds an initial panel dragged into the initial chart display template by the user for a monitoring index in the initial chart display template in response to the panel adding operation. It can be understood that the panel added by the user for the monitoring index by the dragging manner meets the monitoring details requirement of the monitoring object.

[0138] In one embodiment, the terminal has a panel editor. The user can perform a panel editing operation on the panel editor of the terminal. The terminal edits the initial panel in response to the panel editing operation to obtain an edited panel.

[0139] The panel editor is used to perform a panel editing operation. It can be understood that the user can configure a panel of different panel types using the panel editor.

[0140] In one embodiment, when the panel type is a form panel type, the user can configure at least one of a panel name, a panel width, a panel height, and the like, and customize data to be displayed through the panel editor. It can be understood that customizing data to be displayed refers to configuring at least one of a data name and a unit to be displayed in the panel editor.

[0141] In one embodiment, when the panel type is a table panel type, the user can configure at least one of a panel name, a panel width, a panel height, and the like, and customize table column data to be displayed through the panel editor. It can be understood that customizing table column data to be displayed refers to configuring at least one of a name, a unit, and a column width of table column data to be displayed in the panel editor.

[0142] In one embodiment, when the panel type is a chart panel type, the user can configure a display form of data to be displayed through the panel editor. The configuration of data to be displayed can include at least one of a panel style, a number of chart vertical axes, and a unit of chart vertical axes. It can be understood that the user can configure a line chart or a column chart for the panel style, and configure a single vertical axis or a double vertical axis for the number of chart vertical axes.

[0143] In one embodiment, the terminal has a query editor. The user can configure a monitoring index expression for a monitoring index in the query editor of the terminal.

[0144] The query editor is mainly configured for monitoring indexes of monitoring objects. It can be understood that different monitoring objects correspond to different monitoring indexes, and thus have different monitoring index expressions.

[0145] In one embodiment, the user can configure at least one of a query expression, a legend name, and a query type in the monitoring index expression in the query editor of the terminal. For example, the user configures a legend name in a chart panel through the query editor, and sets a query type for a monitoring index. If the query type is set to true, a query value is queried, and if the query type is set to false, a query range is queried.

[0146] In one embodiment, as shown in FIG. 1, a flowchart of a process of creating a chart display template is shown. Figure 4

[0147] S402, a chart display template is created.

[0148] The user creates an initial chart display template in the terminal.

[0149] ​S404, Add panel.

[0150] Users can drag and drop panels of the corresponding panel type into the initial chart display template according to the monitoring details requirements of the monitored objects, so as to add panels to the initial chart display template.

[0151] S406, Editing Panel.

[0152] Users can edit panels in the panel editor, including panel names, panel sizes (setting their width and height), and other configurations for each panel type.

[0153] S408, Edit the expression for the monitoring indicator.

[0154] Users configure monitoring indicator expressions for monitoring metrics in the query editor, editing the query expression, legend name, and query type (set to true for query value, false for query range).

[0155] S410, should we continue adding?

[0156] If the user needs to add more panels, return to S404 and continue the above steps until the user no longer needs to add more panels.

[0157] S412, Save the chart display template.

[0158] If the user does not need to add any more panels, they can submit a chart display template in the terminal. In response, the terminal sends the template's metadata to the server. The server then stores the received metadata in its database.

[0159] In one embodiment, users can initialize data on the terminal to create built-in chart display templates based on the monitoring needs of the monitored object. It is understood that developers can directly set the relevant data for the chart display templates to generate them.

[0160] In this embodiment, users can freely combine and customize chart display templates by dragging and dropping panels and by editing in the panel editor and query editor. This eliminates the need for developers to create chart display templates, effectively reducing development costs.

[0161] In one embodiment, such as Figure 5 The diagram shown illustrates the process of drawing the control panel. The terminal can respond to the user's action of viewing monitoring information and execute the following steps:

[0162] S502, retrieve metadata.

[0163] Specifically, the terminal retrieves the metadata of the chart display template set for the monitored object from the server's database.

[0164] S504, Drawing Panel.

[0165] Specifically, the terminal iterates through the monitoring metrics recorded in the metadata to draw charts and display the panels under the panel types corresponding to each monitoring metric in the template.

[0166] S506, determine panel type.

[0167] It is understandable that the terminal determines the panel type corresponding to the currently traversed monitoring indicator based on the panel type corresponding to each monitoring indicator recorded in the metadata.

[0168] If the panel type corresponding to the monitoring indicator is a form panel type, then proceed to step S508; if the panel type corresponding to the monitoring indicator is a chart panel type, then proceed to step S510; if the panel type corresponding to the monitoring indicator is a table panel type, then proceed to step S512.

[0169] S508, draw a form panel.

[0170] If the panel type corresponding to the monitoring metric is a form panel, then the form panel will be drawn. This means that when drawing the form panel, the monitoring details information corresponding to the monitoring metric can be filled in, i.e., the corresponding queried form data can be filled in.

[0171] S510, draw chart panel.

[0172] If the panel type corresponding to the monitoring metric is a chart panel type, then draw the chart panel and fill in the monitoring details information corresponding to the monitoring metric.

[0173] S512, Draw the table panel.

[0174] If the panel type corresponding to the monitoring metric is a table panel, then the table panel is drawn and the monitoring details information corresponding to the monitoring metric is filled in.

[0175] S514 checks if the traversal has ended. If yes, rendering is complete; otherwise, continue executing S504 until all monitoring metrics recorded in the metadata have been traversed. It should be understood that although... Figure 2 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2 At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.

[0176] In one embodiment, a monitoring information processing method is provided, which can be... Figure 1 The method, executed by the server, includes: receiving a monitoring details query request initiated based on metadata of a chart display template; the chart display template is set based on the monitoring details requirements of the monitored object; the monitoring details query request carries a query expression corresponding to the monitoring metric in the metadata; querying the monitoring details information corresponding to each monitoring metric according to the query expression; returning the monitoring details information; the returned monitoring details information is used to instruct the monitoring details information corresponding to each monitoring metric to be filled into the corresponding panel in the chart display template according to the panel type corresponding to each monitoring metric recorded in the metadata for rendering and display.

[0177] Specifically, the terminal can obtain the metadata of the chart display template set for the monitored object, and based on the query expression corresponding to the monitoring metric in the metadata, initiate a monitoring details query request for each monitoring metric. The server can receive the monitoring details query request, and according to the query expression in the monitoring details query request, query the monitoring details information corresponding to each monitoring metric, and return the queried monitoring details information to the terminal.

[0178] In one embodiment, the monitoring details query request includes a monitoring metric expression. The server can parse the monitoring metric expression in the monitoring details query request to obtain the query expression and query type, and then query the monitoring details information corresponding to each monitoring metric according to the corresponding query expression and query type.

[0179] In one embodiment, the metadata of the chart display template includes the panel type corresponding to each monitoring indicator; receiving a monitoring details query request initiated based on the metadata of the chart display template includes: receiving a monitoring details query request for a monitoring indicator initiated based on the metadata through the indicator query interface of the monitoring indicator determined by the panel type; returning monitoring details information includes: aggregating and encapsulating the monitoring details information queried through the same indicator query interface to obtain encapsulated monitoring details information; and returning the encapsulated monitoring details information of the corresponding monitoring indicator through each indicator query interface.

[0180] Specifically, the terminal can initiate a monitoring details query request for a monitoring indicator based on metadata, determine the indicator query interface according to the panel type, call each indicator query interface, and send the monitoring details query request to the server. The server can receive the monitoring details query request through the corresponding indicator query interface. The server can aggregate and encapsulate the monitoring details information queried through the same indicator query interface to obtain the encapsulated monitoring details information, and return the encapsulated monitoring details information of the corresponding monitoring indicator to the terminal through each indicator query interface.

[0181] The aforementioned monitoring information processing method receives a monitoring details query request initiated based on the metadata of the chart display template. According to the query expression, it retrieves the monitoring details information corresponding to each monitoring metric and returns the monitoring details information. The returned monitoring details information is used to instruct the corresponding panel in the chart display template to populate the monitoring details information corresponding to each monitoring metric according to the panel type recorded in the metadata, for rendering and display. This method can conveniently process monitoring information by combining the metadata of the chart display template. By querying monitoring details based on metadata, different interfaces no longer need to be encapsulated for different monitoring details requirements; only the metadata needs to be modified adaptively, greatly reducing development costs.

[0182] In one embodiment, such as Figure 6 As shown, a monitoring information display device 600 is provided, including: a metadata acquisition module 602, a monitoring information query module 604, and a monitoring information display module 606, wherein:

[0183] The metadata acquisition module 602 is used to acquire the metadata of the chart display template set for the monitored object; the chart display template is set based on the monitoring details requirements of the monitored object;

[0184] The monitoring information query module 604 is used to query the monitoring details information corresponding to each monitoring indicator based on the query expression in the metadata corresponding to the monitoring indicator;

[0185] The monitoring information display module 606 is used to fill the monitoring details information corresponding to each monitoring indicator into the corresponding panel in the chart display template according to the panel type recorded in the metadata, so as to render and display it.

[0186] In one embodiment, the metadata acquisition module 602 is further configured to, upon receiving an access request for monitoring details of a monitored object, call the metadata interface to retrieve the metadata of the chart display template set for the monitored object from the database.

[0187] In one embodiment, the metadata includes the panel type corresponding to each monitoring indicator; the monitoring information query module 604 is further configured to determine the indicator query interface corresponding to the monitoring indicator based on the panel type corresponding to each monitoring indicator in the metadata; and call the indicator query interface corresponding to the monitoring indicator based on the query expression corresponding to the monitoring indicator in the metadata to query the monitoring details information corresponding to each monitoring indicator.

[0188] In one embodiment, the monitoring information display module 606 is further configured to receive the encapsulated monitoring details information returned by the indicator query interface after the monitoring details information queried through the same indicator query interface has been aggregated and encapsulated.

[0189] In one embodiment, the monitoring information query module 604 is further configured to: if the panel type corresponding to the monitoring indicator is a form panel type, determine that the indicator query interface corresponding to the monitoring indicator is an indicator query interface for querying form data; if the panel type corresponding to the monitoring indicator is a chart panel type, determine that the indicator query interface corresponding to the monitoring indicator is an indicator query interface for querying chart data; and if the panel type corresponding to the monitoring indicator is a table panel type, determine that the indicator query interface corresponding to the monitoring indicator is an indicator query interface for querying table data.

[0190] In one embodiment, the monitoring information query module 604 is further configured to determine the monitoring indicator expression corresponding to the monitoring indicator in the metadata; and query the monitoring details information corresponding to each monitoring indicator according to the query expression and query type in each monitoring indicator expression.

[0191] In one embodiment, the metadata of the chart display template is obtained from the chart display template setting step; the metadata acquisition module 602 is also used to create an initial chart display template for the monitored object; in response to the panel addition operation, an initial panel under at least one panel type corresponding to the monitoring metric is added to the initial chart display template; the monitoring metric matches the monitoring details requirements of the monitored object; in response to the panel editing operation, the initial panel is edited to obtain the edited panel; based on the query expression configured for the monitoring metric and the panel, a chart display template corresponding to the monitored object is generated, and the metadata of the chart display template is stored in the database.

[0192] In one embodiment, such as Figure 7 As shown, a monitoring information processing device 700 is provided, including: a request receiving module 702, a monitoring information query module 704, and a monitoring information processing module 706, wherein:

[0193] The request receiving module 702 is used to receive monitoring detail query requests initiated based on the metadata of the chart display template; the chart display template is set based on the monitoring detail requirements of the monitored object; the monitoring detail query request carries the query expression corresponding to the monitoring metric in the metadata;

[0194] The monitoring information query module 704 is used to query the monitoring details information corresponding to each monitoring indicator based on the query expression.

[0195] The monitoring information processing module 706 is used to return monitoring details information. The returned monitoring details information is used to instruct the panel in the chart display template to fill the monitoring details information corresponding to each monitoring indicator into the panel according to the panel type recorded in the metadata, so as to render and display it.

[0196] In one embodiment, the metadata of the chart display template includes the panel type corresponding to each monitoring metric;

[0197] The request receiving module 702 is also used to receive a monitoring details query request for the monitoring indicator based on metadata through the indicator query interface of the monitoring indicator determined by the panel type;

[0198] The monitoring information processing module 706 is also used to aggregate and encapsulate the monitoring details information queried through the same indicator query interface to obtain the encapsulated monitoring details information; and to return the encapsulated monitoring details information of the corresponding monitoring indicator through each indicator query interface.

[0199] In one embodiment, a computer device is provided, which may be a terminal or a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, memory, and a communication interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The communication interface is used for wired or wireless communication with external computer devices; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a monitoring information display method or a monitoring information processing method.

[0200] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0201] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the methods in the above embodiments.

[0202] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the methods in the above embodiments.

[0203] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0204] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0205] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.< / object>

Claims

1. A method for displaying monitoring information, characterized in that, The method includes: Obtain the metadata of the chart display template set for the monitored object; the chart display template is set based on the monitoring details requirements of the monitored object; the metadata includes at least the monitoring indicator expression corresponding to each monitoring indicator and the panel type of the panel corresponding to each monitoring indicator, the panel being used to draw the chart corresponding to each monitoring indicator; Determine the monitoring indicator expression corresponding to the monitoring indicator in the metadata; query the monitoring details information corresponding to each monitoring indicator according to the query expression and query type in each monitoring indicator expression; the query type includes at least one of query value and query range; According to the panel type corresponding to each monitoring indicator recorded in the metadata, the monitoring details information corresponding to each monitoring indicator is filled into the corresponding panel in the chart display template for rendering and display.

2. The method according to claim 1, characterized in that, The metadata obtained for the chart display template set for the monitored object includes: Upon receiving an access request for monitoring details of the monitored object, the metadata interface is invoked to retrieve the metadata of the chart display template set for the monitored object from the database.

3. The method according to claim 1, characterized in that, The metadata includes the panel type corresponding to each of the monitoring metrics; The step of querying the monitoring details information corresponding to each monitoring indicator based on the query expression and query type in each monitoring indicator expression includes: Based on the panel type corresponding to each monitoring indicator in the metadata, determine the indicator query interface corresponding to the monitoring indicator; Based on the query expression and query type in each of the monitoring indicator expressions, the corresponding indicator query interface is called to query the monitoring details information corresponding to each of the monitoring indicators.

4. The method according to claim 3, characterized in that, The method further includes: After the monitoring details obtained through the same indicator query interface are aggregated and encapsulated, the encapsulated monitoring details are received back based on the indicator query interface.

5. The method according to claim 3, characterized in that, The step of determining the indicator query interface corresponding to each monitoring indicator based on the panel type in the metadata includes: If the panel type corresponding to the monitoring indicator is a form panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface used to query form data. If the panel type corresponding to the monitoring indicator is a chart panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface used to query chart data. If the panel type corresponding to the monitoring indicator is a table panel type, then the indicator query interface corresponding to the monitoring indicator is determined to be an indicator query interface used to query table data.

6. The method according to any one of claims 1 to 5, characterized in that, The metadata of the chart display template is obtained from the chart display template setting steps; the chart display template setting steps include: Create an initial chart display template for the monitored object; In response to the panel addition operation, an initial panel of at least one panel type corresponding to the monitoring metric is added to the initial chart display template; the monitoring metric matches the monitoring details requirements of the monitored object. The initial panel is edited in response to a panel editing operation to obtain an edited panel; Based on the query expression configured for the monitoring metric and the panel, a chart display template corresponding to the monitoring object is generated, and the metadata of the chart display template is stored in the database.

7. A method for processing monitoring information, characterized in that, The method includes: The system receives a monitoring details query request initiated based on metadata of a chart display template. The chart display template is set based on the monitoring details requirements of the monitored object. The monitoring details query request carries the monitoring indicator expression corresponding to the monitoring indicator in the metadata. The metadata includes at least the monitoring indicator expression corresponding to each monitoring indicator and the panel type of the panel corresponding to each monitoring indicator. The panel is used to draw the chart corresponding to each monitoring indicator. Based on the query expression and query type in each of the monitoring indicator expressions, query the monitoring details information corresponding to each of the monitoring indicators; the query type includes at least one of query value and query range. Return the monitoring details information; the returned monitoring details information is used to instruct that the monitoring details information corresponding to each monitoring indicator recorded in the metadata be filled into the corresponding panel in the chart display template for rendering and display.

8. The method according to claim 7, characterized in that, The metadata of the chart display template includes the panel type corresponding to each monitoring indicator; The process of receiving monitoring details query requests initiated based on metadata from the chart display template includes: The system receives monitoring detail query requests for the monitoring indicators based on the metadata through the indicator query interface of the monitoring indicators determined by the panel type. The returned monitoring details include: The monitoring details obtained through the same metric query interface are aggregated and encapsulated to obtain the encapsulated monitoring details. The query interface for each of the aforementioned metrics returns encapsulated monitoring details for the corresponding monitoring metrics.

9. A monitoring information display device, characterized in that, The device includes: The metadata acquisition module is used to acquire the metadata of the chart display template set for the monitored object; the chart display template is set based on the monitoring details requirements of the monitored object; the metadata includes at least the monitoring indicator expression corresponding to each monitoring indicator and the panel type of the panel corresponding to each monitoring indicator, the panel is used to draw the chart corresponding to each monitoring indicator; The monitoring information query module is used to determine the monitoring indicator expression corresponding to the monitoring indicator in the metadata; and to query the monitoring details information corresponding to each monitoring indicator according to the query expression and query type in each monitoring indicator expression; the query type includes at least one of query value and query range; The monitoring information display module is used to fill the monitoring details information corresponding to each monitoring indicator into the corresponding panel in the chart display template according to the panel type corresponding to each monitoring indicator recorded in the metadata, so as to render and display it.

10. A monitoring information processing device, characterized in that, The device includes: The request receiving module is used to receive monitoring details query requests initiated based on the metadata of the chart display template; the chart display template is set based on the monitoring details requirements of the monitored object; the monitoring details query request carries the monitoring indicator expressions corresponding to the monitoring indicators in the metadata; the metadata includes at least the monitoring indicator expressions corresponding to each monitoring indicator and the panel type of the panel corresponding to each monitoring indicator, and the panel is used to draw the charts corresponding to each monitoring indicator. The monitoring information query module is used to query the monitoring details information corresponding to each monitoring indicator according to the query expression and query type in the expression of each monitoring indicator; the query type includes at least one of query value and query range; The monitoring information processing module is used to return the monitoring details information; the returned monitoring details information is used to instruct the corresponding monitoring details information of each monitoring indicator to be filled into the corresponding panel in the chart display template according to the panel type of each monitoring indicator recorded in the metadata, so as to be rendered and displayed.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Monitoring chart generation method and device, computer equipment and storage medium

    CN112749066A