CN112667474A - Data monitoring method and device, electronic equipment and storage medium - Google Patents

Data monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112667474A
CN112667474A CN202011583397.3A CN202011583397A CN112667474A CN 112667474 A CN112667474 A CN 112667474A CN 202011583397 A CN202011583397 A CN 202011583397A CN 112667474 A CN112667474 A CN 112667474A
Authority
CN
China
Prior art keywords
plug
monitoring
data
interface
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011583397.3A
Other languages
Chinese (zh)
Other versions
CN112667474B (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011583397.3A priority Critical patent/CN112667474B/en
Publication of CN112667474A publication Critical patent/CN112667474A/en
Application granted granted Critical
Publication of CN112667474B publication Critical patent/CN112667474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data monitoring method, a data monitoring device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring resource index data of a target resource type through a plug-in; sending the resource index data to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow; and processing the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data.

Description

Data monitoring method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of resource monitoring and management, and in particular, to a data monitoring method and apparatus, an electronic device, and a storage medium.
Background
The related prior art of the current monitoring and warning system comprises: compiling a monitoring plug-in based on a preset plug-in customization rule, and generating a dynamic function library corresponding to the monitoring plug-in; setting a plug-in storage directory and a plug-in starting configuration in the configuration file, wherein the plug-in storage directory is the position information of the dynamic function library, and the plug-in starting configuration is the configuration information for starting the monitoring plug-in; and scanning the plug-in storage directory, reading the plug-in starting configuration, loading the dynamic function library by using the libltdl function library, generating a corresponding monitoring interface, and calling the monitoring interface to start the extended plug-in by using the monitoring system to realize corresponding monitoring operation. The technical scheme that the configuration file and the monitoring plug-in are used as input, the dynamic function library is used as a core, and the monitoring interface is used as output is adopted, so that the flexible customization and assembly of the monitoring plug-in are realized.
The technology has the defects of usability and expansibility: the plug-in uses a dynamic function library mode, the format is single, the plug-in function library is regenerated by hard coding according to the modification requirement of the business requirement every time, and the plug-in cannot be adaptively docked with a third party monitoring and collecting system.
Disclosure of Invention
By providing a data processing method, a data processing device, an electronic device, and a storage medium, the embodiments of the present application can correspond to a service processing flow through a plug-in interface defined in advance, so that data of different resource types can be processed through the plug-in interface, thereby providing extensibility and compatibility, and enabling a monitoring center to monitor resource index data with higher performance.
In a first aspect, the present invention provides the following technical solutions through an embodiment of the present invention:
a method of data monitoring, comprising: acquiring resource index data of a target resource type through a plug-in; sending the resource index data to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow; and processing the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data.
Preferably, before the obtaining the resource index data of the target resource type by the plug-in, the method further includes: when the situation that the plug-in is started is monitored, reporting monitoring configuration information corresponding to the plug-in to the monitoring center, so that the monitoring center carries out monitoring configuration on resource index data collected by the plug-in based on the monitoring configuration information.
Preferably, the reporting of the monitoring configuration information corresponding to the plug-in to the monitoring center includes: and reporting the target resource type corresponding to the plug-in to the monitoring center so that the monitoring center calls a plug-in interface corresponding to the target resource type to acquire a plug-in acquisition total data list.
Preferably, after reporting the monitoring configuration information corresponding to the plug-in to the monitoring center, the method further includes: if monitoring that the monitoring configuration information corresponding to the plug-in is changed, reporting the changed monitoring configuration information to the monitoring center again, so that the monitoring center updates the monitoring configuration of the target resource type based on the changed monitoring configuration information.
Preferably, the method further comprises: and reporting the target alarm data to a third-party monitoring center through the plug-in interface so that the third-party monitoring center monitors the resource index data.
Preferably, the processing the resource index data based on the service processing flow corresponding to the plug-in interface to obtain the target monitoring data further includes: and comparing the resource index data with a pre-stored full data list to obtain abnormal data, and using the abnormal data as the target monitoring data, wherein the full data list comprises index data of all equipment monitored by the plug-in.
Preferably, the method further comprises: establishing communication connection between the plug-in and the monitoring center based on a heartbeat mechanism; and monitoring whether the plug-in receives the heartbeat packet sent by the monitoring center, and if not, restarting the plug-in.
In a second aspect, the present invention provides the following technical solutions through an embodiment of the present invention:
a data monitoring apparatus, comprising:
the acquisition module is used for acquiring resource index data of the target resource type through the plug-in;
the sending module is used for sending the resource index data to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow;
and the control module is used for processing the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data.
In a third aspect, the present invention provides the following technical solutions through an embodiment of the present invention:
an electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps of: acquiring resource index data of a target resource type through a plug-in; sending the resource index data to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow; and processing the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data.
In a fourth aspect, the present invention provides the following technical solutions according to an embodiment of the present invention:
a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the embodiment of the invention provides a data monitoring method, a data monitoring device, electronic equipment and a storage medium, wherein the data monitoring method comprises the following steps: firstly, acquiring resource index data of a target resource type through a plug-in; sending the resource index data to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow; and processing the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data. By carrying out uniform interface definition on the plug-in interface, the resource index data of different resource types can realize corresponding service processing through the plug-in interface, so that the expansibility and compatibility are better, and the monitoring center can realize the monitoring of the resource index data with higher performance.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart of a data monitoring method according to an embodiment of the present invention;
FIG. 2 is a control diagram of a plug-in interface according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a data monitoring method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a business process flow in an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a data monitoring apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
By providing a data monitoring method, a data monitoring device, an electronic device, and a storage medium, the embodiments of the present application can correspond to a service processing flow through a plug-in interface defined in advance, so that data of different resource types can be processed through the plug-in interface, thereby providing extensibility and compatibility, and enabling a monitoring center to monitor resource index data with higher performance.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
a data monitoring method, a device, an electronic device and a storage medium include: firstly, acquiring resource index data of a target resource type through a plug-in; sending the resource index data to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow; and processing the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
The embodiment of the invention provides a data monitoring method. Specifically, as shown in fig. 1, the data monitoring method includes the following steps S101 to S103.
Step S101, acquiring resource index data of the target resource type through the plug-in.
In a specific implementation process, before acquiring the resource index data of the target resource type, the method further includes: when the plug-in is monitored to be started, monitoring configuration information corresponding to the plug-in is reported to a monitoring center, so that the monitoring center monitors and configures the resource index data acquired by the plug-in based on the monitoring configuration information.
Specifically, as shown in fig. 2, after the plug-in is started, the plug-in will read the index definition and the parameter configuration information, where the index definition is, for example: type of metrics, resource categories, and names. Parameter configuration information such as: data acquisition time parameters, alarm thresholds, etc. are defined by monitoring alarm metadata. In order to provide data support for the business processing flow, the plug-in unit can filter and convert the original data collected by monitoring, so that the original data become a data interface format which is in line with the built-in plug-in unit. In addition, for the resource index data with higher real-time requirement, the component support of memory cache can be adopted, that is, the component support of memory cache can be performed on the data which is obtained in real time by the monitoring alarm system through a memory cache mechanism realized by software.
Specifically, the plug-in Interface of the unified development shown in fig. 2 may be simply described as a data Flow (Flow) process, where a plug-in configuration file (Config) includes an index definition and parameter configuration information corresponding to the plug-in, and the index definition and the parameter configuration information are reported to a monitoring center through a plug-in Interface (OPEN-API), so that the monitoring center completes monitoring configuration of the plug-in. After the configuration is completed, the monitoring center can obtain the index data (data) acquired by the plug-in and subjected to filtering processing by calling the plug-in interface.
Specifically, when a huge amount of monitoring index items in the host, namely the resource types and the index data in the host are faced, and the resource index data of the target resource type is acquired through the plug-in, different resource plug-ins only capture, collect and filter the classified data. Such as: the resource A-plug-in processing GPU resource related indexes comprise GPU power consumption, GPU temperature, GPU utilization rate, video memory utilization rate and the like; the resource B-plug-in is used for processing the related indexes of the CPU resource, such as CPU power consumption, CPU temperature, CPU utilization rate and the like. The design can ensure that the monitoring center system does not process all index data any more, but different plug-ins process respective resource index data in parallel, thereby realizing high performance and real-time effectiveness of resource index data processing.
As an optional embodiment, monitoring configuration information corresponding to the plug-in may be reported to the monitoring center, that is, the monitoring index item, so as to register (register) the monitoring index item of the target resource type with the monitoring center. After the registration is completed, the monitoring center system is ready to receive the parameter configuration information, namely index data, reported by the processing plug-in unit based on the monitoring index item. For example, if the type of the resource to be monitored is GPU and the resource name is video memory utilization, the monitoring index item is a GPU video memory utilization index. It should be noted that the monitoring configuration information here may be a monitoring index item, and may also be a resource type. In addition, the monitoring configuration information adopts a uniform monitoring configuration information template, and the plug-in performs resource index data registration, amateur parameter configuration and the like.
Specifically, after the registration is completed, a plug-in interface corresponding to the target resource type can be called through the monitoring center, the full data collected by the plug-ins is obtained, and a monitoring configuration information list is formed. And the monitoring center monitors and configures the resource index data acquired by the plug-in based on the monitoring configuration information list. Wherein, in order to guarantee high performance, the monitoring center can not be called every time.
Step S102, the resource index data is sent to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow.
In the specific implementation process, as shown in fig. 3, in order to implement that plug-ins of different resource types can all use corresponding business processing flows, the plug-in interfaces have compatibility. The method can be used for carrying out uniform interface design on different resource plug-ins and sending the target type resource index data to a predefined plug-in interface, wherein the plug-in interface corresponds to a business processing flow. The plug-in interface specification is defined, and the design of the plug-in interface can be designed in an abstract mode according to the monitoring system architecture processing logic and is not tightly coupled with concrete resource index data. Therefore, different types of resource index data can realize corresponding business processing flows through one plug-in interface. The method is also suitable for the corresponding business processing flow when the index data is changed.
The data monitoring method shown in fig. 3 can be described simply as including: the host 1, the host 2, the host 3 and the host 4 correspond to three resource type plugins, namely a resource A-plugin, a resource B-plugin and a resource C-plugin, the resource type plugins all correspond to the plugin interfaces, and the plugin interfaces correspond to business processing flows. Meanwhile, the plug-in interface can establish a relationship with a third-party monitoring alarm center in addition to the relationship with the monitoring center, and has openness and compatibility. The data monitoring method can realize the monitoring and the alarm service processing.
Specifically, a predefined plug-in interface includes multiple processing interfaces, each processing interface corresponds to one process, and the sum of all the processes constitutes a service processing process. In order to allow different resource plug-ins to use these flows, we need to abstract it into interface field definitions by analyzing the business flow. The invention designs a unified resource plug-in open interface definition, which is specifically as follows:
Figure BDA0002865677710000071
Figure BDA0002865677710000081
Figure BDA0002865677710000091
Figure BDA0002865677710000101
in the specific implementation process, the plug-in interface is an entry for triggering a service processing flow, and the flow needs to be defined under the condition that the plug-in interface meets requirements, so that the flow meets service processing under different scenes, namely service processing under multiple scenes such as acquisition, updating and the like. The method adopts the mode of configuring the driving flow to define, namely, the business processing flow is generated through the parameter configuration in the resource index data and the defined business rule,
specifically, the business process flow may include a registration (register) flow, a list (list) flow, a notification (Notify) flow, and a timing collection (collection) flow. The defined process can meet the business processing under multiple scenes such as collection, notification and the like. For example: starting an alarm configuration, and starting a notification process; and generating an index data processing flow according to the type of the monitoring alarm index. It should be noted that different processes in the service processing process generally have mappings in the processing interface, that is, interaction with the monitoring center can be realized, which is convenient for the monitoring center system docked by the plug-in device to call.
Further, in order to enable the plug-in to meet the requirements of openness and expansibility, wherein the openness is convenient for docking and processing third-party monitoring systems and system platforms for transplantation, and the expansibility is convenient for monitoring and processing newly added resource types in the future. Based on the plug-in interface uniformly defined by the embodiment, the target alarm data can be reported to the third-party monitoring center through the plug-in interface, so that the third-party monitoring center can monitor the resource index data. It should be noted that, the compatibility and the expansibility of the third party monitoring center platform version are also considered here.
Further, in the cloud platform and the cluster system, the interface calling mode may be a local call and a remote call, for example, RPC remote call is adopted to realize remote control across the development tool and the platform.
Step S103, processing the resource index data based on the service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data.
Specifically, the service processing flow includes an index data processing flow after the resource configuration data is determined, and the index data processing flow may include a list (list) flow, a notification (Notify) flow, and a timing acquisition (collection) flow. The notification process provides a processing mechanism for index real-time monitoring, and the processing mechanism comprises that after the list process is completed, when the resource index data collected by the plug-in changes, the notification process can compare the resource index data with the list data stored in the plug-in, wherein the list data comprises index data of all devices monitored by the plug-in, and target monitoring data is obtained. The target monitoring data may be changed data, only the updated data part is pushed to the monitoring center at this time, or the target monitoring data may be abnormal data for triggering an index alarm according to an alarm threshold rule, and the alarm information is sent to the monitoring center. For example, in an alarm scenario, at this time, the process trigger plug-in needs to be notified to report the alarm information of the resource indicator data. Therefore, the data validity of the monitoring system is ensured through the notification process, and the quick response of the monitoring center to the time sensitivity index is facilitated.
Specifically, the timing acquisition interface is called by a polling acquisition indicator, that is, called by a periodic acquisition indicator, for example, such indicators may be: the size of the residual space of the disk, the network card rate and the like. When the collection interval time is up, the monitoring center system calls the plug-in collection interface to obtain monitoring and warning data.
Further, in order to ensure the robustness of the plug-in operation, the business care flow may further include a heartbeat (heartbeat) flow. Specifically, in order to ensure continuous operation of the plug-in, a communication connection between the plug-in and the monitoring center may be established based on a heartbeat mechanism, and whether the plug-in receives a heartbeat packet sent by the monitoring center is detected, and if not, the plug-in is restarted. And if the monitoring center cannot detect the plug-in, deleting the resource index configuration item corresponding to the plug-in. For example, the GPU resource plug-in is deleted.
Furthermore, in order to implement hot plug of the resource plug-in for online configuration update, the service nursing process may further include a combination of a registration process and a heartbeat process, and the process may report the changed monitoring configuration information to the monitoring center again when monitoring that the monitoring configuration information corresponding to the plug-in is changed, so that the monitoring center updates the monitoring configuration for the target resource type based on the changed monitoring configuration information. Therefore, the online updating of the monitoring alarm index configuration is realized, and the configuration file does not need to be updated firstly like the traditional monitoring system, and then the central system and the related component service are restarted to be effective.
Specifically, when the configuration of a certain type of resource plug-in is modified, the resource plug-in is automatically triggered and then returns to the registration process, so that the monitoring configuration of the resource index data is completed. For example, when the collection interval of the GPU temperature is changed, which is equivalent to the plug-in acquiring new resource index data, the monitoring center may recall the full amount of information of the plug-in interface and correspondingly execute the processes such as notification. And the real-time monitoring of the resource index data by the monitoring center is realized.
Specifically, the business process flow shown in fig. 4 includes registration, listing, notification, timing acquisition, and heartbeat flow. The method specifically comprises the following steps: the registration process is that when the plug-in is started, the plug-in interface is completed to register the monitoring index information to the monitoring center; the list process is that after the registration is completed, the monitoring center can call the plug-in interface to obtain all the equipment information, namely a full information list; the notification process is that after the list process, the plug-in can compare with the list process according to the latest data collected, and when the data changes, the data update and the abnormal data alarm are realized through the interaction between the plug-in interface and the monitoring center; the timing acquisition flow is based on the configuration parameters in the registered resource index data, and the monitoring center can periodically call a plug-in acquisition interface according to the configuration parameter rule to acquire monitoring and warning data; the heartbeat process is that if the plug-in cannot detect the monitoring center, the plug-in is restarted, and if the monitoring center cannot detect the resource plug-in, the resource index configuration item is deleted in the monitoring center. In addition, the method also comprises the combination of a registration process and a heartbeat process, wherein the registration process of the resource plug-in is automatically triggered when the resource index data is changed, so that the monitoring configuration of the resource index can be completed.
In summary, according to the data monitoring method provided by the embodiment of the present invention, by analyzing the service scenario of the monitoring alarm system, a uniform resource plug-in interface and flow mechanism are designed overall, and the plug-in interface can process resource plug-in data of different resource types and corresponds to a related service processing flow. The online modification of resource configuration items, alarm thresholds and rule changes in the cloud platform and cluster system monitoring business can be realized, and the expansion of resource indexes and the function reconstruction development of a third-party system are realized. The method realizes the hot plug of the resource plug-in for online configuration updating, the interface mechanism for unified development and the configuration driving flow definition, can expand the peripheral resource types and interface a third-party system, ensures the real-time performance and the effectiveness of monitoring and alarming data, provides key component support for the monitoring and alarming services of the server software and hardware and the cloud platform, ensures the operation stability and the continuity of the services of the server and the platform, and finally improves the ARPU value of the platform services.
The data monitoring method supports the following functions: 1. monitoring and alarm index configuration is updated on line; 2. the monitoring and warning index business processing logic can be realized by the flow definition of a plug-in mechanism; 3. the efficient filtering and alarm processing of different systems and resource index data are realized, and the product demand target under a multi-service scene is met; 4. the range and the variety of the monitoring resources can be well expanded, and the method can be flexibly adapted to index data acquisition of a third-party monitoring system.
Based on the same inventive concept, the present embodiment provides a data monitoring apparatus, as shown in fig. 5, including:
an obtaining module 501, configured to obtain resource index data of a target resource type through a plug-in;
a sending module 502, configured to send the resource indicator data to a predefined plug-in interface, where the plug-in interface is uniformly defined based on resource types corresponding to multiple different plug-ins, and the plug-in interface corresponds to a service processing flow;
the control module 503 is configured to process the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and report the target monitoring data to the monitoring center through the plug-in interface, so that the monitoring center monitors the resource index data.
As an optional embodiment, the data monitoring apparatus further includes:
and the configuration module is used for reporting monitoring configuration information corresponding to the plug-in to the monitoring center when the start of the plug-in is monitored, so that the monitoring center monitors and configures the resource index data acquired by the plug-in based on the monitoring configuration information.
As an optional embodiment, the configuration module is specifically configured to: and reporting the target resource type corresponding to the plug-in to the monitoring center so that the monitoring center calls a plug-in interface corresponding to the target resource type to acquire a plug-in acquisition total data list.
As an optional embodiment, the data monitoring apparatus further includes:
and the re-registration module is used for reporting the changed monitoring configuration information to the monitoring center again if the monitoring configuration information corresponding to the plug-in is changed, so that the monitoring center updates the monitoring configuration of the target resource type based on the changed monitoring configuration information.
As an optional embodiment, the data monitoring apparatus further includes:
and the open module is used for reporting the target alarm data to a third-party monitoring center through a plug-in interface so that the third-party monitoring center can monitor the resource index data.
As an alternative embodiment, the control module 503 is specifically configured to: and comparing the resource index data with a pre-stored full data list to obtain abnormal data, wherein the abnormal data is used as target monitoring data, and the full data list comprises index data of all equipment monitored by the plug-in.
As an optional embodiment, the data monitoring apparatus further includes:
the heartbeat module is used for establishing communication connection between the plug-in and the monitoring center based on a heartbeat mechanism; and whether the monitoring plug-in receives the heartbeat packet sent by the monitoring center or not is monitored, and if not, the monitoring plug-in is restarted.
The above modules may be implemented by software codes, and in this case, the modules may be stored in a memory of the control device. The above modules may also be implemented by hardware, such as an integrated circuit chip.
The data monitoring device provided by the embodiment of the invention has the same implementation principle and technical effect as the method embodiment, and for brief description, corresponding contents in the method embodiment can be referred to where no embodiment of the device is mentioned.
Based on the same inventive concept, as shown in fig. 6, the present embodiment provides an electronic device 800, which includes one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of a data monitoring method provided by one of the above embodiments. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile storage electronics, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the electronic device 800 and other electronic devices in a wired or wireless manner. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), digital signal processing electronics (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable electronic device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for monitoring data, the method comprising:
acquiring resource index data of a target resource type through a plug-in;
sending the resource index data to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow;
and processing the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data.
2. The method of claim 1, wherein prior to obtaining the resource indicator data for the target resource type, further comprising:
when the situation that the plug-in is started is monitored, reporting monitoring configuration information corresponding to the plug-in to the monitoring center, so that the monitoring center carries out monitoring configuration on resource index data collected by the plug-in based on the monitoring configuration information.
3. The method of claim 2, wherein reporting the monitoring configuration information corresponding to the plug-in to the monitoring center comprises:
and reporting the target resource type corresponding to the plug-in to the monitoring center so that the monitoring center calls a plug-in interface corresponding to the target resource type to acquire a plug-in acquisition total data list.
4. The method of claim 2, wherein after reporting the monitoring configuration information corresponding to the plug-in to the monitoring center, the method further comprises:
if monitoring that the monitoring configuration information corresponding to the plug-in is changed, reporting the changed monitoring configuration information to the monitoring center again, so that the monitoring center updates the monitoring configuration of the target resource type based on the changed monitoring configuration information.
5. The method of claim 1, wherein the method further comprises:
and reporting the target alarm data to a third-party monitoring center through the plug-in interface so that the third-party monitoring center monitors the resource index data.
6. The method of claim 1, wherein the processing the resource indicator data based on the service processing flow corresponding to the plug-in interface to obtain target monitoring data further comprises:
and comparing the resource index data with a pre-stored full data list to obtain abnormal data, and using the abnormal data as the target monitoring data, wherein the full data list comprises index data of all equipment monitored by the plug-in.
7. The method of claim 1, wherein the method further comprises:
establishing communication connection between the plug-in and the monitoring center based on a heartbeat mechanism;
and monitoring whether the plug-in receives the heartbeat packet sent by the monitoring center, and if not, restarting the plug-in.
8. A data monitoring apparatus, the apparatus comprising:
the acquisition module is used for acquiring resource index data of the target resource type through the plug-in;
the sending module is used for sending the resource index data to a predefined plug-in interface, wherein the plug-in interface is uniformly defined based on resource types corresponding to a plurality of different plug-ins, and the plug-in interface corresponds to a business processing flow;
and the control module is used for processing the resource index data based on a service processing flow corresponding to the plug-in interface to obtain target monitoring data, and reporting the target monitoring data to a monitoring center through the plug-in interface so that the monitoring center monitors the resource index data.
9. An electronic device, comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the electronic device to perform the steps of the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011583397.3A 2020-12-28 2020-12-28 Data monitoring method and device, electronic equipment and storage medium Active CN112667474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011583397.3A CN112667474B (en) 2020-12-28 2020-12-28 Data monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011583397.3A CN112667474B (en) 2020-12-28 2020-12-28 Data monitoring method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112667474A true CN112667474A (en) 2021-04-16
CN112667474B CN112667474B (en) 2022-08-05

Family

ID=75411278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011583397.3A Active CN112667474B (en) 2020-12-28 2020-12-28 Data monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112667474B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494622A (en) * 2018-03-13 2018-09-04 新华三云计算技术有限公司 Monitoring rules configuration method, device and server
CN110661659A (en) * 2019-09-23 2020-01-07 上海艾融软件股份有限公司 Alarm method, device and system and electronic equipment
CN111464336A (en) * 2020-03-13 2020-07-28 南京南瑞信息通信科技有限公司 High-concurrency data processing method and system based on electric power communication machine room

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494622A (en) * 2018-03-13 2018-09-04 新华三云计算技术有限公司 Monitoring rules configuration method, device and server
CN110661659A (en) * 2019-09-23 2020-01-07 上海艾融软件股份有限公司 Alarm method, device and system and electronic equipment
CN111464336A (en) * 2020-03-13 2020-07-28 南京南瑞信息通信科技有限公司 High-concurrency data processing method and system based on electric power communication machine room

Also Published As

Publication number Publication date
CN112667474B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
EP3188066B1 (en) A method and an apparatus for managing an application
RU2635237C2 (en) Method and device for deleting intelligent script
JP6072362B2 (en) Application program processing method, apparatus, program, and storage medium
RU2633189C2 (en) Method and device to provide compatibility of application for router control of and built-in router software
CN106919629B (en) Method and device for realizing information screening in group chat
KR20160034839A (en) Method and device for back up file
US11797218B2 (en) Method and device for detecting slow node and computer-readable storage medium
CN111125388B (en) Method, device and equipment for detecting multimedia resources and storage medium
CN112667474B (en) Data monitoring method and device, electronic equipment and storage medium
CN106354595B (en) Mobile terminal, hardware component state detection method and device
CN113067757B (en) Information transmission and storage method, device and medium
CN106776204B (en) Method and device for determining power consumption application
CN113934452B (en) Data processing method and device, electronic equipment and storage medium
CN111241134B (en) Data processing method and device
CN112068975B (en) Information processing method and device
CN113946346B (en) Data processing method and device, electronic equipment and storage medium
CN114416085A (en) Data processing method and device, electronic equipment and storage medium
CN114416084B (en) Data processing method and device, electronic equipment and storage medium
CN114416218B (en) Data processing method and device, electronic equipment and storage medium
CN110311968B (en) Method and device for loading file in streaming mode and intelligent equipment
CN112506628B (en) Agent program management method, device, computer equipment and storage medium
CN107463414B (en) Application installation method and device
CN114138289A (en) Component issuing method and device, electronic equipment and storage medium
CN117573234A (en) Software package uninstallation management method and device, electronic equipment and storage medium
CN114416220A (en) Data processing method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant