Data reporting method, service analysis method and device
By collecting and storing observation data in the business system and selecting reporting strategies based on operational information, the problem of difficulty in obtaining business service observation data is solved, and flexible monitoring of business services and efficient data reporting are achieved.
Patent Information
- Application Number
- CN202510804585.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-06-16
AI Technical Summary
In business systems, it is difficult to flexibly obtain observation data of business services, resulting in poor monitoring results. In particular, due to the uncertain operation time, uncertain operation time and unstable operation cycle, it is difficult to collect observation data.
Collect observation data of business services in the business system and store it in the preset storage. Determine the information reporting strategy based on the operation information of the business service. Read the information from the preset storage through the collector and report it to the observation platform, including strategies such as end time point reporting, real-time reporting and periodic reporting.
It enables flexible monitoring of business services, ensures the acquisition of complete and accurate observation data, reduces interference with business systems, and improves the effectiveness and timeliness of monitoring.
Smart Images

Figure CN120358160B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and in particular, to a data reporting method and a service analysis method and device. BACKGROUND
[0002] In the running process of a business system, observation data of a business service in the business system is often acquired to monitor the running condition of the business service. Some business services have characteristics such as uncertain running duration, uncertain running time point, and unstable running period, which makes it difficult for an observer to determine a specific time point for collecting the observation data. For example, the observer collects the observation data of the business service, but finds that the business service has run out. Therefore, it is difficult for the observer to flexibly acquire the observation data of the business service, which affects the normal monitoring of the business service. SUMMARY
[0003] Therefore, the embodiments of the present application provide a data reporting method and a service analysis method and device, which can flexibly acquire the observation data of the business service and realize the normal monitoring of the business service.
[0004] In a first aspect, the embodiments of the present application provide a data reporting method applied to a business system, comprising:
[0005] Collecting observation data of a business service in the business system and storing the collected observation data in a preset storage;
[0006] Determining running information of the business service and determining an information reporting strategy according to the running information;
[0007] According to the reporting strategy, calling a collector in a network domain of the business system to read the observation data from the preset storage and report the read observation data to an observation platform.
[0008] Optionally, determining the information reporting strategy according to the running information comprises:
[0009] In response to the running information representing a predicted end time point of the business service within a preset time period, determining the information reporting strategy as end time point reporting;
[0010] In response to the running information representing that the business service runs abnormally, determining the information reporting strategy as real-time reporting;
[0011] In response to the running information representing that the predicted end time point of the business service is not within the preset time period and the business service runs normally, determining the information reporting strategy as periodic reporting.
[0012] Optionally, the information reporting strategy is end time point reporting.
[0013] According to the reporting strategy, the collector in the network domain of the business system is called to make the collector read the observation data from the preset storage and report the read observation data to the observation platform, including:
[0014] monitoring running information of the business service;
[0015] In response to monitoring that the running information represents that the business service runs to the end, the collector in the network domain of the business system is called to make the collector read the observation data from the preset storage and report the read observation data to the observation platform.
[0016] Optionally, according to the reporting strategy, the collector in the network domain of the business system is called to make the collector read the observation data from the preset storage and report the read observation data to the observation platform, including:
[0017] According to the reporting strategy, the collector in the network domain of the business system is called to make the collector read the observation data from the preset storage;
[0018] processing the read observation data;
[0019] reporting the processed observation data to the observation platform by using a message middleware.
[0020] Optionally, the observation data of the business service in the business system is collected and the collected observation data is stored in the preset storage, including:
[0021] a plug-in program interface is called to collect the observation data of the business service in the business system; wherein the observation data has a data structure defined by the plug-in program;
[0022] the collected observation data is stored in a local memory.
[0023] In a second aspect, an embodiment of the present application provides a service analysis method applied to an observation platform, including:
[0024] observation data of a business service in a business system sent by a collector is received; wherein the collector is deployed in a network domain of the business system; the business system executes the above data reporting method;
[0025] according to the obtained observation data, the running condition of the business service is analyzed and processed.
[0026] In a third aspect, an embodiment of the present application provides a data reporting device applied to a business system, including:
[0027] a data collection module, configured to collect observation data of a business service in a business system and store the collected observation data in a preset storage;
[0028] A policy determining module is configured to determine operation information of the service, and determine an information reporting policy according to the operation information.
[0029] A data reporting module is configured to call the collector in the network domain of the business system according to the reporting policy, so that the collector reads the observation data from the preset storage, and reports the read observation data to the observation platform.
[0030] In a fourth aspect, an embodiment of the present application provides a service analysis device applied to an observation platform, and comprising:
[0031] A data receiving module is configured to receive observation data of a service in a business system sent by a collector, wherein the collector is deployed in a network domain of the business system; and the business system executes the data reporting method.
[0032] An analysis processing module is configured to analyze and process the operation of the service according to the obtained observation data.
[0033] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising:
[0034] One or more processors;
[0035] A storage device is configured to store one or more programs, when the one or more programs are executed by the one or more processors, so that the one or more processors implement the method of any of the above embodiments.
[0036] In a sixth aspect, an embodiment of the present application provides a computer readable medium, which stores a computer program, and the program is executed by a processor to implement the method of any of the above embodiments.
[0037] An embodiment of the above application has the following advantages or beneficial effects: observation data of a service in a business system is collected, and the collected observation data is stored in a preset storage. According to operation information of the service, an information reporting policy is determined. According to the reporting policy, a collector in a network domain of the business system is called to read the observation data from the preset storage, and the read observation data is reported to an observation platform.
[0038] The reporting strategy is determined according to the running information of the business service. For example, if the running information represents that the predicted end time point of the business service is within a preset time period, the information reporting strategy is determined as end time point reporting. That is, in the case that the business service is about to be executed, the business service is monitored, and once the running end of the business service is monitored, the collector is called to report the observation data to the observation platform. If the running information represents that the predicted end time point of the business service is not within the preset time period, the information reporting strategy is determined as periodic reporting. That is, in the case that the distance between the preset end time point and the current time point is far, the observation data is reported in a preset period. Therefore, the scheme of the embodiment of the present application can flexibly obtain the observation data of the business service according to the running information of the business service, and realize the normal monitoring of the business service.
[0039] Further effects of the above-described non-conventional optional mode will be described in the following in conjunction with the specific embodiments. BRIEF DESCRIPTION OF DRAWINGS
[0040] The accompanying drawings are used to better understand the present application, and do not constitute undue limitations on the present application. Among them:
[0041] Figure 1 is a flowchart of a data reporting method provided by a first embodiment of the present application;
[0042] Figure 2 is a flowchart of a data reporting method provided by a second embodiment of the present application;
[0043] Figure 3 is a flowchart of a service analysis method provided by a third embodiment of the present application;
[0044] Figure 4 is a structural diagram of a data reporting system provided by a fourth embodiment of the present application;
[0045] Figure 5 is a flowchart of a data reporting method provided by a fifth embodiment of the present application;
[0046] Figure 6 is a structural diagram of a data reporting device provided by an embodiment of the present application;
[0047] Figure 7 is a structural diagram of a service analysis device provided by an embodiment of the present application;
[0048] Figure 8 is a structural diagram of a computer system of a terminal device or a server suitable for realizing the embodiments of the present application. DETAILED DESCRIPTION
[0049] Exemplary embodiments of the present application are described herein with reference to the accompanying drawings, which are cited by way of example only. The present application is therefore not limited to the embodiments described herein, but encompasses all possible embodiments within the scope of the present application. Accordingly, persons of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, for the sake of brevity and clarity, any description of well-known functions and constructions will be omitted when such descriptions will obscure the related description.
[0050] The acquisition, transmission, storage, use, processing, etc. of data in the technical solutions of the present application comply with relevant provisions of national laws and regulations.
[0051] It should be noted that in the embodiments of the present application, some industry existing solutions, components, models, etc. may be mentioned, which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0052] Figure 1 is a flow diagram of a data reporting method provided by the first embodiment of the present application, as shown in Figure 1 The method is applied to a business system, and the method comprises the following steps.
[0053] Step 101: Collect observation data of a business service in the business system, and store the collected observation data in a preset storage.
[0054] The observation data and the preset storage can be set according to business requirements. The observation data can include index data, etc. The preset storage can include a preset memory, a designated cache, a preset hard disk, and a designated disk array, etc.
[0055] Preferably, the preset storage is a preset memory. Storing the observation data in the preset memory can achieve fast unloading of the observation data and reduce the impact on the normal operation of the business system.
[0056] Step 102: Determine the running information of the business service, and determine the information reporting strategy according to the running information.
[0057] The running information is used to represent the running state of the business service. The running information can include a starting running time point, a preset ending time point, a preset running duration, a current running duration, and a running state of the business service. The running state can include running, running exception, and running end, etc. The reporting strategy can include real-time reporting, periodic reporting, etc. A mapping relationship between the running information and the reporting strategy is preset in the system. According to the mapping relationship, the reporting strategy of the information is determined.
[0058] In one embodiment of the present application, according to the operation information, the information reporting strategy is determined, including: in response to the operation information representing that the predicted end time point of the business service is within the preset time period, determining the information reporting strategy as end time point reporting; in response to the operation information representing that the business service is running abnormally, determining the information reporting strategy as real-time reporting; and in response to the operation information representing that the predicted end time point of the business service is not within the preset time period and the business service is running normally, determining the information reporting strategy as periodic reporting.
[0059] The preset time period can be set according to the business demand. The preset time period is a time period between the current time point and the future time point. For example, the preset time period can be a time period with the current time point as the start time point and a duration of ten minutes. The preset time period can also be a time period with the current time point as the start time point and a duration of half an hour, etc.
[0060] If the operation information represents that the predicted end time point of the business service is within the preset time period, the information reporting strategy is determined as end time point reporting. That is, in the case that the business service is about to be executed, the business service is monitored, and once the end of the business service is monitored, the collector is called to report the observation data to the observation platform.
[0061] If the operation information represents that the business service is running abnormally, the information reporting strategy is determined as real-time reporting. When the business service is running abnormally, the observation data is reported in real time or with a shorter period, so that the relevant personnel can obtain the observation data in time through the observation platform and troubleshoot the abnormal situation, etc.
[0062] If the operation information represents that the predicted end time point of the business service is not within the preset time period and the business service is running normally, the information reporting strategy is determined as periodic reporting. That is, in the case that the preset end time point is far away from the current time point and the business service is running normally, the observation data is reported with a preset period.
[0063] Step 103: According to the reporting strategy, the collector in the network domain of the business system is called to read the observation data from the preset storage and report the read observation data to the observation platform.
[0064] The collector is deployed in the network domain of the business system, which strengthens the network security control of the business system. The collector can access in a secure authentication manner to avoid the problem that the business service is directly disturbed by external programs. Based on the agreed protocol, the collector reads the observation data from the preset storage for reporting.
[0065] In an embodiment of the present application, the information reporting strategy is end time point reporting; according to the reporting strategy, the collector in the network domain of the business system is invoked to enable the collector to read the observation data from the preset storage and report the read observation data to the observation platform, comprising: monitoring the running information of the business service; in response to monitoring that the running information indicates that the business service is running, the collector in the network domain of the business system is invoked to enable the collector to read the observation data from the preset storage and report the read observation data to the observation platform.
[0066] If the information reporting strategy is end time point reporting, the running information of the business service is constantly monitored, and once it is monitored that the running information indicates that the business service is running, the collector is invoked to perform the last data reporting for the current service execution process. Specifically, the collector reads the observation data from the preset storage and reports the read observation data to the observation platform, so that the complete and accurate observation data is timely reported to the observation platform.
[0067] It should be noted that if the last data reporting of the collector for the current execution process is not performed, no deletion processing is performed on the observation data in the preset storage which is not reported. In response to the last data reporting of the collector being performed, a data cleaning instruction is generated to clean the observation data in the preset storage, which can ensure that the complete and accurate observation data is reported to the observation platform.
[0068] In the scheme of the embodiment of the present application, the observation data of the business service in the business system is collected and stored in the preset storage. According to the running information of the business service, the information reporting strategy is determined. According to the reporting strategy, the collector in the network domain of the business system is invoked to enable the collector to read the observation data from the preset storage and report the read observation data to the observation platform. The scheme of the embodiment of the present application selects different reporting strategies according to the running information of the business service, so that the observer can obtain the complete and accurate observation data of the business service, and the normal monitoring of the business service is realized.
[0069] In an embodiment of the present application, the observation data of the business service in the business system is collected and stored in the preset storage, comprising: invoking the program interface of the plug-in program to collect the observation data of the business service in the business system; wherein the observation data has a data structure defined by the plug-in program; and storing the collected observation data in the local memory.
[0070] Often, multiple business services need to cooperate to complete the complete function of the business system. The plug-in program is set for the business system. Each business service of the business system completes observation data collection by invoking the program interface of the plug-in program, and realizes the unification of the observation data format.
[0071] To avoid the interference of the collection of observation data on the operation of business services, the plug-in program is started in a bypass asynchronous manner, and the collected operation information is converted into observation data. In addition, the plug-in program is also responsible for connecting the local collector, and ensuring the normal reporting and abnormal processing of observation data.
[0072] Figure 2 is a flowchart of a data reporting method provided by a second embodiment of the application, as shown in the figure, the method is applied to a business system, and the method comprises the following steps. Figure 2
[0073] Step 201: Collect observation data of business services in the business system, and store the collected observation data in a preset storage.
[0074] Step 202: Determine the operation information of the business services, and determine an information reporting strategy according to the operation information.
[0075] Step 203: According to the reporting strategy, call a collector in a network domain of the business system to enable the collector to read the observation data from the preset storage.
[0076] Step 204: Process the read observation data.
[0077] After the collector reads the observation data from the preset storage, the collector can further process the observation data. The processing can include adding data attribute information, filtering the observation data, counting the observation data based on aggregation rules, setting a default value for abnormal observation values, etc. The data attribute information can include a local IP, a domain name, a process number, etc. Finally, the processed observation data is sent to an observation platform.
[0078] Step 205: Report the processed observation data to the observation platform by using a message middleware.
[0079] The collector reports data by using the message middleware. The observation platform acquires the observation data by using the message middleware. The message middleware can include Kafka, RocketMQ, Pulsar, etc. The message middleware can solve the access pressure caused by traffic peaks, and play a role in peak clipping. In addition, the message middleware can further decouple the coupling problem of interface agreement through serialization technology.
[0080] In the scheme of the embodiment of the application, according to the reporting strategy, the collector in the network domain of the business system is called to read the observation data from the preset storage, the read observation data is processed, and the processed observation data is reported to the observation platform by using the message middleware, which can reduce the operation pressure of the observation platform and improve the security of data in the business system.
[0081] Figure 3 is a flowchart of a service analysis method provided by a third embodiment of the present application, as shown in Figure 3 , the method comprises the following steps:
[0082] Step 301: receiving observation data of a business service in a business system sent by a collector; wherein the collector is deployed in a network domain of the business system.
[0083] The scheme of the embodiment of the present application is applied to an observation platform. The observation data received by the observation platform comes from a business system. The business system is used to execute the data reporting method provided by any of the above embodiments.
[0084] Step 302: analyzing and processing the running condition of the business service according to the obtained observation data.
[0085] In the scheme of the embodiment of the present application, the observation platform receives the observation data of the business service sent by the collector. The collector is deployed in the network domain of the business system, which strengthens the network security control of the business system. The observation platform analyzes and processes the running condition of the business service according to the obtained observation data, which can fully expose the internal running condition of the business system and timely find hidden problems buried in the complex architecture.
[0086] Figure 4 is a structural diagram of a data reporting system provided by a fourth embodiment of the present application. As shown in Figure 4 , the data reporting system comprises a plug-in program, a collector, a message middleware and an observation platform.
[0087] Plug-in program: each business service of the business service calls a unified plug-in program interface to realize the uniformity of the observation data format. In order to avoid interference to the running of the business service, the plug-in program is started in a bypass asynchronous manner, converts the collected running information into observation data, and saves it to the local designated memory. Before or within a preset time period after the running of the business service ends, the plug-in program actively reports the observation data. In addition, the plug-in program is also responsible for connecting the local collector and ensuring the normal reporting and abnormal processing of the observation data, etc.
[0088] Collector: the collector is deployed in the network domain of the business system, which strengthens the network security control. The collector can be set to be accessed in a secure authentication mode. According to the security requirements of the business system, the level protection level and the security authentication mode of the collector are set, so that the security of the business system is higher. The collector is located between the business system and the observation platform, which can avoid the business service being directly accessed by the external observation platform, and further ensure the security of the data in the business system.
[0089] In addition, different reporting parameters can be set in the collector for different observation platforms. The reporting parameters can include an interval period and a number threshold. If the collector fails to successfully report the data to the observation platform, the collector can reattempt to report the data to the observation platform after the interval period, until the reporting is successful or the number of reattempts exceeds the number threshold.
[0090] The collector reads the observation data from the memory designated by the local service and processes the observation data. The collector reports the data through the message middleware. The observation platform acquires the observation data through the message middleware. The message middleware can solve the access pressure caused by a traffic peak and play a role in peak shaving. In addition, the message middleware can further solve the coupling problem of the interface agreement through serialization technology.
[0091] The observation platform: After the observation platform acquires the observation data, the observation platform saves the acquired observation data in an observation database for later analysis and processing of the business service.
[0092] Figure 5 is a flowchart of a data reporting method provided by a fifth embodiment of the present application. As shown in Figure 5 For a normally running batch processing business scenario, the observation data is collected in real time by calling the plug-in program interface, and the observation data is stored in the memory to achieve fast unloading of the traffic data. The collector collects and reports according to the agreed period. If the batch processing business ends before the collection time point of the collector, the plug-in program will actively call the local interface of the collector before the service ends, report the observation data to the collector, trigger the collector to execute the active reporting process, and realize complete reporting of the observation data.
[0093] The scheme of the embodiment of the present application can realize full-life cycle observation of the business system. No matter when the business service ends, complete and accurate observation data can be collected. The plug-in program interface is called asynchronously to collect the observation data. The observation data is stored in the local memory, which can quickly unload the traffic data, ensure efficient collection of the observation data, and reduce the impact on the running of the business service. The scheme of the embodiment of the present application also realizes decoupling of the running of different business services through file and message middleware information interaction, and agreement on the data format and requirements of the observation data. In addition, the local collector is used to realize network security control, meet the security requirements of the core business system, and make the data reporting system actually land.
[0094] Figure 6 is a structural diagram of a data reporting device provided by an embodiment of the present application, which is applied to a business system, as shown in Figure 6 The device includes:
[0095] The data collection module 601 is configured to collect observation data of the business service in the business system, and store the collected observation data in a preset storage.
[0096] The policy determination module 602 is configured to determine running information of the business service, and determine an information reporting policy according to the running information.
[0097] The data reporting module 603 is configured to call the collector in the network domain of the business system according to the reporting policy, so that the collector reads the observation data from the preset storage, and reports the read observation data to the observation platform.
[0098] Optionally, the policy determination module 602 is specifically configured to:
[0099] In response to the running information representing that a predicted end time point of the business service is within a preset time period, the information reporting policy is determined to be reported at the end time point.
[0100] In response to the running information representing that the business service runs abnormally, the information reporting policy is determined to be reported in real time.
[0101] In response to the running information representing that the predicted end time point of the business service is not within the preset time period, and the business service runs normally, the information reporting policy is determined to be reported periodically.
[0102] Optionally, the information reporting policy is to be reported at the end time point.
[0103] The data reporting module 603 is specifically configured to:
[0104] Monitor the running information of the business service.
[0105] In response to monitoring that the running information represents that the business service runs to an end, the collector in the network domain of the business system is called, so that the collector reads the observation data from the preset storage, and reports the read observation data to the observation platform.
[0106] Optionally, the data reporting module 603 is specifically configured to:
[0107] According to the reporting policy, the collector in the network domain of the business system is called, so that the collector reads the observation data from the preset storage.
[0108] The read observation data is processed.
[0109] The processed observation data is reported to the observation platform by using a message middleware.
[0110] Optionally, the data collection module 601 is specifically configured to:
[0111] Call the plug-in program interface, collect the observation data of the business service in the business system; wherein, the observation data has the data structure defined by the plug-in program;
[0112] Store the collected observation data in the local memory.
[0113] Figure 7 is a structural schematic diagram of a service analysis device provided by an embodiment of the present application, applied to an observation platform, as Figure 7 shown, the device comprises:
[0114] The data receiving module 701 is configured to receive the observation data of the business service in the business system sent by the collector; wherein, the collector is deployed in the network domain of the business system; the business system executes the data reporting method described above;
[0115] The analysis processing module 702 is configured to analyze and process the running condition of the business service according to the obtained observation data.
[0116] An embodiment of the present application provides an electronic device, comprising:
[0117] One or more processors;
[0118] A storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, so that the one or more processors implement the method of any one of the above embodiments.
[0119] An embodiment of the present application provides a computer program product comprising a computer program, which, when executed by a processor, implements the data reporting method in the embodiment of the present application.
[0120] Reference will be made to Figure 8 , which shows a structural schematic diagram of a computer system 800 of a terminal device suitable for being used to implement the embodiments of the present application. Figure 8 The terminal device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present application.
[0121] As Figure 8 shown, the computer system 800 comprises a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the programs stored in a read-only memory (ROM) 802 or the programs loaded from a storage portion 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802 and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0122] The following components are connected to the I / O interface 805: an input part 806 including a keyboard, a mouse, etc.; an output part 807 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage part 808 including a hard disk, etc.; and a communication part 809 including a network interface card such as a LAN card, a modem, etc. The communication part 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 810 as necessary, so that a computer program read out therefrom is installed in the storage part 808 as necessary.
[0123] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-described functions defined in the system of the present disclosure are executed.
[0124] It should be noted that the computer-readable medium shown in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or component. In the present application, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or component. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0125] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment, or a portion of code that contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders than that shown in the figures. For example, two blocks that are shown in succession can actually be executed substantially concurrently, or they can sometimes be executed in reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams or flowcharts, and combinations of blocks in the block diagrams or flowcharts, can be implemented by a dedicated hardware-based system that performs specified functions or operations, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0126] The modules described in the embodiments of the present application can be implemented in the form of software or hardware. The modules described can be arranged in a processor, for example, can be described as a data collection module, a policy determination module and a data reporting module. In some cases, the names of these modules do not constitute a limitation on the modules themselves, for example, the data collection module can also be described as a module that collects observation data of a business service in a business system and stores the collected observation data in a preset storage.
[0127] As another aspect, the present application also provides a computer readable medium, which can be included in the device described in the above embodiments, or can exist independently without being assembled into the device. The computer readable medium carries one or more programs, which, when executed by the device, cause the device to include:
[0128] collecting observation data of a business service in a business system and storing the collected observation data in a preset storage;
[0129] determining running information of the business service and determining an information reporting policy according to the running information;
[0130] calling a collector in a network domain of the business system according to the reporting policy, so that the collector reads the observation data from the preset storage and reports the read observation data to an observation platform.
[0131] According to the technical solution of the embodiments of the present application, observation data of a business service in a business system is collected and stored in a preset storage. According to the running information of the business service, an information reporting policy is determined. According to the reporting policy, a collector in a network domain of the business system is called, so that the collector reads the observation data from the preset storage and reports the read observation data to an observation platform.
[0132] The reporting policy is determined according to the running information of the business service. For example, if the running information represents that a predicted end time point of the business service is within a preset time period, the information reporting policy is determined to be reported at the end time point. That is, in the case that the business service is about to be executed, the business service is monitored, and once the running of the business service is monitored to be ended, the collector is called to report the observation data to the observation platform. If the running information represents that the predicted end time point of the business service is not within the preset time period, the information reporting policy is determined to be periodically reported. That is, in the case that the distance between the preset end time point and the current time point is far, the observation data is reported at a preset period. Therefore, according to the running information of the business service, the embodiments of the present application select different reporting policies, so that the observer can obtain complete and accurate observation data of the business service, and the normal monitoring of the business service is realized.
[0133] The foregoing detailed description has set forth various embodiments of the devices and / or processes via the use of specific terminology. However, embodiments thereof can be practiced with the exact description not being presented in detail. The term "device" should be understood to encompass devices operating in various modes, such as active mode, sleep mode, hibernate mode, and the like. The terms "coupled" and "connected," along with derivatives thereof, can be used. It should be understood that these terms are not intended as synonyms for each other. Rather, particular circuitry that can be said to be coupled to, or connected with, other circuitry can be some of the other circuitry that can communicate in some way, while other circuitry can be some of the other circuitry that can not be in communication with that particular circuitry.
Claims
1. A data reporting method, characterized in that: Applied to business systems, including: Collecting observation data of business services in the business system and storing the collected observation data in a preset storage; Determining the operation information of the business service and determining an information reporting strategy based on the operation information; According to the reporting strategy, calling a collector in the network domain of the business system, so that the collector reads the observation data from the preset storage, and reports the read observation data to the observation platform; The determining of an information reporting strategy based on the operation information includes: In response to the operation information indicating that the predicted end time point of the business service is within a preset time period, determining that the information reporting strategy is end time point reporting; In response to the operation information indicating that the business service is operating abnormally, determining that the information reporting strategy is real-time reporting; In response to the operation information indicating that the predicted end time point of the business service is not within a preset time period and the business service is operating normally, the information reporting strategy is determined to be periodic reporting.
2. The method according to claim 1, characterized in that The information reporting strategy is reporting at the end time point; The step of calling a collector in the network domain of the business system according to the reporting strategy so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform includes: Monitoring the operational information of the business services; In response to monitoring that the operation information indicates that the business service operation is completed, calling a collector in the network domain of the business system to enable the collector to read observation data from the preset storage and report the read observation data to the observation platform.
3. The method according to claim 1, characterized in that The step of calling a collector in the network domain of the business system according to the reporting strategy so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform includes: According to the reporting strategy, calling a collector in the network domain of the business system so that the collector reads the observation data from the preset storage; Processing the read observation data; Utilize message middleware to report the processed observation data to the observation platform.
4. The method according to claim 1, wherein The collecting observation data of the business services in the business system and storing the collected observation data in a preset storage includes: Calling an instrumentation program interface to collect observation data of business services in the business system; wherein the observation data has a data structure defined by the instrumentation program; Store the collected observation data in local memory.
5. A service analysis method, characterized in that: Applied to observation platforms, including: Receiving observation data of a business service in a business system sent by a collector; wherein the collector is deployed in a network domain of the business system; the business system executes the method according to any one of claims 1 to 4; The operation status of the business service is analyzed and processed based on the acquired observation data.
6. A data reporting device, characterized in that: Applied to business systems, including: A data collection module is used to collect observation data of business services in the business system and store the collected observation data in a preset storage; A policy determination module, configured to determine the operation information of the business service and determine an information reporting policy based on the operation information; A data reporting module is used to call a collector in the network domain of the business system according to the reporting strategy, so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform; wherein the collector adopts a secure authentication method for access; The strategy determination module is specifically used to: In response to the operation information indicating that the predicted end time point of the business service is within a preset time period, determining that the information reporting strategy is end time point reporting; In response to the operation information indicating that the business service is operating abnormally, determining that the information reporting strategy is real-time reporting; In response to the operation information indicating that the predicted end time point of the business service is not within a preset time period and the business service is operating normally, the information reporting strategy is determined to be periodic reporting.
7. A service analysis device, characterized in that: Applied to observation platforms, including: A data receiving module, configured to receive observation data of a business service in a business system sent by a collector; wherein the collector is deployed in a network domain of the business system; and the business system executes the method according to any one of claims 1 to 4; The analysis and processing module is used to analyze and process the operation status of the business service based on the acquired observation data.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
9. A computer readable medium having a computer program stored thereon, characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Data collection and reporting method and device of mobile device
CN105656714A