Service quality monitoring method and device, equipment, storage medium and program product

By integrating tracking tools in the service to collect and store information related to business execution, the problem of low accuracy of service quality monitoring in the existing technology is solved, and accurate monitoring and problem location of the actual operation of the service are achieved.

CN118820060APending Publication Date: 2024-10-22CHINA MOBILE M2M +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311817364.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In existing service quality monitoring solutions, probes can only simulate user behavior in specific scenarios and cannot monitor real user behavior, resulting in low accuracy of service quality monitoring.

Method used

By integrating tracking tools in the service, we collect business execution-related information, convert it into standard format log information, and store it in the log directory to monitor the actual operation of the service.

Benefits of technology

It improves the accuracy of service quality monitoring, enables intuitive monitoring of the actual operation of services, and enhances the convenience of problem location and resolution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820060A_ABST
    Figure CN118820060A_ABST
Patent Text Reader

Abstract

The invention discloses a service quality monitoring method and device, equipment, a storage medium and a program product, and belongs to the technical field of computers. The method comprises the steps that first burying point information of a first service is collected through a first burying point tool, and the first burying point tool is integrated in the first service; the first burying point information is business execution related information collected by a burying point in the first service; processing the first burying point information according to a first information format through the first burying point tool, and generating first log information of the first information format corresponding to the first burying point information; the first log information is stored in a first point burying log file in a first log catalogue through the first point burying tool, and the first log catalogue is used for storing the point burying log file. According to the invention, the accuracy of service quality monitoring can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a service quality monitoring method, device, equipment, storage medium and program product. Background Art

[0002] As digitalization is being promoted in depth in various places, microservice architecture has been applied to the vast majority of software systems. As business continues to grow, system services are increasing, and the architecture is getting larger and larger. When service problems occur, it becomes increasingly difficult to troubleshoot them. How to quickly discover and locate service problems has become an important research topic, and service quality monitoring is one of the important ways.

[0003] The goal of service quality monitoring is to monitor the operating status and quality of a running service or a function within a service. When a service is not running normally or has low quality, the problem can be discovered quickly and located quickly through the information collected by monitoring.

[0004] In the existing service quality monitoring solution, a dial-up probe method is adopted. Through the probe program deployed outside the system, user behavior is simulated to detect whether the business service operation status is normal. This solution can decouple the monitoring program from the business without imposing any burden on the system. However, the probe can only simulate user behavior in specific scenarios and cannot monitor the behavior of real users. The accuracy of service quality monitoring is low. Summary of the invention

[0005] The embodiments of the present application provide a service quality monitoring method, apparatus, device, storage medium and program product, which can solve the problem of low accuracy of service quality monitoring.

[0006] In a first aspect, an embodiment of the present application provides a method for monitoring quality of service, the method comprising:

[0007] Collecting first tracking information of the first service through a first tracking tool, wherein the first tracking tool is integrated in the first service; the first tracking information is business execution related information collected by tracking in the first service;

[0008] Processing the first burying point information according to a first information format by the first burying point tool to generate first log information in the first information format corresponding to the first burying point information;

[0009] The first log information is stored in a first burying point log file in a first log directory through the first burying point tool, wherein the first log directory is used to store burying point log files.

[0010] In a second aspect, an embodiment of the present application provides a service quality monitoring device, the device comprising:

[0011] A collection module, configured to collect first burying point information of a first service through a first burying point tool, wherein the first burying point tool is integrated in the first service; the first burying point information is business execution related information collected by the burying points in the first service;

[0012] A first processing module, configured to process the first burying point information according to a first information format by using the first burying point tool, and generate first log information in the first information format corresponding to the first burying point information;

[0013] The first storage module is used to store the first log information into a first burying point log file in a first log directory through the first burying point tool, wherein the first log directory is used to store burying point log files.

[0014] In a third aspect, an embodiment of the present application provides a service quality monitoring device, the device comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the service quality monitoring method as described in the first aspect is implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the service quality monitoring method described in the first aspect is implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the service quality monitoring method as described in the first aspect.

[0017] In the embodiment of the present application, the business execution related information of the service can be collected by the tracking point in the service and collected by the tracking point tool integrated in the service. After collecting the tracking point information of the service, the tracking point tool can convert the tracking point information into log information in the first information format and store the log information in the tracking point log file in the log directory. In this way, the actual operation of the service can be intuitively monitored through the tracking point log file, thereby improving the accuracy of service quality monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0019] Figure 1This is one of the flow charts of the service quality monitoring method provided in the embodiment of the present application;

[0020] Figure 2 is a structural diagram of a service quality monitoring system provided in an embodiment of the present application;

[0021] Figure 3 This is the second flowchart of the service quality monitoring method provided in the embodiment of the present application;

[0022] Figure 4 is a structural diagram of a service quality monitoring device provided in an embodiment of the present application;

[0023] Figure 5 It is a structural diagram of the service quality monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0025] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0026] The following is a detailed description of the service quality monitoring method provided by the embodiment of the present application through some embodiments and their application scenarios in combination with the accompanying drawings.

[0027] See also Figure 1 , Figure 1 This is one of the flow charts of the service quality monitoring method provided in the embodiment of the present application.

[0028] like Figure 1As shown, the service quality monitoring method may include the following steps:

[0029] Step 101: collect first tracing information of a first service through a first tracing tool, wherein the first tracing tool is integrated in the first service; the first tracing information is business execution related information collected by the tracing in the first service.

[0030] In an embodiment of the present application, for each service in the system, a tracking point can be performed on the service to collect business execution related information of the service through the tracking point, and the business execution related information of the service collected by the tracking point can become the tracking point information; in addition, a tracking point tool can also be integrated into the service to collect the tracking point information through the tracking point tool.

[0031] The first service may be any service in the system. In some embodiments, the tracking tool may be a recording software development kit (SDK), but is not limited thereto.

[0032] Step 102: Process the first burying point information in a first information format through the first burying point tool to generate first log information in the first information format corresponding to the first burying point information.

[0033] After collecting the first tracking information of the first service, the first tracking tool can convert the first tracking information into a first information format to obtain first log information in the first information format, thereby achieving the standardization of the log format.

[0034] In specific implementation, the information parameters included in the first information format can be determined first, and then the corresponding content of each information parameter can be obtained from the first burial point information, and the first log information can be generated according to the first information format.

[0035] The first information format may be predefined. In some embodiments, the first information format may be predefined by a record event (RecordEvent), and the RecordEvent may be created at the business code where the embedding point is required.

[0036] The embodiments of the present application do not limit the specific form of the first information format. In some embodiments, the first information format may include at least one of the following: the service to which the tracking information belongs, the business to which the tracking information belongs, the monitoring indicators of the business to which the tracking information belongs, the execution time, the execution status, the execution information, the execution tag, etc. The execution status can be success or failure; the execution tag can be understood as an additional attribute tag, which can be customized; the execution information can be used to determine the reason for the success or failure of the execution.

[0037] It is worth noting that the information formats used by different services in the system can be the same or different, which can be determined based on actual needs and is not limited in this regard in the embodiments of the present application.

[0038] Step 103: Use the first tracing tool to store the first log information in a first tracing log file in a first log directory, wherein the first log directory is used to store tracing log files.

[0039] In an embodiment of the present application, a log (logs) directory for storing the tracking log files of the service can be created under the folder of each service. In some embodiments, the log directory of each service can be created by a tracking tool integrated into the service, but is not limited to this.

[0040] The first log directory is the log directory of the first service. After obtaining the first log information, the first tracking tool can store the first log information in the first tracking log file of the first log directory, so that the tracking log file can be separated from the system log file, which is convenient for querying the tracking log file.

[0041] In the service quality monitoring method of this embodiment, the business execution related information of the service can be collected by the tracking points in the service and collected by the tracking point tool integrated in the service. After collecting the tracking point information of the service, the tracking point tool can convert the tracking point information into log information of the first information format and store the log information in the tracking point log file in the log directory. In this way, the actual operation of the service can be intuitively monitored through the tracking point log file, thereby improving the accuracy of service quality monitoring.

[0042] In some embodiments, the first log information includes a first execution status of a business to which the first tracking point information belongs;

[0043] The storing the first log information in a first burying point log file in a first log directory by the first burying point tool includes:

[0044] Determine, by the first tracking tool, a first storage file type corresponding to the first log information based on the first execution state;

[0045] The first log information is stored in a first burying point log file of the first storage file type in a first log directory by using the first burying point tool;

[0046] Among them, when the first execution status is successful, the first storage file type is a correct log file used to store log information of the execution status being successful; when the first execution status is failed, the first storage file type is an error log file used to store log information of the execution status being failed.

[0047] In this embodiment, the log information may include but is not limited to the execution status of the business to which the corresponding tracking point information belongs, and the storage location of the log information may be determined based on the execution status included therein.

[0048] The log directory may include two types of storage files, one of which is a correct log file, which is used to store log information with a successful execution status, and the other is an error log file, which is used to store log information with a failed execution status. In this way, the log information of successful execution and the log information of failed execution can be separated, so that service problems can be easily discovered and located, thereby improving the reliability of service quality monitoring.

[0049] In a specific implementation, after obtaining the first log information, the first tracking tool can determine the first storage file type corresponding to the first log information based on the execution state of the first log information, and then store the first log information in the tracking log file under the first storage file type.

[0050] Through the above method, the log information can be stored in a point-in-time log file under the storage file type corresponding to its execution status based on the execution status of the log information. In this way, the log information of successful execution and the log information of failed execution can be separated, further improving the convenience of discovering and locating service problems.

[0051] In some embodiments, the file name of the burying point log file under the correct log file includes a first identifier, and the first identifier indicates that the burying point log file is used to store log information with a successful execution status; the file name of the burying point log file under the error log file includes a second identifier, and the second identifier indicates that the burying point log file is used to store log information with a failed execution status;

[0052] After determining the first storage file type corresponding to the first log information based on the first execution state, and before storing the first log information in the first burying log file of the first storage file type in the first log directory by the first burying tool, the method further includes:

[0053] Identify, by the first burying tool, burying log files under the first storage file type in the first log directory based on the file names of the burying log files in the first log directory;

[0054] Compare, by the first tracking tool, a file size of a tracking log file under the first storage file type in the first log directory with a first file size, wherein the first file size is defined by a first rollover policy corresponding to the first storage file type;

[0055] The storing the first log information in a first burying log file of the first storage file type in a first log directory by the first burying tool includes:

[0056] When the file sizes of the burial point log files under the first storage file type in the first log directory all reach the first file size, the first burial point log file under the first storage file type is created by the first burial point tool, and an identifier corresponding to the first storage file type is added to the first burial point log file.

[0057] In this embodiment, the name of the burrowing point log file under different storage file types may include an identifier for indicating the storage file type to which it belongs. In this way, the storage file type to which it belongs can be distinguished by the identifier of the burrowing point file name.

[0058] This embodiment does not limit the specific forms of the first identifier and the second identifier. In some implementations, the first identifier may be success, and the second identifier may be failure, but is not limited thereto.

[0059] In some embodiments, the name of the tracking log file can be generated according to a predefined log file name template. In some implementations, the log file name template can be defined by the FileNamePattern of the tracking tool, but is not limited to this. In some implementations, the log file name template can include the name of the service to which the log information stored in the log file belongs, the storage date of the log information stored in the log file, and an identifier for indicating the type of storage file to which it belongs. In this embodiment, log information of the same execution status of the same service and the same date can be stored in the same tracking log file, so that service problems can be easily and quickly discovered and located.

[0060] In this embodiment, the tracking tool can define a rollover policy (RollingPolicy) for each storage file type. The rollover policy corresponding to the correct log file can be called SuccessRollingPolicy, and the rollover policy corresponding to the error log file can be called FailureRollingPolicy. The rollover policy corresponding to each storage file type can add a file name-based identifier to perform log rollover on the basis of implementing rollover based on file size.

[0061] In specific implementation, after obtaining the execution status of the first log information and before storing the first log information, the tracking tool can first identify all tracking log files under the first storage file type corresponding to the execution status of the first log information in the first log directory through the names of the tracking log files that already exist in the first log directory. After that, the file sizes of these tracking log files are compared with the first file size defined by the rollover strategy corresponding to the first storage file type, and then determine whether a new tracking log file needs to be created to store the first log information.

[0062] Specifically, if the file sizes of these burying point log files all reach the first file size, a rollover operation needs to be performed to create a new burying point log file, and an identifier corresponding to the first storage file type is added to the new burying point log file. If there is a burying point log file whose file size does not reach the first file size among these burying point log files, the first log information can be stored in the burying point log file.

[0063] Furthermore, the rollover strategy corresponding to each storage file type may also include parameters such as log rollover by day, maximum log storage time, total storage size of correct log files or error log files, etc. In this way, the flexibility of log rollover can be enriched. By defining the maximum log storage time, the timed cleanup of embedded log files can be achieved, thereby improving the resource utilization of the log directory.

[0064] Through the above method, after obtaining the first storage file type corresponding to the first log information, a flip operation can be performed based on the first flip strategy corresponding to the first storage file type, and an identifier indicating the corresponding storage file type can be added to the tracking log file. In this way, the accuracy of storage file type identification can be improved.

[0065] In some embodiments, after the first burying point information is processed according to the first information format by the first burying point tool to generate first log information in the first information format corresponding to the first burying point information, and before the first burying point tool stores the first log information in the first burying point log file in the first log directory, the method further includes:

[0066] Outputting an event through a memory cache log of the first tracking tool, wherein the log output event includes the transmission of the first log information;

[0067] The storing the first log information in a first burying point log file in a first log directory by the first burying point tool includes:

[0068] When the first burying tool exits, the first log information is stored in the first burying log file in the first log directory through the memory of the first burying tool, and the log output event is closed through the stop work hook of the first burying tool.

[0069] In this embodiment, after the first tracking tool obtains the first log information and before storing the first log information in the tracking log file, it can cache the log output event through memory (HashMap). The log output event may include the output of the obtained log information, which can also be called an IO event.

[0070] When the first tracking tool exits, the log output event can be obtained from the memory to prevent duplicate creation of log output events. The doShutDownWork hook can be used to perform cleanup work, close the log output event, and release the system resources occupied by the log output event.

[0071] In this embodiment, the log information is first cached in the memory of the tracking tool, and then transmitted to the tracking log file. In this way, the reliability of the log information output can be improved.

[0072] In some embodiments, storing the first log information in a first burying log file in a first log directory by using the first burying tool may include:

[0073] The first log information is stored in a first burying point log file in a first log directory through a first interface of the first burying point tool;

[0074] After storing the first log information in the first burying log file in the first log directory through the first interface of the first burying tool, the method further includes:

[0075] In the event that the first log information fails to be stored, the first log information is stored in the first burying point log file in the first log directory through the second interface of the first burying point tool.

[0076] In this embodiment, a recovery processing strategy after a log submission failure is defined. In specific implementation, the first tracking tool can write the first log information into the first tracking log file through the first interface. If the writing of the first log information fails, the recovery processing strategy can be executed. Specifically, considering that the failure to write the first log information may be caused by an abnormality in the first interface, the first interface can be closed, and a new second interface can be reopened, and the first log information can be written into the first tracking log file through the second interface.

[0077] Through the above method, when the writing of the first log information fails, the first log information can be stored again through the new interface, thus improving the success rate of log writing and further improving the accuracy of service quality monitoring.

[0078] In some embodiments, the first log information includes a service to which the first burying point information belongs, a first monitoring indicator and a first execution status of the business to which the first burying point information belongs;

[0079] After storing the first log information in the first burying log file in the first log directory by the first burying tool, the method further includes:

[0080] Forwarding the first embedding point log file to the log management system through the log collection component;

[0081] Forwarding the first log information to a first message queue of a data storage platform through the log management system, wherein the first message queue is used to store log information of the first service and the first monitoring indicator;

[0082] For each message queue in the data storage platform, the log information in the message queue is processed by the data processing platform based on the monitoring index and execution status of the log information in the message queue to obtain the data processing result of the message queue;

[0083] The data processing results of each message queue in the data processing platform are stored in a database.

[0084] In this embodiment, after the log information is stored in the embedded log file, it can also be statistically processed and then stored in the database, so as to facilitate direct query of statistical data from the database and locate service problems.

[0085] In specific implementation, the log collection component can directly collect the embedded log files from the log directory and forward the collected embedded log files to the log management system.

[0086] After obtaining the embedded log file, the log management system can group and forward the log information based on the monitoring indicators and the services to which they belong. In specific implementation, the log information belonging to different services and with different monitoring indicators can be forwarded to different message queues in the data storage platform. Each message queue can be regarded as a separate processing channel, so that each service and monitoring indicator can perform data processing through a separate message queue without interfering with each other. In this way, quality monitoring of each monitoring indicator of each service can be achieved.

[0087] For each message queue, the data processing platform can clean, convert, aggregate and other operations on each monitoring indicator data based on the execution status and indicator value of the log information in the message queue to output data useful for monitoring, and save the data to the database for subsequent fault analysis, alarm processing and other uses.

[0088] In some embodiments, the log collection component may be Filebeat, the log management system may be Logstash, the data storage platform may be Kafka, the data processing platform may be Flink, and the database may be ElasticSearch (ES), but is not limited thereto.

[0089] Through the above method, statistical processing of log information can be achieved, thereby achieving effective monitoring of service quality.

[0090] It should be noted that the various optional implementation modes introduced in the embodiments of the present application can be implemented in combination with each other or separately if they do not conflict with each other, and the embodiments of the present application are not limited to this.

[0091] The embodiment of the present application provides an SDK for collecting tracking information, which can write the tracking information into a tracking log file in a data format such as JSON, and can specify the log format of the tracking information, such as including the business to which it belongs, monitoring indicators, execution status, execution time, execution information, execution tags, etc., thereby standardizing the business log format, and can intuitively monitor the actual operating status of the service. In addition, the impact on system intrusion and performance is also very small by improving the way of printing logs.

[0092] The SDK can perform a rollover operation when the log file reaches a specified size or reaches a specified date. Specifically, it creates a new file according to the specified file name format and writes the log information to the new file. The SDK can create a logs directory under the folder where the business service is located and save the log information to this directory to distinguish it from the system log file.

[0093] The embedded log files can be collected and uploaded to the log management system through Filebeat. For subsequent statistical needs, Kafka can be used to temporarily store data during data transmission and the sliding window of Flink real-time computing technology can be used to pre-aggregate the data, which is convenient for unified viewing and statistical analysis of business service quality, and access to the alarm system to send alarm notifications.

[0094] For ease of understanding, the following examples are provided:

[0095] This example can be applied to Figure 2The service quality monitoring system shown in the figure integrates a Record SDK tracking tool in each service, which is used to record standardized logs for the business methods that need to be monitored in the service and save them to the specified directory file. Then, Filebeat collects and transmits the stored log data to the Logstash log management system, and Logstash forwards the data to the Kafka message queue. The data is then cleaned, converted, and preprocessed through the data integration processing tool, and finally saved in the ES database.

[0096] The main implementation methods in the Record SDK for service quality monitoring tracking are as follows.

[0097] In the SDK, JsonEncoder and JsonSerializer are defined to convert RecordEvent type data into the specified Json string type for data transmission. FileNamePattern is defined to define the output log file name template so that the service and date of the print log can be identified by the file name, and the error log file and the correct log file can be distinguished. RecoveryCoordinator is defined to define the recovery processing strategy after the log submission fails. RollingPolicy is used to define the log file rollover strategy, including: date rollover log, maximum number of days to save logs, default size of a single log file, total storage size of successful / failed logs, and other parameters.

[0098] The QosRecorder class is used to encapsulate the top-level logic and implement two rollover policies, SuccessRollingPolicy and FailureRollingPolicy. These two rollover policies can add a rollover policy based on the file name prefix on the basis of the rollover based on the file size; and add the function of regularly cleaning up historical files, so that the maximum file storage time can be defined through code configuration. The implementation code can be as follows:

[0099] SizeAndTimeBasedRollingPolicy qosSuccessRollingPolicy=newSizeAndTimeBasedRollingPolicy();

[0100] qosSuccessRollingPolicy.setMaxHistory(7);

[0101] qosSuccessRollingPolicy.setMaxFileSize(FileSize.valueOf("20mb")); qosSuccessRollingPolicy.setTotalSizeCap(FileSize.valueOf("200mb"));

[0102] qosSuccessRollingPolicy.setFilenamePrefix(CoreConstants.QOS_SUCCESS_REC ORD_FILE_NAME_PREFIX);

[0103] qosSuccessRollingPolicy.start();

[0104] qosSuccessRollingFileAppender=new RollingFileAppender<>(qosSuccessRollingPolicy);

[0105] qosSuccessRollingFileAppender.setName("qos_success_appender_");

[0106] qosSuccessRollingFileAppender.setImmediateFlush(true);

[0107] JsonEncoder successEncoder=new JsonEncoder();

[0108] successEncoder.setIncludeOrigin(true);

[0109] qosSuccessRollingFileAppender.setEncoder(successEncoder);

[0110] qosSuccessRollingFileAppender.start();

[0111] Define the record method to serve the call tracking output information, and use the Boolean status field in RecordEvent, that is, the execution status, to divert the information to the correct and error log files.

[0112] In addition, you can define the doShutDownWork hook to perform cleanup work when exiting the SDK. When implementing it, you can customize a HashMap to cache the already started log output events. This allows you to get the running log output events from the HashMap and close them when the SDK exits, thus preventing the log output events from occupying too many system resources. The implementation code can be as follows:

[0113] final static HashMap<String,FileNamePattern> FILE_NAME_PATTERN_MAP=new HashMap<>(8);

[0114] public void stop(){

[0115] super.stop();

[0116] if(rollingPolicy!=null){

[0117] rollingPolicy.stop();

[0118] }

[0119] if(triggeringPolicy!=null){

[0120] triggeringPolicy.stop();

[0121] }

[0122] if (getName()!= null) {

[0123] QosRecorder.FILE_NAME_PATTERN_MAP.remove(getName());

[0124] }

[0125] }

[0126] RecordEvent defines the log format specification for monitoring log output, which can include monitoring indicators, services, execution status, execution delay, server address, message content, additional attribute tags, etc. When tracking business points, you can follow the specification fields and set the values ​​of each field according to the actual execution situation.

[0127] Finally, the Record information collected through tracking is stored in the directory specified by the service, and can be stored in different named files according to the execution status and date.

[0128] like Figure 2 As shown in the figure, based on the Record SDK collection service monitoring log data, a data flow architecture is designed, including: collecting file information on the server through the Filebeat component and sending it to Logstash. Because the logs are output to the specified directory, the collection of embedded log files in the specified directory can be distinguished from the collection of system log files, and then the log data with different contents can be forwarded to different places through Logstash data for subsequent data processing.

[0129] By using the specified field information output in the log, you can easily clean, group, and pre-aggregate the data and save it to the ElasticSearch database. Use streaming processing to trigger Flink, filter dirty data, distribute the data to different indexes according to the processing status and processing time fields, and use time window technology to pre-aggregate the service operation status according to dimensions such as 10 minutes and 1 hour, so that it is convenient to query statistical data directly from ES.

[0130] like Figure 3 As shown in the figure, a complete service quality monitoring system is implemented by improving the log collection SDK. Since the SDK collects the monitoring log data into a specific directory, the monitoring data can be easily obtained by collecting the log files in the specified directory without any filtering processing.

[0131] Then, Logstash is used to group and forward the data according to the specified "monitoring indicator name" and "service" fields. Each service and indicator can process data through a separate processing channel (message queue) without interfering with each other.

[0132] Then, through the streaming processing engine Flink, according to fields such as "execution status" and "monitoring indicator value", each indicator data is cleaned, converted, aggregated, and other operations are performed to output data useful for monitoring, and the data is saved in the database for subsequent fault analysis, alarm processing, etc.

[0133] The embodiment of the present application standardizes the business log format, and can intuitively monitor the actual operation status of the service through the embedded log file, and the impact on the system intrusion and performance is also very small through the improved printing log method.

[0134] Based on the service quality monitoring method provided in the above embodiment, the present application also provides a specific implementation of a service quality monitoring device. Please refer to the following embodiment.

[0135] See also Figure 4 The service quality monitoring device provided in the embodiment of the present application may include:

[0136] A collection module 401 is configured to collect first tracking information of a first service through a first tracking tool, wherein the first tracking tool is integrated into the first service; the first tracking information is business execution related information collected by tracking in the first service;

[0137] A first processing module 402 is used to process the first burying point information according to a first information format by using the first burying point tool to generate first log information in the first information format corresponding to the first burying point information;

[0138] The first storage module 403 is used to store the first log information into a first burying point log file in a first log directory through the first burying point tool, wherein the first log directory is used to store burying point log files.

[0139] In some embodiments, the first log information includes a first execution status of a business to which the first tracking point information belongs;

[0140] The first storage module comprises:

[0141] A first determining unit, configured to determine, by using the first tracking tool, a first storage file type corresponding to the first log information based on the first execution state;

[0142] A first storage unit, used to store the first log information in a first burying point log file under the first storage file type in a first log directory through the first burying point tool;

[0143] Among them, when the first execution status is successful, the first storage file type is a correct log file used to store log information of the execution status being successful; when the first execution status is failed, the first storage file type is an error log file used to store log information of the execution status being failed.

[0144] In some embodiments, the file name of the burying point log file under the correct log file includes a first identifier, and the first identifier indicates that the burying point log file is used to store log information with a successful execution status; the file name of the burying point log file under the error log file includes a second identifier, and the second identifier indicates that the burying point log file is used to store log information with a failed execution status;

[0145] The device also includes:

[0146] An identification module, used to identify, by the first burying tool, the burying log files under the first storage file type in the first log directory based on the file names of the burying log files in the first log directory;

[0147] A comparison module, configured to compare, by using the first tracking tool, a file size of a tracking log file under the first storage file type in the first log directory with a first file size, wherein the first file size is defined by a first rollover policy corresponding to the first storage file type;

[0148] The first storage module is specifically used for:

[0149] When the file sizes of the burial point log files under the first storage file type in the first log directory all reach the first file size, the first burial point log file under the first storage file type is created by the first burial point tool, and an identifier corresponding to the first storage file type is added to the first burial point log file.

[0150] In some embodiments, the apparatus further comprises:

[0151] A cache module, configured to cache log output events through the memory of the first tracking tool, wherein the log output events include the transmission of the first log information;

[0152] The first storage module is specifically used for:

[0153] When the first burying tool exits, the first log information is stored in the first burying log file in the first log directory through the memory of the first burying tool, and the log output event is closed through the stop work hook of the first burying tool.

[0154] In some embodiments, the first storage module includes:

[0155] A second storage unit, used for storing the first log information in a first burying point log file in a first log directory through a first interface of the first burying point tool;

[0156] The third storage unit is used to store the first log information in the first burying point log file in the first log directory through the second interface of the first burying point tool when the storage of the first log information fails.

[0157] In some embodiments, the first log information includes a service to which the first burying point information belongs, a first monitoring indicator and a first execution status of the business to which the first burying point information belongs;

[0158] The device also includes:

[0159] A first forwarding module, configured to forward the first embedding point log file to a log management system through a log collection component;

[0160] A second forwarding module, used to forward the first log information to a first message queue of a data storage platform through the log management system, wherein the first message queue is used to store log information of the first service and the first monitoring indicator;

[0161] A second processing module is used to process the log information in each message queue in the data storage platform based on the monitoring index and execution status of the log information in the message queue through the data processing platform to obtain the data processing result of the message queue;

[0162] The second storage module is used to store the data processing results of each message queue in the data processing platform through a database.

[0163] The service quality monitoring device provided in the embodiment of the present application can implement each process implemented by the service quality monitoring device in the method embodiment, and will not be described again here to avoid repetition.

[0164] Figure 5 The hardware structure diagram of the service quality monitoring provided by the embodiment of the present application is shown.

[0165] The service quality monitoring device may include a processor 501 and a memory 502 storing computer program instructions.

[0166] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0167] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.

[0168] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0169] The processor 501 implements any one of the service quality monitoring methods in the above embodiments by reading and executing the computer program instructions stored in the memory 502 .

[0170] In one example, the service quality monitoring device may further include a communication interface 505 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 505 are connected via a bus 510 and communicate with each other.

[0171] The communication interface 505 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0172] Bus 510 includes hardware, software or both, and the parts of the service quality monitoring equipment are coupled to each other. For example, but not limitation, the bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0173] In addition, in combination with the service quality monitoring method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the service quality monitoring methods in the above embodiment is implemented.

[0174] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0175] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0176] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0177] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0178] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for monitoring quality of service, characterized in that: include: Collecting first tracking information of the first service through a first tracking tool, wherein the first tracking tool is integrated in the first service; the first tracking information is business execution related information collected by tracking in the first service; Processing the first burying point information according to a first information format by the first burying point tool to generate first log information in the first information format corresponding to the first burying point information; The first log information is stored in a first burying point log file in a first log directory through the first burying point tool, wherein the first log directory is used to store burying point log files.

2. The method according to claim 1, characterized in that The first log information includes a first execution status of a business to which the first tracking point information belongs; The storing the first log information in a first burying point log file in a first log directory by the first burying point tool includes: Determine, by the first tracking tool, a first storage file type corresponding to the first log information based on the first execution state; The first log information is stored in a first burying point log file of the first storage file type in a first log directory by using the first burying point tool; Among them, when the first execution status is successful, the first storage file type is a correct log file used to store log information of the execution status being successful; when the first execution status is failed, the first storage file type is an error log file used to store log information of the execution status being failed.

3. The method according to claim 2, characterized in that The file name of the burying point log file under the correct log file includes a first identifier, which indicates that the burying point log file is used to store log information with a successful execution status; the file name of the burying point log file under the error log file includes a second identifier, which indicates that the burying point log file is used to store log information with a failed execution status; After determining the first storage file type corresponding to the first log information based on the first execution state, and before storing the first log information in the first burying log file of the first storage file type in the first log directory by the first burying tool, the method further includes: Identify, by the first burying tool, burying log files under the first storage file type in the first log directory based on the file names of the burying log files in the first log directory; Compare, by the first tracking tool, a file size of a tracking log file under the first storage file type in the first log directory with a first file size, wherein the first file size is defined by a first rollover policy corresponding to the first storage file type; The storing the first log information in a first burying log file of the first storage file type in a first log directory by the first burying tool includes: When the file sizes of the burial point log files under the first storage file type in the first log directory all reach the first file size, the first burial point log file under the first storage file type is created by the first burial point tool, and an identifier corresponding to the first storage file type is added to the first burial point log file.

4. The method according to claim 1, characterized in that: After the first burying point information is processed according to the first information format by the first burying point tool to generate first log information in the first information format corresponding to the first burying point information, and before the first burying point tool stores the first log information in the first burying point log file in the first log directory, the method further includes: Outputting an event through a memory cache log of the first tracking tool, wherein the log output event includes the transmission of the first log information; The storing the first log information in a first burying point log file in a first log directory by the first burying point tool includes: When the first burying tool exits, the first log information is stored in the first burying log file in the first log directory through the memory of the first burying tool, and the log output event is closed through the stop work hook of the first burying tool.

5. The method according to claim 1, characterized in that: The storing the first log information in a first burying point log file in a first log directory by the first burying point tool includes: The first log information is stored in a first burying point log file in a first log directory through a first interface of the first burying point tool; After storing the first log information in the first burying log file in the first log directory through the first interface of the first burying tool, the method further includes: In the event that the first log information fails to be stored, the first log information is stored in the first burying point log file in the first log directory through the second interface of the first burying point tool.

6. The method according to claim 1, characterized in that The first log information includes the service to which the first burying point information belongs, the first monitoring indicator and the first execution status of the business to which the first burying point information belongs; After storing the first log information in the first burying log file in the first log directory by the first burying tool, the method further includes: Forwarding the first embedding point log file to the log management system through the log collection component; Forwarding the first log information to a first message queue of a data storage platform through the log management system, wherein the first message queue is used to store log information of the first service and the first monitoring indicator; For each message queue in the data storage platform, the log information in the message queue is processed by the data processing platform based on the monitoring index and execution status of the log information in the message queue to obtain the data processing result of the message queue; The data processing results of each message queue in the data processing platform are stored in a database.

7. A service quality monitoring device, characterized in that: The device comprises: A collection module, configured to collect first burying point information of a first service through a first burying point tool, wherein the first burying point tool is integrated in the first service; the first burying point information is business execution related information collected by the burying points in the first service; A first processing module, configured to process the first burying point information according to a first information format by using the first burying point tool, and generate first log information in the first information format corresponding to the first burying point information; The first storage module is used to store the first log information into a first burying point log file in a first log directory through the first burying point tool, wherein the first log directory is used to store burying point log files.

8. A service quality monitoring device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the service quality monitoring method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the service quality monitoring method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the service quality monitoring method as described in any one of claims 1 to 6.