CN116881081A - Acquisition configuration updating method, device and system of monitoring system and storage medium - Google Patents

Acquisition configuration updating method, device and system of monitoring system and storage medium Download PDF

Info

Publication number
CN116881081A
CN116881081A CN202310854359.4A CN202310854359A CN116881081A CN 116881081 A CN116881081 A CN 116881081A CN 202310854359 A CN202310854359 A CN 202310854359A CN 116881081 A CN116881081 A CN 116881081A
Authority
CN
China
Prior art keywords
monitoring
target
acquisition
monitored object
monitoring data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310854359.4A
Other languages
Chinese (zh)
Inventor
李智
李晓波
周磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lexin Information Service Co ltd
Original Assignee
Shenzhen Lexin Information Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lexin Information Service Co ltd filed Critical Shenzhen Lexin Information Service Co ltd
Priority to CN202310854359.4A priority Critical patent/CN116881081A/en
Publication of CN116881081A publication Critical patent/CN116881081A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Abstract

The embodiment of the application discloses a method, a device, a system and a storage medium for updating acquisition configuration of a monitoring system. The method is applied to a monitoring system, the monitoring system is used for monitoring a target system, the target system comprises a plurality of monitored objects needing to be monitored, and the method comprises the following steps: acquiring monitored object information corresponding to each monitored object from a configuration management database of a target system according to a preset first time interval, wherein the configuration management database maintains latest monitored object information of each monitored object in the current network infrastructure of the target system; converting the information of a plurality of monitored objects into a target acquisition configuration file of the monitoring system according to a preset conversion rule; and generating a target acquisition task by loading a target acquisition configuration file, and completing acquisition configuration updating of the monitoring system. The embodiment can automatically complete the update of the acquisition configuration of the monitoring system, thereby improving the update efficiency of the acquisition configuration of the monitoring system.

Description

Acquisition configuration updating method, device and system of monitoring system and storage medium
Technical Field
The present application relates to the field of system monitoring technologies, and in particular, to a method, an apparatus, a system, and a storage medium for updating an acquisition configuration of a monitoring system.
Background
With the development of the internet, in order to ensure the stability of an enterprise system, more and more applications and services in the enterprise need to be monitored in order to discover and solve potential problems in time, so the demand of the monitoring system is also increasing.
Monitoring systems are typically commercial solutions provided by third party companies, but these solutions tend to be expensive and require payment to obtain up-to-date functionality and technical support. To reduce the cost and increase the customizability of the monitoring system, the monitoring system prometreus was developed, which is an open source project based on Go, created by the soundcluud development team. It uses the back end written in Go language (The Go Programming Language) to support efficient data storage and querying. The Prometheus design concept is simple, reliable and scalable. It provides a rich plug-in ecosystem that can be easily integrated with other tools.
In the prior art, before monitoring a monitored object by using Prometaus, acquisition configuration information is manually written, and acquisition configuration of a monitoring system is manually completed, however, because of changes of deployment of enterprise equipment and the like, the monitored object is updated, at this time, in order to monitor an enterprise better, the acquisition configuration information needs to be updated, and if the acquisition configuration of the monitoring system is updated by manually writing the acquisition configuration information, the efficiency of the acquisition configuration is very low and errors are easy to occur.
Disclosure of Invention
The embodiment of the application provides a method, a device, a system and a storage medium for updating acquisition configuration of a monitoring system, which can automatically complete the updating of the acquisition configuration of the monitoring system, thereby improving the updating efficiency of the acquisition configuration of the monitoring system and reducing the error rate of the acquisition configuration.
In a first aspect, an embodiment of the present application provides a method for updating an acquisition configuration of a monitoring system, where the method is applied to the monitoring system, where the monitoring system is used to monitor a target system, where the target system includes a plurality of monitored objects that need to be monitored, and the method includes:
acquiring monitored object information corresponding to each monitored object from a configuration management database of the target system according to a preset first time interval, wherein the monitored object information comprises a monitored object identifier, an IP address and an acquisition index, and the configuration management database maintains latest monitored object information of each monitored object in the current network infrastructure of the target system;
converting the information of the monitored objects into target acquisition configuration files of the monitoring system according to a preset conversion rule;
the second aspect of the acquisition configuration updating of the monitoring system is completed by loading the target acquisition configuration file to generate a target acquisition task, and the embodiment of the application also provides an acquisition configuration updating device of the monitoring system, wherein the acquisition configuration updating device of the monitoring system is integrated in the monitoring system, the monitoring system is used for monitoring the target system, the target system comprises a plurality of monitored objects needing to be monitored, and the acquisition configuration updating device of the monitoring system comprises:
the receiving and transmitting unit is used for acquiring monitored object information corresponding to each monitored object respectively from a configuration management database of the target system according to a preset first time interval, wherein the monitored object information comprises a monitored object identifier, an IP address and an acquisition index, and the configuration management database maintains the latest monitored object information of each monitored object in the current network infrastructure of the target system;
the processing unit is used for converting the information of the plurality of monitored objects into a target acquisition configuration file of the monitoring system according to a preset conversion rule; and generating a target acquisition task by loading the target acquisition configuration file, and completing the acquisition configuration update of the monitoring system.
In a third aspect, an embodiment of the present application further provides a monitoring system, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the above-described method.
The embodiment of the application provides a method, a device, a system and a storage medium for updating acquisition configuration of a monitoring system. The method is applied to a monitoring system, the monitoring system is used for monitoring a target system, the target system comprises a plurality of monitored objects needing to be monitored, and the method comprises the following steps: acquiring monitored object information corresponding to each monitored object from a configuration management database of the target system according to a preset first time interval, wherein the monitored object information comprises a monitored object identifier, an IP address and an acquisition index, and the configuration management database maintains latest monitored object information of each monitored object in the current network infrastructure of the target system; converting the information of the monitored objects into target acquisition configuration files of the monitoring system according to a preset conversion rule; and generating a target acquisition task by loading the target acquisition configuration file, and completing the acquisition configuration update of the monitoring system. In the embodiment of the application, since the latest monitored object information of each monitored object in the current network infrastructure of the target system is maintained in the configuration management database, when the acquisition configuration update is needed, the latest monitored object information of the monitored object can be automatically acquired from the configuration management database of the target system, the acquisition configuration file of the monitoring system is automatically generated according to the latest monitored object information, the automatically loaded acquisition configuration file automatically generates the target acquisition task, and the acquisition configuration update of the monitoring system is automatically completed, so the efficiency of the acquisition configuration update of the monitoring system can be improved and the error rate of the acquisition configuration can be reduced through the embodiment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of an acquisition configuration updating method of a monitoring system according to an embodiment of the present application;
fig. 2 is a flow chart of a method for updating an acquisition configuration of a monitoring system according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for updating an acquisition configuration of a monitoring system according to another embodiment of the present application;
FIG. 4 is a schematic block diagram of an acquisition configuration updating apparatus of a monitoring system according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a monitoring system according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a method, a device, a system and a storage medium for updating acquisition configuration of a monitoring system.
The execution main body of the acquisition configuration updating method of the monitoring system can be the acquisition configuration updating device of the monitoring system provided by the embodiment of the application or the monitoring system integrated with the acquisition configuration updating device of the monitoring system, wherein the acquisition configuration updating device of the monitoring system can be realized in a hardware or software mode, and the monitoring system can be a terminal or a server.
The monitoring system of this embodiment is Prometaus, and the configuration management database is CMDB (Configuration Management Database) database.
The CMDB is a database system for recording various devices, applications, services and relationships in a network infrastructure (referred to as IT infrastructure), and can periodically scan assets, discover variations of the assets and synchronize information into the CMDB, thereby ensuring accuracy of asset information, so that the CMDB of the target system maintains latest monitored object information of each monitored object in the current network infrastructure of the target system.
In some embodiments, referring to fig. 1, fig. 1 is a schematic application scenario diagram of an acquisition configuration updating method of a monitoring system according to an embodiment of the present application. The method for updating the acquisition configuration of the monitoring system is applied to the monitoring system in fig. 1, an Agent is deployed in the monitoring system, and the method for updating the acquisition configuration of the monitoring system is realized through the Agent in the monitoring system and comprises the following steps: 1. the Agent acquires monitored object information of a plurality of monitored objects related to the acquisition task from the CMDB according to a preset first time interval; 2. the Agent converts the information of the monitored objects into target acquisition configuration files which can be identified by the monitoring system according to a preset conversion rule, and stores the target acquisition configuration files into a config library corresponding to the monitoring system; 3. after updating the target acquisition configuration file in the config library, the Agent initiates a refreshing configuration request to the monitoring system; 4. and the monitoring system responds to the refreshing configuration request, reloads the target acquisition configuration file in the config library, updates the target acquisition task and completes the acquisition configuration update of the monitoring system.
Fig. 2 is a flowchart of a method for updating an acquisition configuration of a monitoring system according to an embodiment of the present application.
The method is applied to a monitoring system, wherein the monitoring system is used for monitoring a target system, the target system comprises a plurality of monitored objects needing to be monitored, as shown in fig. 2, and the method comprises the following steps S110-S130.
S110, acquiring monitored object information corresponding to each monitored object from a configuration management database of the target system according to a preset first time interval.
In this embodiment, the duration of the first time interval may be 24 hours, or may be other durations, and the specific duration of the time interval may be adjusted according to actual needs.
For example, when 24 hours are the duration of the first time interval, the monitoring system performs an update of the acquisition configuration every 24 hours, for example, the acquisition configuration update in this embodiment is performed at 12 pm every day.
Further, in some embodiments, the configuration management database of the present embodiment dynamically maintains exor model data, where the exor model data is monitored object information of the monitored object.
In this embodiment, the monitored object information includes a monitored object identifier, a protocol (Internet Protocol, IP) address of an interconnection between networks, and an acquisition index, and the configuration management database maintains latest monitored object information of each monitored object in a current network infrastructure of the target system.
The monitored object identifier is used for identifying a source of the subsequently collected monitoring data, and the monitored object identifier specifically may be an object name corresponding to the monitored object, or other identity Identifier (ID) that may uniquely identify the monitored object; the IP address is used for determining the position of the monitored object by the monitoring system so that the monitoring system can collect the monitoring data of the monitored object at the position of the monitored object; the collection index is the data type of the monitored data to be collected, different monitored objects correspond to different collection indexes, the collection index can indicate the performance of the corresponding monitored objects, for example, the collection index is the utilization rate of a central processing unit (Central Processing Unit, CPU) of the monitored objects, the utilization rate of a memory and the like.
In some embodiments, the monitored object information further includes a classification tag including at least one of a product line tag, a component category tag, and an environmental tag. The classification label is used for classifying the collected monitoring data and the monitoring result.
In some embodiments, in order to facilitate the subsequent conversion of the monitored object information into the target acquisition configuration file of the monitoring system, a database needs to be pre-established, a table for storing the monitored object information is established in the database, the read monitored object information is stored in the table, and each row of the table represents one piece of monitored object information, where the database may be an sql database or another type of database, and for accurately reading the monitored object information, a field relationship with the database needs to be set in advance in a preset conversion rule.
S120, converting the information of the monitored objects into target acquisition configuration files of the monitoring system according to preset conversion rules.
In this embodiment, the preset conversion rule is used to read the monitored object information, and convert the read monitored object information into the target acquisition configuration file that can be identified by the monitoring system, where the conversion rule includes language and format conversion.
In order to enable the monitoring system to accurately load the target acquisition configuration file, after the target acquisition configuration file is generated in the embodiment, the generated target acquisition configuration file needs to be stored in a config library of the monitoring system and covers an old acquisition configuration file in the config library.
S130, generating a target acquisition task by loading the target acquisition configuration file, and completing acquisition configuration updating of the monitoring system.
In this embodiment, after the target acquisition configuration file is generated and stored in the config library, the monitoring system reloads the target acquisition configuration file to generate a target acquisition task, thereby completing the acquisition configuration update of the monitoring system.
In some embodiments, the monitoring system in this embodiment includes an acquisition module and a service monitoring module, where the target acquisition task includes sub-acquisition tasks respectively corresponding to the monitored objects; at this time, the generating the target acquisition task by loading the target acquisition configuration file includes: and deploying the acquisition modules in each monitored object according to the IP address in the target acquisition configuration file, and determining the sub-acquisition task of each acquisition module according to the corresponding acquisition index.
When the acquisition subtask of the acquisition module is started, the acquisition subtask acquires the monitoring data of the acquisition index corresponding to the monitored object.
In summary, in the embodiment of the present application, since the configuration management database maintains the latest monitored object information of each monitored object in the current network infrastructure of the target system, when the collection configuration update is required, the latest monitored object information of the monitored object is automatically obtained from the configuration management database of the target system, and the collection configuration file of the monitoring system is automatically generated according to the latest monitored object information, the collection configuration file generated by automatic loading automatically generates the target collection task, and the collection configuration update of the monitoring system is automatically completed, so that the efficiency of the collection configuration update of the monitoring system can be improved and the error rate of the collection configuration can be reduced through the embodiment.
In addition, the embodiment of the application can also realize the dynamic update (refreshing) of the acquisition configuration of the monitoring system.
Fig. 3 is a flowchart of a method for updating an acquisition configuration of a monitoring system according to another embodiment of the present application. As shown in fig. 3, the method for updating the acquisition configuration of the monitoring system of the present embodiment includes steps S210 to S230. Steps S210 to S230 are similar to steps S110 to S130 in the above embodiment, and are not described herein. In this embodiment, the target acquisition task includes sub-acquisition tasks respectively corresponding to the monitored objects; steps S240 to S250 added in the present embodiment are described in detail below.
S240, aiming at each sub-acquisition task, acquiring monitoring data of the target monitored object according to a preset second time interval.
The target monitored object is a monitored object corresponding to the sub-acquisition task, and the monitoring data is data corresponding to an acquisition index of the target monitored object.
In this embodiment, after the collection configuration of the monitoring system is updated, each sub-collection task obtains the monitoring data of the target monitored object according to a preset second time interval, where the second time interval may be 1min, and at this time, each collection task obtains the monitoring data of the corresponding monitored object once every 1 min.
In some embodiments, a second time interval with different time intervals may be set for different monitored objects, for example, for some monitored objects with high requirement on monitoring real-time performance, a small point may be set for the time length of the corresponding second time interval; and setting a large point for the time degree of the corresponding second time interval of some monitored objects with low requirements on monitoring instantaneity.
In some embodiments, the monitoring system includes an acquisition module and a service monitoring module, when the acquisition configuration is performed, the acquisition module needs to be deployed in each monitored object, and a corresponding sub-acquisition task is deployed in the acquisition module, and at this time, the monitoring data of the target monitored object is obtained by the acquisition module according to a preset second time interval, and the monitoring data is sent to the service monitoring module.
S250, storing the monitoring data corresponding to each sub-acquisition task, and monitoring each monitoring data according to a preset alarm rule to obtain a monitoring result corresponding to each monitoring data.
In some embodiments, after the service monitoring module receives the monitoring data sent by the acquisition module, the monitoring data is stored, and the stored monitoring data is monitored according to a preset alarm rule, so as to obtain a corresponding monitoring result.
The acquired monitored data of the monitored object comprises monitoring sub-data corresponding to each acquisition index respectively.
In this embodiment, different alarm rules are set for different acquisition indexes, that is, the preset alarm rules include alarm sub-rules corresponding to the acquisition indexes respectively, for example, for a monitored index of CPU utilization rate, a CPU utilization rate threshold is set, and when the acquired value of CPU utilization rate is greater than the CPU utilization rate threshold, it is determined that the monitored result of the monitored sub-data corresponding to the value of CPU utilization rate is an abnormal result.
In some embodiments, if a certain monitoring result is detected as an abnormal result, at this time, alarm information needs to be sent to a preset alarm terminal, so that a monitoring person can timely know the abnormal condition of the monitoring result through the alarm terminal and timely perform corresponding processing.
In some embodiments, the obtained monitored object information further includes a classification tag, where the classification tag includes at least one of a product line tag, a component class tag, and an environment tag, and in this case, in order to facilitate classification and check of the monitored data, when the monitored data is stored, each monitored data is classified and stored according to the classification tag, so as to obtain a plurality of monitored data sets; in addition, in order to perform classified monitoring on the monitored objects of various labels, monitoring personnel can more conveniently acquire monitoring results of the monitored objects in various classified labels, and at the moment, after the monitoring results are acquired, the abnormal rate of the monitoring data corresponding to each monitoring data set is determined according to the monitoring results corresponding to each monitoring data set.
If a monitoring result corresponds to a plurality of classification labels, the monitoring result needs to be placed in a monitoring result set corresponding to each classification label. And calculating the monitoring data abnormal rate of the monitoring results according to each monitoring result set, wherein the monitoring data abnormal rate of a certain monitoring result set is determined according to the number of abnormal results in the set and the total number of the monitoring results. Specifically, it is necessary to determine the anomaly rate of the monitoring data corresponding to each of the acquisition indexes in the monitoring result.
In some embodiments, the monitoring system in this embodiment further provides a query interface through the plug-in, and a monitoring person (user) can input a monitoring data query instruction through the query interface, where the monitoring data query instruction includes a target monitored object identifier; at this time, the monitoring system responds to the monitoring data query instruction and searches target monitoring data corresponding to the target monitored object identifier in the stored multiple monitoring data; and returning the target monitoring data to the query interface, so that monitoring personnel can query the required monitoring data in time through the query interface.
In summary, in the embodiment of the present application, since the configuration management database maintains the latest monitored object information of each monitored object in the current network infrastructure of the target system, when the collection configuration update is required, the latest monitored object information of the monitored object is automatically obtained from the configuration management database of the target system, and the collection configuration file of the monitoring system is automatically generated according to the latest monitored object information, the collection configuration file generated by automatic loading automatically generates the target collection task, and the collection configuration update of the monitoring system is automatically completed, so that the efficiency of the collection configuration update of the monitoring system can be improved and the error rate of the collection configuration can be reduced through the embodiment.
Fig. 4 is a schematic block diagram of an acquisition configuration updating apparatus of a monitoring system according to an embodiment of the present application. As shown in fig. 4, the present application further provides a device 400 for updating the acquisition configuration of the monitoring system, corresponding to the method for updating the acquisition configuration of the monitoring system. The acquisition configuration updating apparatus 400 of the monitoring system includes a unit for executing the acquisition configuration updating method of the monitoring system, where the acquisition configuration updating apparatus of the monitoring system is integrated in the monitoring system, the monitoring system is configured in a terminal or a server, and the monitoring system is used for monitoring a target system, and the target system includes a plurality of monitored objects that need to be monitored. Specifically, referring to fig. 4, the collection configuration updating device of the monitoring system includes a transceiver unit 401 and a processing unit 402, where:
a transceiver unit 401, configured to obtain monitored object information corresponding to each monitored object from a configuration management database of the target system according to a preset first time interval, where the monitored object information includes a monitored object identifier, an IP address, and an acquisition index, and the configuration management database maintains latest monitored object information of each monitored object in a current network infrastructure of the target system;
a processing unit 402, configured to convert a plurality of pieces of monitored object information into a target acquisition configuration file of the monitoring system according to a preset conversion rule; and generating a target acquisition task by loading the target acquisition configuration file, and completing the acquisition configuration update of the monitoring system.
In some embodiments, the target acquisition task includes a sub-acquisition task respectively corresponding to each monitored object; the processing unit 402 is further configured to, after executing the step of generating the target acquisition task by loading the target acquisition configuration file and completing the step of updating the acquisition configuration of the monitoring system:
for each sub-acquisition task, acquiring monitoring data of a target monitored object according to a preset second time interval by using the transceiver unit 401, wherein the target monitored object is a monitored object corresponding to the sub-acquisition task, and the monitoring data is data corresponding to an acquisition index of the target monitored object; and storing the monitoring data corresponding to each sub-acquisition task respectively, and monitoring each monitoring data according to a preset alarm rule to obtain a monitoring result corresponding to each monitoring data respectively.
In some embodiments, the monitoring system includes an acquisition module and a service monitoring module; the processing unit 402 is specifically configured to, when executing the step of generating the target acquisition task by loading the target acquisition configuration file:
deploying the acquisition modules in each monitored object according to the IP addresses in the target acquisition configuration file, and determining the sub-acquisition tasks of each acquisition module according to the corresponding acquisition indexes;
the processing unit 402, when executing the obtaining, by using the transceiver unit 401, the monitoring data of the target monitored object according to the preset second time interval, includes:
acquiring monitoring data of the target monitored object through the acquisition module according to a preset second time interval by using the transceiver unit 401, and sending the monitoring data to the service monitoring module;
the processing unit 402 performs the storing the monitoring data corresponding to each sub-acquisition task, and monitors each monitoring data according to a preset alarm rule to obtain a monitoring result corresponding to each monitoring data, where the monitoring result includes:
and storing each monitoring data through the service monitoring module, and monitoring each monitoring data according to the alarm rule to obtain a monitoring result corresponding to each monitoring data.
In some embodiments, the monitored object information further includes a classification tag including at least one of a product line tag, a component category tag, and an environmental tag; the processing unit 402 is specifically configured to, when executing the step of storing the monitoring data corresponding to each sub-acquisition task, perform:
classifying and storing each monitoring data according to the classification labels to obtain a plurality of monitoring data sets;
the processing unit 402 is further configured to, after executing the step of monitoring each monitoring data according to the preset alarm rule to obtain a monitoring result corresponding to each monitoring data, further:
and determining the abnormal rate of the monitoring data corresponding to each monitoring data set according to the monitoring results corresponding to each monitoring data set.
In some embodiments, after executing the step of monitoring each monitoring data according to the preset alarm rule to obtain a monitoring result corresponding to each monitoring data, the processing module is further configured to:
if the monitoring result is an abnormal result, generating alarm information; and sending the alarm information to a preset alarm terminal.
In some embodiments, after executing the step of storing the monitoring data corresponding to each sub-acquisition task, and monitoring each monitoring data according to a preset alarm rule to obtain a monitoring result corresponding to each monitoring data, the processing module is further configured to:
and displaying the monitoring data and/or the monitoring result through a preset visualization component.
In some embodiments, after performing the step of storing the monitored data corresponding to each sub-acquisition task, the processing unit 402 is further configured to:
receiving a monitoring data query instruction input by a user through a query interface, wherein the monitoring data query instruction comprises a target monitored object identifier; responding to the monitoring data query instruction, and searching target monitoring data corresponding to the target monitored object identifier in a plurality of stored monitoring data; and returning the target monitoring data to the query interface.
In summary, in the embodiment of the present application, since the configuration management database maintains the latest monitored object information of each monitored object in the current network infrastructure of the target system, when the collection configuration updating device 400 of the monitoring system needs to perform collection configuration updating, the latest monitored object information of the monitored object is automatically obtained from the configuration management database of the target system, the collection configuration file of the monitoring system is automatically generated according to the latest monitored object information, the automatically loaded collection configuration file automatically generates the target collection task, and the collection configuration updating of the monitoring system is automatically completed, so that the collection configuration updating efficiency of the monitoring system can be improved and the error rate of the collection configuration can be reduced by the collection configuration updating device 400 of the monitoring system in the embodiment.
The acquisition configuration updating means of the monitoring system described above may be implemented in the form of a computer program which can be run on the monitoring system as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a monitoring system according to an embodiment of the present application. The monitoring system 500 may be a terminal or a server. The server may be an independent server or a server cluster formed by a plurality of servers.
The monitoring system 500 is used for monitoring a target system, which includes a plurality of monitored objects that need to be monitored.
Referring to fig. 5, the monitoring system 500 includes a processor 502, a memory, and a network interface 505, which are connected by a system bus 501, wherein the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a method of updating an acquisition configuration of a monitoring system.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall monitoring system 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a method for updating the acquisition configuration of a monitoring system.
The network interface 505 is used for network communication with other devices. It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the monitoring system 500 to which the present inventive arrangements are applied, and that a particular monitoring system 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the steps of:
the monitored object information comprises monitored object identifiers, IP addresses and acquisition indexes, wherein the configuration management database maintains the latest monitored object information of each monitored object in the current network infrastructure of the target system; converting the information of the monitored objects into target acquisition configuration files of the monitoring system according to a preset conversion rule; and generating a target acquisition task by loading the target acquisition configuration file, and completing the acquisition configuration update of the monitoring system.
It should be appreciated that in an embodiment of the application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present application also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. The program instructions, when executed by the processor, cause the processor to perform the steps of:
the monitored object information comprises monitored object identifiers, IP addresses and acquisition indexes, wherein the configuration management database maintains the latest monitored object information of each monitored object in the current network infrastructure of the target system; converting the information of the monitored objects into target acquisition configuration files of the monitoring system according to a preset conversion rule; and generating a target acquisition task by loading the target acquisition configuration file, and completing the acquisition configuration update of the monitoring system.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. The method is applied to a monitoring system, and is used for monitoring a target system, wherein the target system comprises a plurality of monitored objects needing to be monitored, and the method comprises the following steps:
acquiring monitored object information corresponding to each monitored object from a configuration management database of the target system according to a preset first time interval, wherein the monitored object information comprises a monitored object identifier, an IP address and an acquisition index, and the configuration management database maintains latest monitored object information of each monitored object in the current network infrastructure of the target system;
converting the information of the monitored objects into target acquisition configuration files of the monitoring system according to a preset conversion rule;
and generating a target acquisition task by loading the target acquisition configuration file, and completing the acquisition configuration update of the monitoring system.
2. The method of claim 1, wherein the target acquisition task comprises a sub-acquisition task respectively corresponding to each monitored object; the method further comprises the steps of after the target acquisition task is generated by loading the target acquisition configuration file and the acquisition configuration of the monitoring system is updated, the method comprises the following steps:
for each sub-acquisition task, acquiring monitoring data of a target monitored object according to a preset second time interval, wherein the target monitored object is a monitored object corresponding to the sub-acquisition task, and the monitoring data is data corresponding to an acquisition index of the target monitored object;
and storing the monitoring data corresponding to each sub-acquisition task respectively, and monitoring each monitoring data according to a preset alarm rule to obtain a monitoring result corresponding to each monitoring data respectively.
3. The method of claim 2, wherein the monitoring system comprises an acquisition module and a service monitoring module; the generating the target acquisition task by loading the target acquisition configuration file comprises the following steps:
deploying the acquisition modules in each monitored object according to the IP addresses in the target acquisition configuration file, and determining the sub-acquisition tasks of each acquisition module according to the corresponding acquisition indexes;
the obtaining the monitoring data of the target monitored object according to the preset second time interval includes:
acquiring monitoring data of the target monitored object according to a preset second time interval through the acquisition module, and sending the monitoring data to the service monitoring module;
the storing of the monitoring data corresponding to each sub-acquisition task, and the monitoring of each monitoring data according to a preset alarm rule, to obtain a monitoring result corresponding to each monitoring data, includes:
and storing each monitoring data through the service monitoring module, and monitoring each monitoring data according to the alarm rule to obtain a monitoring result corresponding to each monitoring data.
4. The method of claim 3, wherein the monitored object information further comprises a classification tag comprising at least one of a product line tag, a component category tag, and an environmental tag; the storing the monitoring data respectively corresponding to the sub-acquisition tasks includes:
classifying and storing each monitoring data according to the classification labels to obtain a plurality of monitoring data sets;
the method further comprises the steps of monitoring each monitoring data according to a preset alarm rule, and after monitoring results corresponding to the monitoring data are obtained, the method further comprises the steps of:
and determining the abnormal rate of the monitoring data corresponding to each monitoring data set according to the monitoring results corresponding to each monitoring data set.
5. The method according to claim 3, wherein after monitoring each monitoring data according to a preset alarm rule to obtain a monitoring result corresponding to each monitoring data, the method further comprises:
if the monitoring result is an abnormal result, generating alarm information;
and sending the alarm information to a preset alarm terminal.
6. The method according to any one of claims 2 to 5, wherein after storing the monitoring data corresponding to each sub-acquisition task, and monitoring each monitoring data according to a preset alarm rule, obtaining a monitoring result corresponding to each monitoring data, the method further includes:
and displaying the monitoring data and/or the monitoring result through a preset visualization component.
7. The method according to any one of claims 2 to 5, wherein after storing the monitoring data corresponding to each sub-acquisition task, the method further comprises:
receiving a monitoring data query instruction input by a user through a query interface, wherein the monitoring data query instruction comprises a target monitored object identifier;
responding to the monitoring data query instruction, and searching target monitoring data corresponding to the target monitored object identifier in a plurality of stored monitoring data;
and returning the target monitoring data to the query interface.
8. The utility model provides a collection configuration updating device of monitored control system, its characterized in that, the collection configuration updating device of monitored control system is integrated in monitored control system, monitored control system is used for monitoring target system, target system includes a plurality of monitored objects that need to be monitored, the collection configuration updating device of monitored control system includes:
the receiving and transmitting unit is used for acquiring monitored object information corresponding to each monitored object respectively from a configuration management database of the target system according to a preset first time interval, wherein the monitored object information comprises a monitored object identifier, an IP address and an acquisition index, and the configuration management database maintains the latest monitored object information of each monitored object in the current network infrastructure of the target system;
the processing unit is used for converting the information of the plurality of monitored objects into a target acquisition configuration file of the monitoring system according to a preset conversion rule; and generating a target acquisition task by loading the target acquisition configuration file, and completing the acquisition configuration update of the monitoring system.
9. A monitoring system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the acquisition configuration updating method of the monitoring system according to any one of claims 1-7 when executing the computer program.
10. A storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the acquisition configuration updating method of a monitoring system according to any one of claims 1-7.
CN202310854359.4A 2023-07-12 2023-07-12 Acquisition configuration updating method, device and system of monitoring system and storage medium Pending CN116881081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310854359.4A CN116881081A (en) 2023-07-12 2023-07-12 Acquisition configuration updating method, device and system of monitoring system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310854359.4A CN116881081A (en) 2023-07-12 2023-07-12 Acquisition configuration updating method, device and system of monitoring system and storage medium

Publications (1)

Publication Number Publication Date
CN116881081A true CN116881081A (en) 2023-10-13

Family

ID=88271048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310854359.4A Pending CN116881081A (en) 2023-07-12 2023-07-12 Acquisition configuration updating method, device and system of monitoring system and storage medium

Country Status (1)

Country Link
CN (1) CN116881081A (en)

Similar Documents

Publication Publication Date Title
US9444899B2 (en) Use of internet information services logging to collect user information in an asynchronous manner
CN108874558B (en) Message subscription method of distributed transaction, electronic device and readable storage medium
US9176798B2 (en) Computer-readable recording medium, failure prediction device and applicability determination method
US9020949B2 (en) Method and system for centralized issue tracking
CN109388657B (en) Data processing method, device, computer equipment and storage medium
KR20210005043A (en) Input and output schema mapping
US9928517B1 (en) Interaction reconstruction in a service-oriented system
CN113704790A (en) Abnormal log information summarizing method and computer equipment
US10397343B1 (en) Distributed trace storage in a service-oriented system
CN112905323B (en) Data processing method, device, electronic equipment and storage medium
CN112214465A (en) Log storage system and method
CN104298675A (en) Method and device for cache management
CN113596078A (en) Service problem positioning method and device
CN111045848A (en) Log analysis method, terminal device and computer-readable storage medium
CN110737655B (en) Method and device for reporting data
CN116881081A (en) Acquisition configuration updating method, device and system of monitoring system and storage medium
CN112862245B (en) Data exchange method and device and electronic equipment
CN112860292A (en) Configuration management method and device based on application
US8825843B2 (en) System and methods for monitoring a geographic information system
US9672489B1 (en) Inventory validator with notification manager
CN117632445B (en) Request processing method and device, task execution method and device
CN114676166B (en) Data processing method and device
CN110362706B (en) Data searching method and device, storage medium and electronic device
US20220407838A1 (en) Service discovery and renaming
CN112748931B (en) Compiled file management method, calling method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination