CN113377610B - Performance monitoring method, device, computer equipment and storage medium - Google Patents

Performance monitoring method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113377610B
CN113377610B CN202110631210.0A CN202110631210A CN113377610B CN 113377610 B CN113377610 B CN 113377610B CN 202110631210 A CN202110631210 A CN 202110631210A CN 113377610 B CN113377610 B CN 113377610B
Authority
CN
China
Prior art keywords
service
data
performance monitoring
definition
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110631210.0A
Other languages
Chinese (zh)
Other versions
CN113377610A (en
Inventor
程捷
汤慧星
许永峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN202110631210.0A priority Critical patent/CN113377610B/en
Publication of CN113377610A publication Critical patent/CN113377610A/en
Application granted granted Critical
Publication of CN113377610B publication Critical patent/CN113377610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a performance monitoring method, a device, equipment and a storage medium. The method comprises the following steps: acquiring service definition data of a target probe; determining a performance monitoring service matched with the target probe according to the service definition data; and receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to a performance monitoring service so as to monitor the performance through the performance monitoring service. The embodiment of the invention can realize the self-definition and automation of service division of the performance data, reduce the complexity and operation and maintenance cost when the probe is deployed, and improve the flexibility of performance monitoring and the user experience effect.

Description

Performance monitoring method, device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a performance monitoring method, a performance monitoring device, computer equipment and a storage medium.
Background
In the monitoring process of application performance, due to the diversity of service scenes and service functions, the collected application performance data needs to be divided into multiple dimensions, for example, the data reported by each probe is displayed from the dimension of the probe, or the data reported by each service is displayed by taking all probes in the same service function or scene as the dimension, and the display of the performance monitoring data according to a certain dimension can be called a performance monitoring service, that is, the service can monitor the performance of the application in the dimension. Therefore, how to classify the application performance data reported by the probes according to the dimensions of the services is a problem to be solved in the industry.
In the prior art, application performance data reported by a probe is classified according to services, and a common method adopted includes writing a service name into a configuration file of the probe directly in a configuration form, or defining the service in a certain fixed dimension, for example, defining the service in an interface URL (Uniform Resource Locator) name, a process group name where the probe is located, and the like.
However, the service division method provided by the above prior art has several disadvantages: firstly, aiming at the method of directly writing the service name into the probe configuration file, excessive invasion is caused to the probes, all probes need to be manually updated when the service name is updated, and if the probes are distributed on different machines or machine rooms, the operation and maintenance cost and complexity are greatly increased; aiming at a method for defining services by a certain fixed dimension, dimension switching is difficult to realize, and the service is not flexible and intelligent enough; in addition, the definition of the service is completely based on the information reported by the probe, the service definition cannot be realized, and the user friendliness is not enough.
Disclosure of Invention
The embodiment of the invention provides a performance monitoring method, a performance monitoring device, computer equipment and a storage medium, which are used for realizing the self-definition and automation of service division of performance data, reducing the complexity and operation and maintenance cost during probe deployment and improving the flexibility of performance monitoring and the user experience effect.
In a first aspect, an embodiment of the present invention provides a performance monitoring method, including:
Acquiring service definition data of a target probe;
determining a performance monitoring service matched with the target probe according to the service definition data;
And receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to monitor the performance through the performance monitoring service.
In a second aspect, an embodiment of the present invention further provides a performance monitoring apparatus, including:
The service data acquisition module is used for acquiring service definition data of the target probe;
The service determining module is used for determining a performance monitoring service matched with the target probe according to the service definition data;
And the monitoring data receiving module is used for receiving the performance monitoring data sent by the target probe and providing the performance monitoring data to the performance monitoring service so as to monitor the performance through the performance monitoring service.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
One or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the performance monitoring methods provided by any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer storage medium having a computer program stored thereon, which when executed by a processor implements the performance monitoring method provided by any of the embodiments of the present invention.
According to the embodiment of the invention, the performance monitoring service matched with the target probe is determined according to the service definition data, so that the received performance monitoring data sent by the target probe can be provided to the performance monitoring service matched with the target probe, performance monitoring is carried out through the performance monitoring service, the problem that excessive invasion to probe configuration is required when service division is carried out or the service division mode lacks flexibility and user freedom degree in the prior art is avoided based on the service definition data of the configured target probe, the service division of the performance data is customized and automated, the complexity and operation and maintenance cost of probe deployment are reduced, and the performance monitoring flexibility and user experience effect are improved.
Drawings
Fig. 1 is a flowchart of a performance monitoring method according to a first embodiment of the present invention.
Fig. 2 is a flowchart of a performance monitoring method according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a performance monitoring system according to a second embodiment of the present invention.
Fig. 4 is a flow chart of a performance monitoring method according to a second embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a performance monitoring device according to a third embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof.
It should be further noted that, for convenience of description, only some, but not all of the matters related to the present invention are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
Fig. 1 is a flowchart of a performance monitoring method according to an embodiment of the present invention, where the method may be applied to a situation where performance data reported by a probe is subjected to service division for performance monitoring, and the method may be performed by a performance monitoring apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device. Accordingly, as shown in fig. 1, the method includes the following operations:
s110, acquiring service definition data of the target probe.
The target probe may be any probe for collecting and reporting application performance data. The service definition data may be data specifying a performance monitoring service matched with the target probe, and the performance monitoring service matched with the target probe may display application performance data collected and reported by the target probe to perform performance monitoring in a specific dimension.
Correspondingly, the target probe can be a pre-deployed probe for monitoring application performance, and can collect and report application performance data, so that the reported application performance data can be classified and divided according to services. The service definition data of the target probe can be preset according to the requirement, a user can determine the dimension required by monitoring the performance of the application and the probe corresponding to the application performance data required by each dimension, so that the dimension of the application performance data collected and reported by the target probe is determined, the target probe is matched with the service for displaying the data of the dimension, and the service definition data of the target probe can be determined.
And S120, determining the performance monitoring service matched with the target probe according to the service definition data.
The performance monitoring service matched with the target probe can display the application performance data collected and reported by the target probe so as to monitor the performance of a specific dimension.
Accordingly, a performance monitoring service that matches the target probe may be determined from the service definition data. The performance monitoring service may be matched with one or more probes, so that the performance monitoring service determined according to the service definition data may be determined from all the currently existing services; or may be a service that does not already exist at the current time, the performance monitoring service may be created from the service definition data.
And S130, receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to monitor the performance through the performance monitoring service.
The performance monitoring data may be application performance data collected and reported by the target probe.
Accordingly, the performance monitoring data sent by the target probe may be provided to the performance monitoring service to which the target probe is matched, so that the performance monitoring service may present the performance monitoring data. The performance monitoring service can display application performance data sent by all probes matched with the target probe, so that the application performance can be described from a specific dimension, and the performance data can be monitored through the performance monitoring service.
Optionally, the performance monitoring data may be partitioned according to the performance monitoring service matched by the target probe, and stored in a preset database according to the partitioning result, so that the performance monitoring data may be stored according to the partitioning result, so as to be used for displaying the application performance of the specific dimension.
For example, the target probe may collect and report the average time spent by page loading, and its service definition data specifies that its matched performance monitoring service is "page loading service", and then the data sent by the received target probe may be provided to the performance monitoring service, where the performance monitoring service may display the performance data of the application by using the page loading service as a dimension, and perform performance monitoring on the application.
The embodiment of the invention provides a performance monitoring method, which is characterized in that by acquiring service definition data of a target probe and determining performance monitoring service matched with the target probe according to the service definition data, the received performance monitoring data sent by the target probe can be provided to the performance monitoring service matched with the target probe, so that performance monitoring can be carried out through the performance monitoring service, the problems of excessive invasion to probe configuration or lack of flexibility and user freedom degree of a service division mode when service division is needed in the prior art are avoided, the user definition and automation of service division of the performance data are realized, the complexity and operation and maintenance cost when the probe is deployed are reduced, and the flexibility and the user experience effect of the performance monitoring are improved.
Example two
Fig. 2 is a flowchart of a performance monitoring method according to a second embodiment of the present invention. The embodiment of the present invention is embodied based on the above embodiment, and in the embodiment of the present invention, a specific alternative implementation manner of obtaining service definition data of a target probe is provided.
As shown in fig. 2, the method in the embodiment of the present invention specifically includes:
s210, acquiring service definition data of the target probe.
In an alternative embodiment of the present invention, S210 may specifically include:
s211, receiving probe configuration data sent by the target probe.
The probe configuration data may be data for describing an attribute of the target probe, among others.
Accordingly, the attribute of each aspect of the target probe can be determined by probe configuration data, and the probe configuration data can include, for example, self configuration data such as identity data, communication protocol type and belonging process group name of the target probe, and parameter configuration data in the acquisition process such as sampling frequency of the acquisition data of the target probe. When the target probe reports the acquired application performance data, the probe configuration data can be reported at the same time, so that the identity of the target probe can be determined according to the probe configuration data, parameters and the like used in the acquisition process corresponding to the reported application performance data can be determined.
S212, inquiring the service definition data with binding relation with the probe configuration data in a first database.
The first database may be pre-deployed, and may be a database for storing each service definition data and a binding relationship between probe configuration data of each target probe and the service definition data.
Correspondingly, one or more pieces of service definition data can be stored in the first database, different pieces of service definition data can be data for specifying performance monitoring services matched with different target probes, and then the corresponding relation between the service definition data and the target probes can be determined, so that probe configuration data of the target probes can be obtained, and the probe configuration data of the target probes and the corresponding service definition data are established in a binding relation and stored in the first database. Therefore, the service definition data with binding relation with the probe configuration data can be queried in the first database according to the received probe configuration data of the target probe, namely the service definition data of the target probe.
Optionally, the probe configuration data includes ID (Identity) identification data of the target probe, and the first database may store each service definition data and a binding relationship between the ID of each target probe and the service definition data, so that the first database may query the service definition data having a binding relationship with the ID of the target probe.
In an alternative embodiment of the present invention, before the acquiring the service definition data of the target probe, the method may further include: reading update definition data from a second database under a preset cache time; and determining a binding relation between the probe configuration data and the service definition data according to the update definition data, and updating the binding relation into the first database.
The preset buffering time may be any preset time. The second database may be used to receive and store the update definition data via a user-defined channel. The user-defined channel may be a channel provided to the user for inputting update definition data. The update definition data may be data that is input by the user through the user-defined channel between the current time and the last preset buffering time and prescribes the performance monitoring service to which the target probe is matched.
Specifically, the first database may be any cache database, and optionally, may be a dis database. The second database may be any readable and writable database, alternatively a MySQL database. The user-defined channel may be any channel that may be provided to a user and that receives user input data, and may alternatively be a Web interface.
Accordingly, the update definition data may be user-defined as desired, such that the update definition data may be entered and transmitted to the second database via the user-defined channel. After the second database receives the update definition data through the user definition channel, the update definition data may be stored. Every time the preset cache time is reached, all stored update definition data between the preset cache time and the previous preset cache time can be read from the second database, so that the service definition data matched with the target probe which needs to be newly generated or updated in the time period can be determined according to the update definition data, namely, the binding relation between the probe configuration data which needs to be generated or updated and the service definition data is determined, and the binding relation can be updated into the first database.
S220, according to the service definition data, determining the performance monitoring service matched with the target probe.
In an alternative embodiment of the present invention, the determining, according to the service definition data, a performance monitoring service matching the target probe may include: under the condition that the service definition data is determined to be the first type definition data, acquiring custom association data in the service definition data; and acquiring a target custom service corresponding to the custom association data, and determining the target custom service as the performance monitoring service matched with the target probe.
Wherein the first type of definition data may be service definition data capable of independently defining the performance monitoring service. The custom association data may be data describing a performance monitoring service. The target custom service may be a performance monitoring service described by custom association data.
Correspondingly, the service definition data of the target probe is first type definition data, which can indicate that the performance monitoring service matched with the target probe can be independently defined by the service definition data, and then the self-defined association data in the service definition data can be obtained, and the target self-defined service can be obtained according to the description of the self-defined association data. After the target custom service is obtained, the target custom service can be determined to be the performance monitoring service matched with the target probe.
Optionally, the custom association data may be a service name customized by the user, and then the performance monitoring service matched by the target probe may be determined as a service corresponding to the service name according to the service name.
In an alternative embodiment of the present invention, the determining, according to the service definition data, a performance monitoring service matching the target probe may include: generating configuration association data according to the service definition data and probe configuration data of the target probe under the condition that the service definition data is determined to be second type definition data; acquiring a target configuration definition service corresponding to the configuration association data and service identification data of the target configuration definition service; and determining the performance monitoring service matched with the target probe according to the service identification data.
Wherein the second type of definition data may be service definition data capable of defining the performance monitoring service in conjunction with probe configuration data, and may be used to describe rules for generating configuration association data from the probe configuration data. The configuration association data may be data generated from rules described by the second type of definition data and probe configuration data, and may be used to describe the performance monitoring service. The target configuration definition service may be a performance monitoring service described by configuration association data. The service identification data may be data identifying the target configuration definition service, and optionally may be a service ID.
Accordingly, the service definition data of the target probe is the second type definition data, which can indicate that the performance monitoring service matched with the target probe can be defined by the service definition data and the probe configuration data, so that the service definition data and the probe configuration data of the target probe can be obtained, and configuration association data can be generated, so that the target configuration definition service can be obtained according to the description of the configuration association data. Specifically, the target configuration definition service may be an existing performance monitoring service queried according to configuration definition association data, so as to obtain service identification data of the performance monitoring service; or the performance monitoring service which is not existed and needs to be newly generated according to the configuration definition association data, so that the service identification data of the performance monitoring service can be obtained after the performance monitoring service is generated. Further, the service identification data is the service identification data of the performance monitoring service matched with the target probe, and the performance monitoring service matched with the target probe can be determined according to the service identification data.
Alternatively, the configuration association data may be a service name determined according to the probe configuration data, and the service definition data may be a rule for determining a service name according to the probe configuration data, and then the service name may be determined according to the service definition data and the probe configuration data, and the performance monitoring service matched by the target probe may be determined as the service corresponding to the name. In particular, the probe configuration data may include a docker mirror name, a k8s container name, a start environment variable, a process group name, and the like, and the service definition data may be a rule for determining a service name according to one or more of the docker mirror name, the k8s container name, the start environment variable, and the process group name.
In an optional embodiment of the present invention, the obtaining the target configuration definition service corresponding to the configuration association data and the service identification data of the target configuration definition service may include: acquiring service identification data of the target configuration definition service under the condition that the target configuration definition service exists; and generating the target configuration definition service according to the configuration association data and service identification data of the target configuration definition service in the condition that the target configuration definition service is determined to not exist.
Accordingly, a lookup can be made in all existing performance monitoring services based on the description of the configuration association data. If the performance monitoring service conforming to the description of the configuration association data can be found, the performance monitoring service is the target configuration definition service, that is, the existence of the target configuration definition service can be determined, so that the service identification data of the target configuration definition service can be obtained. If the performance monitoring service conforming to the description of the configuration association data cannot be found, it can be determined that the target configuration definition service does not exist, and therefore, the target configuration definition service and the service identification data thereof can be generated according to the description of the configuration association data.
In an alternative embodiment of the present invention, the determining the performance monitoring service matching the target probe according to the service identification data may include: acquiring a current matching service for matching the current moment with the target probe; under the condition that the service identification data is matched with the current matching service, determining that the current matching service is a performance monitoring service matched with the target probe; in the event that the service identification data is determined to not match the current matching service, the target configuration definition service is determined to be a performance monitoring service that matches the target probe.
The current matching service may be a performance monitoring service that matches the target probe at the current time.
Accordingly, the current matching service matched with the target probe at the current moment can be obtained, so that whether the performance monitoring service matched with the target probe needs to be updated can be determined by judging whether the current matching service is the performance monitoring service identified by the service identification data. Specifically, if the current matching service is a performance monitoring service identified by the service identification data, that is, it can be determined that the service identification data matches the current matching service, then the current matching service can continue to be the performance monitoring service matched by the target probe; if the current matching service is not the performance monitoring service identified by the service identification data, it can be determined that the service identification data does not match the current matching service, and the performance monitoring service matched by the target probe needs to be updated to the target configuration definition service by the current matching service.
And S230, receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to monitor the performance through the performance monitoring service.
Optionally, an embodiment of the present invention further provides a performance monitoring system, which may include an application data receiver, an application data storage module, at least one target probe, a first database, a second database, and a user-defined channel.
The application data receiver is used for executing any performance monitoring method provided by the embodiment of the invention. And the application data storage module is used for storing the performance monitoring data sent by the target probe according to the matched performance monitoring service.
Fig. 3 is a schematic structural diagram of a performance monitoring system according to an embodiment of the present invention. As shown in FIG. 3, in one specific example, the system includes an application data receiver Controller, an application data storage module, target probes Agent1 and Agent2, a first database Redis, a second database MySQL, and a user-defined channel Web interface.
Correspondingly, fig. 4 is a schematic flow chart of a performance monitoring method according to an embodiment of the present invention. In a specific example, as shown in fig. 3 and 4, the service naming rules configured by the user may be received and saved to MySQL through the user-defined channel web interface in advance. The application data receiver Controller may then read the recently added or updated service naming rules from MySQL at regular time, buffering to Redis. When the application data receiver Controller receives the basic configuration data reported by the probe, the service bound by the probe can be checked and updated according to the service naming rule.
Specifically, after the Controller receives the basic configuration data reported by the probe, the Controller acquires the bound service information from the Redis according to the probe ID. If the service to which the current probe is bound is in the custom configuration, determining the binding relation between the probe and the service according to the custom configuration. If the service bound by the current probe is not self-defined, automatically generating a service name according to the configuration rule and the basic information of the probe, and checking whether the generated service name exists. If the service name does not exist, the entity is registered and a service ID is returned. If the service name exists, the service ID is returned directly. And then checking whether the returned service ID is consistent with the service ID bound by the current probe, and if not, updating the new service ID to the probe information.
Further, when the application data receiver Controller receives the application performance data reported by the probe, the application performance data can be divided according to the service bound by the probe and stored in the application data storage system.
The embodiment of the invention provides a performance monitoring method, which is characterized in that by acquiring service definition data of a target probe and determining performance monitoring service matched with the target probe according to the service definition data, the received performance monitoring data sent by the target probe can be provided to the performance monitoring service matched with the target probe, so that performance monitoring can be carried out through the performance monitoring service, the problems of excessive invasion to probe configuration or lack of flexibility and user freedom degree of a service division mode when service division is needed in the prior art are avoided, the user definition and automation of service division of the performance data are realized, the complexity and operation and maintenance cost when the probe is deployed are reduced, and the flexibility and the user experience effect of the performance monitoring are improved.
Example III
Fig. 5 is a schematic structural diagram of a performance monitoring device according to a third embodiment of the present invention, as shown in fig. 5, where the device includes: a service data acquisition module 310, a service determination module 320, and a monitoring data reception module 330.
The service data acquiring module 310 is configured to acquire service definition data of the target probe.
A service determining module 320, configured to determine, according to the service definition data, a performance monitoring service that matches the target probe.
And the monitoring data receiving module 330 is configured to receive the performance monitoring data sent by the target probe, and provide the performance monitoring data to the performance monitoring service, so as to perform performance monitoring through the performance monitoring service.
In an alternative implementation manner of the embodiment of the present invention, the service data obtaining module 310 may specifically be configured to: receiving probe configuration data sent by the target probe; and querying the service definition data with binding relation with the probe configuration data in a first database.
In an optional implementation manner of the embodiment of the present invention, the apparatus may further include: the data caching module is used for reading update definition data from the second database under the preset caching time; wherein the second database receives and stores the update definition data through a user-defined channel; and determining a binding relation between the probe configuration data and the service definition data according to the update definition data, and updating the binding relation into the first database.
In an alternative implementation of the embodiment of the present invention, the service determining module 320 may include: a first service determining sub-module, configured to obtain custom associated data in the service definition data when determining that the service definition data is first type definition data; and acquiring a target custom service corresponding to the custom association data, and determining the target custom service as the performance monitoring service matched with the target probe.
In an alternative implementation of the embodiment of the present invention, the service determining module 320 may include: a second service determining sub-module, configured to generate configuration association data according to the service definition data and probe configuration data of the target probe, in a case where the service definition data is determined to be second type definition data; acquiring a target configuration definition service corresponding to the configuration association data and service identification data of the target configuration definition service; and determining the performance monitoring service matched with the target probe according to the service identification data.
In an alternative implementation of the embodiment of the present invention, the second service determination submodule may be specifically configured to: acquiring service identification data of the target configuration definition service under the condition that the target configuration definition service exists; and generating the target configuration definition service according to the configuration association data and service identification data of the target configuration definition service in the condition that the target configuration definition service is determined to not exist.
In an alternative implementation of the embodiment of the present invention, the second service determination submodule may be specifically configured to: acquiring a current matching service for matching the current moment with the target probe; under the condition that the service identification data is matched with the current matching service, determining that the current matching service is a performance monitoring service matched with the target probe; in the event that the service identification data is determined to not match the current matching service, the target configuration definition service is determined to be a performance monitoring service that matches the target probe.
The device can execute the performance monitoring method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the performance monitoring method.
The embodiment of the invention provides a performance monitoring device, which is used for acquiring service definition data of a target probe and determining performance monitoring service matched with the target probe according to the service definition data, so that the received performance monitoring data sent by the target probe can be provided to the performance monitoring service matched with the target probe, performance monitoring can be carried out through the performance monitoring service, the problems of excessive invasion to probe configuration or lack of flexibility and user freedom in a service division mode when service division is needed in the prior art are avoided, the user definition and automation of service division of the performance data are realized, the complexity and operation and maintenance cost when the probe is deployed are reduced, and the flexibility and the user experience effect of the performance monitoring are improved.
Example IV
Fig. 6 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 6, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors 16, a memory 28, a bus 18 that connects the various system components, including the memory 28 and the processor 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown in fig. 6, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 16 implements the performance monitoring method provided by the embodiment of the present invention by running a program stored in the memory 28, thereby executing various functional applications and data processing: acquiring service definition data of a target probe; determining a performance monitoring service matched with the target probe according to the service definition data; and receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to monitor the performance through the performance monitoring service.
Example five
A fifth embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the performance monitoring method provided by the embodiments of the present invention: acquiring service definition data of a target probe; determining a performance monitoring service matched with the target probe according to the service definition data; and receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to monitor the performance through the performance monitoring service.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or computer device. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method of performance monitoring, comprising:
Acquiring service definition data of a target probe;
determining a performance monitoring service matched with the target probe according to the service definition data;
receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to monitor performance through the performance monitoring service;
the determining, according to the service definition data, a performance monitoring service matched with the target probe includes:
generating configuration association data according to the service definition data and probe configuration data of the target probe under the condition that the service definition data is determined to be second type definition data;
Acquiring a target configuration definition service corresponding to the configuration association data and service identification data of the target configuration definition service;
And determining the performance monitoring service matched with the target probe according to the service identification data.
2. The method of claim 1, wherein the obtaining service definition data for the target probe comprises:
Receiving probe configuration data sent by the target probe;
and querying the service definition data with binding relation with the probe configuration data in a first database.
3. The method of claim 2, further comprising, prior to the acquiring the service definition data for the target probe:
Reading update definition data from a second database under a preset cache time; wherein the second database receives and stores the update definition data through a user-defined channel;
And determining a binding relation between the probe configuration data and the service definition data according to the update definition data, and updating the binding relation into the first database.
4. The method of claim 1, wherein said determining a performance monitoring service matching said target probe based on said service definition data comprises:
Under the condition that the service definition data is determined to be the first type definition data, acquiring custom association data in the service definition data;
and acquiring a target custom service corresponding to the custom association data, and determining the target custom service as the performance monitoring service matched with the target probe.
5. The method according to claim 1, wherein the obtaining the target configuration definition service corresponding to the configuration association data, and the service identification data of the target configuration definition service, includes:
Acquiring service identification data of the target configuration definition service under the condition that the target configuration definition service exists;
And generating the target configuration definition service according to the configuration association data and service identification data of the target configuration definition service in the condition that the target configuration definition service is determined to not exist.
6. The method of claim 1, wherein said determining the performance monitoring service that matches the target probe based on the service identification data comprises:
acquiring a current matching service for matching the current moment with the target probe;
under the condition that the service identification data is matched with the current matching service, determining that the current matching service is a performance monitoring service matched with the target probe;
In the event that the service identification data is determined to not match the current matching service, the target configuration definition service is determined to be a performance monitoring service that matches the target probe.
7. A performance monitoring apparatus, comprising:
The service data acquisition module is used for acquiring service definition data of the target probe;
The service determining module is used for determining a performance monitoring service matched with the target probe according to the service definition data;
the monitoring data receiving module is used for receiving the performance monitoring data sent by the target probe and providing the performance monitoring data to the performance monitoring service so as to monitor the performance through the performance monitoring service;
The service determination module further includes: a second service determining sub-module, configured to generate configuration association data according to the service definition data and probe configuration data of the target probe, in a case where the service definition data is determined to be second type definition data; acquiring a target configuration definition service corresponding to the configuration association data and service identification data of the target configuration definition service; and determining the performance monitoring service matched with the target probe according to the service identification data.
8. A computer device, the computer device comprising:
One or more processors;
a storage means for storing one or more programs;
When executed by the one or more processors, causes the one or more processors to implement the performance monitoring method of any of claims 1-6.
9. A computer storage medium having stored thereon a computer program, which when executed by a processor implements the performance monitoring method according to any of claims 1-6.
CN202110631210.0A 2021-06-07 2021-06-07 Performance monitoring method, device, computer equipment and storage medium Active CN113377610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110631210.0A CN113377610B (en) 2021-06-07 2021-06-07 Performance monitoring method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110631210.0A CN113377610B (en) 2021-06-07 2021-06-07 Performance monitoring method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113377610A CN113377610A (en) 2021-09-10
CN113377610B true CN113377610B (en) 2024-05-31

Family

ID=77576074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110631210.0A Active CN113377610B (en) 2021-06-07 2021-06-07 Performance monitoring method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113377610B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117376105A (en) * 2023-09-15 2024-01-09 珠海横琴悠租云科技有限公司 Application diagnosis method, device, equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010067988A (en) * 2001-04-12 2001-07-13 이상철 System for managing service quality of wireless internet and method thereof
CA2649104A1 (en) * 2007-02-07 2008-08-14 Advanced Media Systems Limited Methods, systems and apparatus for monitoring and/or generating communications in a communications network
US7554983B1 (en) * 2004-12-20 2009-06-30 Packeteer, Inc. Probing hosts against network application profiles to facilitate classification of network traffic
CN104363262A (en) * 2014-10-21 2015-02-18 上海动盟网络技术有限公司 Wireless access device, server, service information push system and service information push method
CN106656971A (en) * 2016-10-14 2017-05-10 福建星瑞格软件有限公司 Service behavior data acquisition system
CN110888780A (en) * 2019-11-19 2020-03-17 泰康保险集团股份有限公司 Application monitoring method, device, equipment and storage medium
CN112162906A (en) * 2020-09-30 2021-01-01 上海奇甲信息科技有限公司 Server behavior monitoring method of probe management platform architecture

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9626503B2 (en) * 2012-11-26 2017-04-18 Elwha Llc Methods and systems for managing services and device data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010067988A (en) * 2001-04-12 2001-07-13 이상철 System for managing service quality of wireless internet and method thereof
US7554983B1 (en) * 2004-12-20 2009-06-30 Packeteer, Inc. Probing hosts against network application profiles to facilitate classification of network traffic
CA2649104A1 (en) * 2007-02-07 2008-08-14 Advanced Media Systems Limited Methods, systems and apparatus for monitoring and/or generating communications in a communications network
CN104363262A (en) * 2014-10-21 2015-02-18 上海动盟网络技术有限公司 Wireless access device, server, service information push system and service information push method
CN106656971A (en) * 2016-10-14 2017-05-10 福建星瑞格软件有限公司 Service behavior data acquisition system
CN110888780A (en) * 2019-11-19 2020-03-17 泰康保险集团股份有限公司 Application monitoring method, device, equipment and storage medium
CN112162906A (en) * 2020-09-30 2021-01-01 上海奇甲信息科技有限公司 Server behavior monitoring method of probe management platform architecture

Also Published As

Publication number Publication date
CN113377610A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN109660397B (en) System, method and device for collecting logs
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
CN111198859B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110177300B (en) Program running state monitoring method and device, electronic equipment and storage medium
CN111209202A (en) Terminal application testing method and device
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
CN110677307B (en) Service monitoring method, device, equipment and storage medium
CN113377610B (en) Performance monitoring method, device, computer equipment and storage medium
CN115237713A (en) Application data acquisition method and device, computer equipment and storage medium
CN109597996B (en) Semantic analysis method, device, equipment and medium
CN113312036B (en) Large screen display method, device and equipment of Web page and storage medium
CN113138934B (en) Automatic test method, medium, device and computing equipment
CN113220342A (en) Centralized configuration method and device, electronic equipment and storage medium
CN112884376A (en) Work order processing method and device, electronic equipment and computer readable storage medium
CN113761306A (en) Vehicle-end data processing method and device
CN111274104B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN109542743B (en) Log checking method and device, electronic equipment and computer readable storage medium
CN109144864B (en) Method and device for testing window
CN106933449B (en) Icon processing method and device
CN112818204B (en) Service processing method, device, equipment and storage medium
CN111367500A (en) Data processing method and device
CN111262727B (en) Service capacity expansion method, device, equipment and storage medium
CN114090514A (en) Log retrieval method and device for distributed system
CN114428706A (en) Interface monitoring method and device, storage medium and electronic equipment
CN111711713A (en) Data access method, computer device and storage medium

Legal Events

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