Monitoring method and system and computer equipment
By introducing a monitoring system with first and second services, flexible collection and management of monitoring indicators are achieved, solving the problems of cumbersome configuration of monitoring indicators and waste of storage resources in existing technologies, and improving the flexibility and resource utilization of the monitoring system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-10
AI Technical Summary
The lack of flexibility in the collection and management of monitoring indicators in existing monitoring systems leads to cumbersome configuration of monitoring indicators and waste of storage resources.
By introducing a first service and a second service into the monitoring system, the first service obtains the metrics of the monitored objects and reports them to the second service. The second service filters the monitoring metrics based on the query information and reports the filtered metrics to the first database. The configuration component and the collection and reporting component are used to update and manage the sampling frequency and storage time of the monitoring metrics.
It improves the flexibility of monitoring indicator collection, reduces storage resource consumption, and improves storage resource utilization and query efficiency.
Smart Images

Figure CN121833407A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of computer, and particularly relates to a monitoring method and system and a computer device. BACKGROUND
[0002] At present, the monitoring of equipment is usually to deploy an exporter component on various types of to-be-monitored equipment to collect various types of monitoring indicators in the running process of the equipment; then deploy an agent component to access the exporter component to collect the monitoring indicators, and upload the collected monitoring indicators to a database in the cloud. The cloud system can realize real-time viewing of the running state of the equipment by calling the monitoring indicators in the database; meanwhile, the monitoring indicators called can be analyzed based on preset alarm rules, so as to automatically alarm the abnormal conditions in the running process of the equipment.
[0003] However, the collection and management of monitoring indicators lack flexibility in the current monitoring mode, for example, the configuration of the collection frequency of monitoring indicators is relatively cumbersome, which is not conducive to operation, and the global unified monitoring indicator life cycle configuration cannot match the differentiated needs of different monitoring indicators in business. In addition, the lack of flexibility in the collection of monitoring indicators also causes waste of storage resources to some extent.
[0004] Therefore, how to provide a monitoring system capable of flexibly collecting and managing monitoring indicators has become one of the problems to be solved at present. SUMMARY
[0005] Therefore, it is necessary to provide a monitoring system and a monitoring method in view of the above technical problems.
[0006] The present application provides a monitoring system, comprising: a first service configured to collect monitoring indicators of a monitoring object and report the monitoring indicators to a second service; the second service configured to filter the reported monitoring indicators based on stored query information, and report the filtered monitoring indicators to a first database; wherein the query information comprises a queried monitoring indicator name and a monitoring indicator tag corresponding to the queried monitoring indicator name, or the queried monitoring indicator name.
[0007] Optionally, the second service is further configured to update a sampling frequency of the monitoring indicators of the monitoring object in response to an input of a user, and to issue the updated sampling frequency of the monitoring indicators of the monitoring object to the first service. The first service is further configured to collect the monitoring indicators of the monitoring object based on the updated sampling frequency of the monitoring indicators of the monitoring object.
[0008] Optionally, the first service is configured with a collection and reporting component and a configuration component, The data collection and reporting component is used to collect and report the monitoring indicators of the monitored object based on the data collection strategy of the monitoring indicators of the monitored object configured by the configuration component. The data collection strategy of the monitoring indicators of the monitored object includes the sampling frequency of the monitoring indicators of the monitored object. The configuration component is used to configure the collection strategy of the monitoring indicators of the monitored object, and update the current sampling frequency of the monitoring indicators of the monitored object based on the sampling frequency of the monitoring indicators of the monitored object issued by the second service.
[0009] Optionally, the second service is also used to update the storage time of the monitoring metrics of the monitored object in response to user input, and to clean up the monitoring metrics of the monitored object stored in the first database according to the updated storage time of the monitoring metrics of the monitored object.
[0010] Optionally, the second service is configured with a response component and a reporting component. The response component is used to respond to a query request, provide query results, and store the query information in the query request into a second database; The reporting component is used to upload the monitoring indicator to the first database when the monitoring indicator name of the monitoring indicator reported by the first service matches the monitoring indicator name queried in the query information, or when the monitoring indicator name and the monitoring indicator tag corresponding to the monitoring indicator name reported by the first service both match the monitoring indicator name and the monitoring indicator tag corresponding to the queried monitoring indicator name in the query information.
[0011] Optionally, the first database is a time-series database, and the second database is a Redis database.
[0012] The present invention also provides a monitoring method, comprising: The first service obtains the monitoring metrics of the monitored objects and reports them to the second service; The second service filters the reported monitoring metrics based on the stored query information and reports the filtered monitoring metrics to the first database; wherein, the query information includes: the name of the queried monitoring metric and the monitoring metric tag corresponding to the queried monitoring metric name or the queried monitoring metric name.
[0013] Optionally, the monitoring method further includes: In response to user input, the second service updates the sampling frequency of the monitoring metrics of the monitored object and sends the updated sampling frequency of the monitoring metrics of the monitored object to the first service; The first service collects the monitoring indicators of the monitored object based on the sampling frequency of the updated monitoring object's monitoring indicators.
[0014] Optionally, the monitoring method further includes: In response to user input, the second service updates the storage time of the monitoring metrics of the monitored object and cleans up the monitoring metrics of the monitored object stored in the first database according to the updated storage time of the monitoring metrics of the monitored object.
[0015] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the monitoring method described in any of the preceding claims.
[0016] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the monitoring method described in any of the preceding claims.
[0017] The aforementioned monitoring system includes: a first service for acquiring monitoring metrics of monitored objects and reporting them to a second service; and a second service for filtering the reported monitoring metrics based on stored query information and reporting the filtered monitoring metrics to a first database. The query information includes the name of the queried monitoring metric and a tag key corresponding to that name. Because the second service filters the reported monitoring metrics based on stored query names and corresponding tag keys, it can filter unused monitoring metrics in real time, improving the flexibility of monitoring metric collection. Since it is not necessary to report all collected monitoring metrics to the first database, but only the filtered metrics, it significantly reduces the storage resource consumption of monitoring metrics, thereby improving storage resource utilization, and also improves the query efficiency of monitoring metrics. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating the monitoring method according to an embodiment of the present invention. Detailed Implementation
[0019] 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.
[0020] As mentioned in the background section, existing monitoring methods lack flexibility in collecting and managing monitoring indicators, leading to a waste of storage resources to some extent. Therefore, this invention provides a monitoring system and method. The monitoring system of this invention will be described below with reference to specific embodiments.
[0021] The monitoring system of this invention includes: a first service, used to acquire monitoring metrics of the monitored object and report them to a second service.
[0022] The second service is used to filter the reported monitoring indicators based on the stored query information and report the filtered monitoring indicators to the first database; wherein, the query information includes: the name of the queried monitoring indicator and the tag key corresponding to the queried monitoring indicator name.
[0023] In this embodiment, the monitored objects include hardware, software, and business processes. For example, the monitored object can be a device, a component of that device, or software running on that device. Specifically, the monitored object can be a CT scanner, an MR scanner, an X-ray imaging device, or even the X-ray tube and detector of a CT scanner. The monitoring indicators include: indicator name, indicator value, and monitoring indicator label. The indicator name is a standardized name for a specific monitoring attribute of the monitored object; the indicator value is the specific monitoring data corresponding to the indicator name; and the monitoring indicator label represents the dimension of the monitoring indicator. For example, to monitor the temperature of the X-ray tube of a CT scanner, the indicator name would be: "CT Scanner Temperature," the indicator value would be 58 degrees Celsius, and the monitoring indicator label would be: "Scanning Mode - Plain Scan." In this embodiment, the first service can be deployed in the cloud.
[0024] In this embodiment, the second service can be deployed in the cloud and can be configured with a response component and a reporting component. The response component is used to respond to a query request and store the query information in the query request to a second database. In this embodiment, users can view the monitoring view of the monitored object through the monitoring platform. The monitoring platform can also automatically calculate and judge the monitoring indicators based on preset alarm rules, and trigger an alarm when the indicator meets the alarm threshold. In this embodiment, the monitoring platform sends a query request for the monitoring indicator to the second service. The response component of the second service responds to the query request, returns the query result of the monitoring indicator to be queried in the query information to the monitoring platform, and stores the query information in the query request to the second database. In this embodiment, for a single-dimensional monitoring indicator, the query information may include the monitoring name; for a multi-dimensional monitoring indicator, the query information may include the name of the queried monitoring indicator and the monitoring indicator tag corresponding to the queried monitoring indicator name. In this embodiment, the second database can be Redis.
[0025] When the monitoring metric is a single dimension, the reporting component of the second service is used to upload the monitoring metric to the first database when the monitoring metric name reported by the first service matches the monitoring metric name queried in the query information. In this embodiment, the first database can be a time series database.
[0026] When the monitoring metric is multi-dimensional, the reporting component of the second service is used to upload the monitoring metric to the first database when the monitoring metric name reported by the first service matches the monitoring metric name queried in the query information, and the monitoring metric tag corresponding to the reported monitoring metric name matches the monitoring metric tag corresponding to the monitoring metric name in the query information.
[0027] In this embodiment, the second service filters the monitoring indicators reported by the first service based on the query information, and reports the filtered monitoring indicators to the first database, thereby improving the flexibility of monitoring indicator collection. Since it is not necessary to report all monitoring indicators collected by the first service to the first database, but only the filtered monitoring indicators, the storage resource occupation of the monitoring indicators is greatly reduced, thereby improving the utilization rate of storage resources. In addition, since the first database stores only the monitoring indicators that need to be queried, the query efficiency of the monitoring indicators is also improved.
[0028] In this embodiment, the second service is also used to respond to the user's input, update the sampling frequency of the monitoring index of the monitored object, and send the updated sampling frequency of the monitoring index of the monitored object to the first service; The first service is also used to collect monitoring indicators of the monitored object based on the sampling frequency of the updated monitoring object monitoring indicators.
[0029] In this embodiment, the second service can provide a configuration page for users to configure the sampling frequency of monitoring indicators and send the updated sampling frequency of the monitoring indicators of the monitored objects to the first service.
[0030] The first service is configured with a data collection and reporting component and a configuration component. The configuration component of the first service is used to configure the data collection strategy for the monitoring metrics of the monitored object. In this embodiment, the data collection strategy for the monitoring metrics includes: the sampling frequency of the monitoring metrics, the data collection time, and the data collection priority. The configuration component of the first service can update its data collection strategy based on the sampling frequency of the monitoring metrics issued by the second service. Specifically, it can update the current sampling frequency of the monitoring metrics.
[0031] The first service's data collection and reporting component is used to collect and report the monitoring metrics of the monitored object based on the data collection strategy configured by its configuration component. When the first service's configuration component updates the current sampling frequency of the monitoring metrics based on the sampling frequency of the monitoring metrics issued by the second service, the first service's data collection and reporting component then collects the monitoring metrics based on the updated sampling frequency and reports them to the second service.
[0032] By providing a configuration page in the second service, users can configure the sampling frequency of monitoring indicators according to their actual needs. Compared with the existing technology, which requires users to log in to the device in the background to modify the sampling frequency of monitoring indicators, this improves the flexibility and convenience of configuring the sampling frequency of monitoring indicators. In addition, since the sampling frequency of monitoring indicators for different monitoring objects can be configured according to the user's actual monitoring needs, it also saves storage space to a certain extent for the storage of filtered monitoring indicators.
[0033] In this embodiment, the second service is further configured to respond to user input, update the storage time of the monitoring metrics of the monitored object, and clean up the monitoring metrics of the monitored object stored in the first database according to the updated storage time of the monitoring metrics of the monitored object. Specifically, the second service also provides a page for users to configure the storage time of monitoring metrics, or in other words, the configuration page provided by the second service allows users to configure the sampling frequency of the monitoring metrics of the monitored object and configure the storage time of the monitoring metrics. After the user configures the storage time of the monitoring metrics of the monitored object according to their actual needs, the second service can clean up the monitoring metrics stored in the first database according to the storage time of the monitoring metrics of the monitored object.
[0034] By providing a configuration page in the second service, users can configure the storage time of monitoring metrics according to their actual needs. Compared to existing technologies that use a globally uniform storage time for monitoring metrics, this increases the flexibility of user configuration and avoids the waste of storage resources caused by using a uniform storage time, thus significantly improving the utilization rate of storage resources. Furthermore, since it is not necessary to store all monitoring metrics at a uniform time, the amount of data stored in the first database can be reduced, which can also improve the query efficiency of monitoring metrics to some extent.
[0035] Figure 1 This is a flowchart illustrating the monitoring method according to an embodiment of the present invention, as shown below. Figure 1 As shown, the monitoring method of this invention includes: S101: The first service obtains the monitoring metrics of the monitored object and reports them to the second service.
[0036] S102: The second service filters the reported monitoring indicators based on the stored query information and reports the filtered monitoring indicators to the first database; wherein, the query information includes: the name of the queried monitoring indicator and the monitoring indicator tag corresponding to the queried monitoring indicator name or the name of the queried monitoring indicator.
[0037] In this embodiment, the monitoring method further includes: in response to user input, the second service updates the sampling frequency of the monitoring indicators of the monitored object, and sends the updated sampling frequency of the monitoring indicators of the monitored object to the first service; The first service collects the monitoring indicators of the monitored object based on the sampling frequency of the updated monitoring object's monitoring indicators.
[0038] In this embodiment, the monitoring method further includes: in response to user input, the second service updates the storage time of the monitoring indicators of the monitored object, and cleans up the monitoring indicators of the monitored object stored in the first database according to the updated storage time of the monitoring indicators of the monitored object.
[0039] In this embodiment, the execution of the monitoring method can be found in the description of the monitoring system described above, and will not be repeated here.
[0040] The monitoring system and method of this invention include: a first service for acquiring monitoring indicators of a monitored object and reporting them to a second service; and a second service for filtering the reported monitoring indicators based on stored query information and reporting the filtered monitoring indicators to a first database. The query information includes: the name of the queried monitoring indicator and a tag key corresponding to the queried monitoring indicator name. Because the second service filters the reported monitoring indicators based on the stored queried monitoring indicator names and the tag keys corresponding to the queried monitoring indicator names, unused monitoring indicators can be filtered in real time, improving the flexibility of monitoring indicator collection. Since it is not necessary to report all collected monitoring indicators to the first database, but only the filtered monitoring indicators are uploaded to the first database, the storage resource consumption of monitoring indicators is greatly reduced, thereby improving the utilization rate of storage resources, and the query efficiency of monitoring indicators is also improved.
[0041] 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, and when executed, it 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.
[0042] 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.
[0043] The embodiments described above are merely illustrative of 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.
Claims
1. A monitoring system, characterized by The method comprises: a first service configured to acquire monitoring indicators of a monitoring object and report the monitoring indicators to a second service; the second service configured to filter the reported monitoring indicators based on stored query information, and report the filtered monitoring indicators to a first database; wherein the query information comprises a queried monitoring indicator name and a monitoring indicator tag corresponding to the queried monitoring indicator name, or the queried monitoring indicator name.
2. The monitoring system of claim 1, wherein, The second service is further configured to update a sampling frequency of the monitoring indicators of the monitoring object in response to an input of a user, and to issue the updated sampling frequency of the monitoring indicators of the monitoring object to the first service; The first service is further configured to collect the monitoring indicators of the monitoring object based on the updated sampling frequency of the monitoring indicators of the monitoring object.
3. The monitoring system of claim 2, wherein, The first service is configured with a collection and reporting component and a configuration component, The collection and reporting component is configured to collect and report the monitoring indicators of the monitoring object based on a collection strategy of the monitoring indicators of the monitoring object configured by the configuration component, wherein the collection strategy of the monitoring indicators of the monitoring object comprises a sampling frequency of the monitoring indicators of the monitoring object; The configuration component is configured to configure the collection strategy of the monitoring indicators of the monitoring object, and to update a current sampling frequency of the monitoring indicators of the monitoring object based on the sampling frequency of the monitoring indicators of the monitoring object issued by the second service.
4. The monitoring system of claim 1, wherein, The second service is further configured to update a storage time of the monitoring indicators of the monitoring object in response to an input of a user, and to clean up the monitoring indicators of the monitoring object stored in the first database according to the updated storage time of the monitoring indicators of the monitoring object.
5. The monitoring system according to any one of claims 1 to 4, characterized in that The second service is configured with a response component and a reporting component, The response component is configured to feed back query results in response to a query request, and to store query information in the query request to a second database; The reporting component is configured to upload a monitoring indicator to the first database when a monitoring indicator name of the monitoring indicator reported by the first service matches a queried monitoring indicator name in the query information, or when a monitoring indicator name of the monitoring indicator reported by the first service and a monitoring indicator tag corresponding to the monitoring indicator name both match a queried monitoring indicator name in the query information and a monitoring indicator tag corresponding to the queried monitoring indicator name.
6. The monitoring system of claim 5, wherein, The first database is a time series database, and the second database is a Redis database.
7. A monitoring method characterized by, The method comprises: a first service configured to acquire monitoring indicators of a monitoring object and report the monitoring indicators to a second service; the second service configured to filter the reported monitoring indicators based on stored query information, and report the filtered monitoring indicators to a first database; wherein the query information comprises a queried monitoring indicator name and a monitoring indicator tag corresponding to the queried monitoring indicator name, or the queried monitoring indicator name.
8. The monitoring method according to claim 7, characterized in that, The method further comprises: the second service configured to update a sampling frequency of the monitoring indicators of the monitoring object in response to an input of a user, and to issue the updated sampling frequency of the monitoring indicators of the monitoring object to the first service; the first service configured to collect the monitoring indicators of the monitoring object based on the updated sampling frequency of the monitoring indicators of the monitoring object.
9. The monitoring method according to claim 7, characterized in that, The method further comprises: In response to the input of the user, the second service updates the storage time of the monitoring object monitoring index, and clears the monitoring object monitoring index stored in the first database according to the updated storage time of the monitoring object monitoring index.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the monitoring method according to any one of claims 7 to 9 when executing the computer program.