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

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

Info

Publication number
CN113377610A
CN113377610A CN202110631210.0A CN202110631210A CN113377610A CN 113377610 A CN113377610 A CN 113377610A CN 202110631210 A CN202110631210 A CN 202110631210A CN 113377610 A CN113377610 A CN 113377610A
Authority
CN
China
Prior art keywords
service
data
performance monitoring
target
definition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110631210.0A
Other languages
Chinese (zh)
Other versions
CN113377610B (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

Images

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 performance monitoring device, performance monitoring 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 the performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to perform performance monitoring 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 the operation and maintenance cost when the probe is deployed, and improve the performance monitoring flexibility and the user experience effect.

Description

Performance monitoring method and 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 and device, computer equipment and a storage medium.
Background
In the monitoring process of the application performance, due to the diversity of the service scenarios and the service functions, the collected application performance data needs to be divided in multiple dimensions, for example, data reported by each probe is displayed from the probe dimension, or data reported by each service is displayed by taking all probes in the same service function or scenario as the dimension, and the like. Therefore, how to classify and divide the dimension of the application performance data reported by the probe according to the service is a problem to be solved in the industry.
In the prior art, application performance data reported by a probe is classified and divided according to services, and the generally adopted method includes directly writing a service name into a configuration file of the probe in a configuration form, or defining the service with a certain fixed dimension, for example, defining the service with an interface URL (Uniform Resource Locator) name, a name of a process group in which the probe is located, and the like.
However, the service partitioning 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, the probes are excessively invaded, all the 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; the method for defining the service by a certain fixed dimension is difficult to realize dimension switching and is not flexible and intelligent in service; and the definition of the service is completely based on the information reported by the probe, the service customization can not be realized, and the user friendliness is not enough.
Disclosure of Invention
Embodiments of the present invention provide a performance monitoring method and apparatus, a computer device, and a storage medium, so as to implement customization and automation of service division for performance data, reduce complexity and operation and maintenance cost when deploying a probe, and improve performance monitoring flexibility and 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 perform performance monitoring 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 the 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 device, where the computer device includes:
one or more processors;
storage means for storing 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 invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the performance monitoring method provided in any embodiment of the present invention.
According to the embodiment of the invention, the service definition data of the target probe is obtained, and 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, and based on the service definition data of the configured target probe, the problems that in the prior art, excessive invasion to probe configuration is caused when service division is required, or the service division mode lacks flexibility and user freedom are solved, the self-definition and automation of service division of the performance data are realized, the complexity and operation and maintenance cost in probe deployment are reduced, and the performance monitoring flexibility and the user experience effect are improved.
Drawings
Fig. 1 is a flowchart of a performance monitoring method according to an 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 schematic flowchart 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 apparatus 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 present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a performance monitoring method according to an embodiment of the present invention, where the method is applicable to a situation where performance data reported by a probe is divided into services to perform performance monitoring, and the method may be executed 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 generally be integrated in a computer device. Accordingly, as shown in fig. 1, the method comprises the following operations:
and S110, acquiring service definition data of the target probe.
The target probe can 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 acquired and reported by the target probe to perform performance monitoring of a specific dimension.
Correspondingly, the target probe may be a pre-deployed probe for monitoring application performance, and may collect and report application performance data, so that the reported application performance data may be classified and divided according to services. The service definition data of the target probe can be preset according to needs, and a user can determine the dimension required for performance monitoring of the application and the probe corresponding to the application performance data required by each dimension, so that the dimension to which the application performance data acquired and reported by the target probe belongs 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 acquired and reported by the target probe so as to monitor the performance of a specific dimension.
Accordingly, a performance monitoring service matching the target probe may be determined based on the service definition data. The performance monitoring service may be matched with one or more probes, and thus, the performance monitoring service determined according to the service definition data may be determined from all the services currently existing; or a service that does not exist at the present time, the performance monitoring service may be created according to the service definition data.
S130, receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to perform performance monitoring 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 can be provided to the performance monitoring service matched with the target probe, so that the performance monitoring service can display 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 with the target probe, and stored in the 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 an average time consumed by page loading, and the service definition data specifies that the matched performance monitoring service is a "page loading service", and then the received data sent by the target probe may be provided to the performance monitoring service, and 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 comprises the steps of obtaining service definition data of a target probe, determining performance monitoring service matched with the target probe according to the service definition data, providing the received performance monitoring data sent by the target probe to the performance monitoring service matched with the target probe, and carrying out performance monitoring through the performance monitoring service.
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 on the basis of the above-described embodiments, and in the embodiment of the present invention, a specific optional implementation manner for acquiring the service definition data of the target probe is given.
As shown in fig. 2, the method of the embodiment of the present invention specifically includes:
s210, acquiring service definition data of the target probe.
In an optional embodiment of the present invention, S210 may specifically include:
and S211, receiving the probe configuration data sent by the target probe.
Wherein the probe configuration data may be data describing properties of the target probe.
Accordingly, various attributes of the target probe can be determined by probe configuration data, and the probe configuration data may include, for example, self configuration data such as identification data of the target probe, a communication protocol type and a name of a process group to which the target probe belongs, and parameter configuration data in an acquisition process such as a sampling frequency of data acquired by 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, and 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 which has a binding relation with the probe configuration data in the 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 the probe configuration data and the service definition data of each target probe.
Correspondingly, the first database may store one or more service definition data, and different service definition data may be data specifying performance monitoring services matched with different target probes, and may determine a corresponding relationship between the service definition data and the target probes, so that probe configuration data of the target probes may be obtained, and a binding relationship between the probe configuration data of the target probes and the corresponding service definition data thereof may be established and stored in the first database. Therefore, according to the received probe configuration data of the target probe, the service definition data having a binding relationship with the probe configuration data may be queried in the first database, that is, the service definition data of the target probe is obtained.
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 service definition data having a binding relationship with the ID of the target probe may be queried in the first database.
In an optional embodiment of the present invention, before the acquiring the service definition data of the target probe, the method may further include: reading the updating definition data in the second database under the preset cache time; and determining a binding relationship between the probe configuration data and the service definition data according to the updating definition data, and updating the binding relationship into the first database.
The preset buffering time can be any preset time. The second database may be adapted to receive and store said 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 updated definition data may be data specifying the performance monitoring service matched with the target probe, which is input by the user through the user-defined channel between the current time and the last preset buffer time.
Specifically, the first database may be any cache database, and optionally, may be a Redis database. The second database may be any readable and writable database, and may alternatively be a MySQL database. The user-defined channel may be any channel that can be provided to a user and receive user input data, and may alternatively be a Web (Web page) interface.
Accordingly, the update definition data may be user defined, such that the update definition data may be entered and sent to the second database via the user defined channel. The second database may store the updated definition data after receiving the updated definition data through the user-defined channel. When the preset caching time is reached, reading all stored updating definition data between the preset caching time and the last preset caching time in the second database, so that the service definition data matched with the target probe needing to be newly generated or updated in the period of time can be determined according to the updating definition data, that is, the binding relationship between the probe configuration data needing to be generated or updated and the service definition data is determined, and the binding relationship can be updated to the first database.
And S220, determining the performance monitoring service matched with the target probe according to the service definition data.
In an optional 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 first type definition data, obtaining self-defined associated data in the service definition data; and acquiring target custom service corresponding to the custom associated data, and determining the target custom service as the performance monitoring service matched with the target probe.
Wherein the first type definition data may be service definition data capable of independently defining the performance monitoring service. The custom association data may be data that is used to describe the performance monitoring service. The target customization service may be a performance monitoring service described by the customization 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 limited by the service definition data, so that the self-defined associated data in the service definition data is obtained, and the target self-defined service can be obtained according to the description of the self-defined associated data. After the target customized service is obtained, the target customized service can be determined as the performance monitoring service matched with the target probe.
Optionally, the custom associated data may be a service name customized by the user, and the performance monitoring service matched with the target probe may be determined as the service corresponding to the name according to the service name.
In an optional 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 second type definition data, generating configuration associated data according to the service definition data and probe configuration data of the target probe; acquiring a target configuration definition service corresponding to the configuration associated 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.
The second type definition data may be service definition data which can define the performance monitoring service together with the probe configuration data, and may be used for describing rules for generating configuration association data according to the probe configuration data. The configuration association data may be data generated from the rules described by the second type definition data and the 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 the configuration association data. The service identification data may be data identifying the target configuration definition service, and may optionally be a service ID.
Accordingly, the service definition data of the target probe is the second type definition data, which may indicate that the performance monitoring service matched with the target probe may be defined by the service definition data and the probe configuration data together, and then the service definition data and the probe configuration data of the target probe may be obtained, and the configuration association data may be generated, so that the target configuration definition service may 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 the configuration definition association data, so as to obtain service identification data of the performance monitoring service; or the service identification data may not exist, and a performance monitoring service newly generated according to the configuration definition association data is needed, so that the service identification data of the performance monitoring service can be acquired after the performance monitoring service is generated. Further, the service identification data is 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.
Optionally, the configuration related data may be a service name determined according to the probe configuration data, the service definition data may be a rule for determining the 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 with the target probe is determined as the service corresponding to the name. Specifically, optionally, the probe configuration data may include a docker image 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 image name, the k8s container name, the start environment variable, and the process group name.
In an optional embodiment of the present invention, the obtaining of the target configuration definition service corresponding to the configuration association data and the service identification data of the target configuration definition service may include: under the condition that the target configuration definition service is determined to exist, acquiring service identification data of the target configuration definition service; and under the condition that the target configuration definition service does not exist, generating the target configuration definition service and service identification data of the target configuration definition service according to the configuration association data.
Accordingly, the search can be performed in all the existing performance monitoring services according to the description of the configuration association data. If the performance monitoring service meeting the description of the configuration associated 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 meeting the description of the configuration associated 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 associated data.
In an optional embodiment of the present invention, the determining the performance monitoring service matching the target probe according to the service identification data may include: acquiring current matching service matched with the target probe at the current moment; under the condition that the service identification data is determined to be matched with the current matching service, determining the current matching service as a performance monitoring service matched with the target probe; determining the target configuration definition service as a performance monitoring service matching the target probe if it is determined that the service identification data does not match the currently matching service.
Wherein 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 or not can be determined by judging whether the current matching service is the performance monitoring service identified by the service identification data or not. Specifically, if the current matching service is the 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, 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, that is, the service identification data is determined not to be matched with the current matching service, the performance monitoring service matched with the target probe needs to be updated to the target configuration definition service from 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 perform performance monitoring 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.
Wherein the application data receiver is configured to perform any of the performance monitoring methods provided by embodiments of the present 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 probe agents 1 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 fig. 4, the service naming rule configured by the user may be received in advance through the user-defined channel web interface and saved to MySQL. Then the application data receiver Controller can read the service naming rule which is added or updated recently from MySQL in a timing mode, and cache the service naming rule 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 receiving the basic configuration data reported by the probe, the Controller acquires the bound service information from the Redis according to the probe ID. And if the service bound by the current probe is in the self-defined configuration, determining the binding relationship between the probe and the service according to the self-defined configuration. If the service bound by the current probe is not configured by the user-defined mode, the service name can be automatically generated according to the configuration rule and the basic information of the probe, and whether the generated service name exists or not is verified. 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 directly returned. And then, whether the returned service ID is consistent with the service ID bound by the current probe can be checked, and if not, the new service ID is updated 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 comprises the steps of obtaining service definition data of a target probe, determining performance monitoring service matched with the target probe according to the service definition data, providing the received performance monitoring data sent by the target probe to the performance monitoring service matched with the target probe, and carrying out performance monitoring through the performance monitoring service.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a performance monitoring apparatus according to a third embodiment of the present invention, as shown in fig. 5, the apparatus 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 determination module 320, configured to determine, according to the service definition data, a performance monitoring service matching the target probe.
The monitoring data receiving module 330 is configured to receive 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 optional implementation manner of the embodiment of the present invention, the service data obtaining module 310 may be specifically configured to: receiving probe configuration data sent by the target probe; querying, in a first database, the service definition data having a binding relationship with the probe configuration data.
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 the updating definition data in the second database in the preset caching time; wherein the second database receives and stores the update definition data through a user-defined channel; and determining a binding relationship between the probe configuration data and the service definition data according to the updating definition data, and updating the binding relationship into the first database.
In an optional implementation manner of the embodiment of the present invention, the service determination module 320 may include: the first service determining submodule is used for acquiring self-defined associated data in the service definition data under the condition that the service definition data is determined to be first type definition data; and acquiring target custom service corresponding to the custom associated data, and determining the target custom service as the performance monitoring service matched with the target probe.
In an optional implementation manner of the embodiment of the present invention, the service determination module 320 may include: the second service determining submodule is used for generating configuration associated data according to the service definition data and the probe configuration data of the target probe under the condition that the service definition data are determined to be second type definition data; acquiring a target configuration definition service corresponding to the configuration associated 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 optional implementation manner of the embodiment of the present invention, the second service determination submodule may be specifically configured to: under the condition that the target configuration definition service is determined to exist, acquiring service identification data of the target configuration definition service; and under the condition that the target configuration definition service does not exist, generating the target configuration definition service and service identification data of the target configuration definition service according to the configuration association data.
In an optional implementation manner of the embodiment of the present invention, the second service determination submodule may be specifically configured to: acquiring current matching service matched with the target probe at the current moment; under the condition that the service identification data is determined to be matched with the current matching service, determining the current matching service as a performance monitoring service matched with the target probe; determining the target configuration definition service as a performance monitoring service matching the target probe if it is determined that the service identification data does not match the currently matching service.
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 characterized in that performance monitoring service matched with a target probe is determined according to service definition data by acquiring the service definition data of the target probe, 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, and based on the service definition data of the configured target probe, the problems that the probe configuration is excessively invaded when service division is needed in the prior art or the service division mode is lack of flexibility and user freedom degree are solved, the self-defining and automation of the service division of the performance data are realized, the complexity and operation and maintenance cost of the probe deployment are reduced, and the performance monitoring flexibility and the user experience effect are improved.
Example four
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 only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 6, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors 16, a memory 28, and a bus 18 that connects the various system components (including the memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, 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 may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The 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. 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 and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are 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, for example, in 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 of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the 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 conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes various functional applications and data processing by running the program stored in the memory 28, so as to implement the performance monitoring method provided by the embodiment 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 perform performance monitoring through the performance monitoring service.
EXAMPLE five
Fifth, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for monitoring performance provided in the fifth embodiment of the present invention is implemented: 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 perform performance monitoring 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 the context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

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;
and receiving performance monitoring data sent by the target probe, and providing the performance monitoring data to the performance monitoring service so as to perform performance monitoring through the performance monitoring service.
2. The method of claim 1, wherein the obtaining service definition data of the target probe comprises:
receiving probe configuration data sent by the target probe;
querying, in a first database, the service definition data having a binding relationship with the probe configuration data.
3. The method of claim 2, further comprising, prior to said obtaining service definition data for a target probe:
reading the updating definition data in the second database under the preset cache time; wherein the second database receives and stores the update definition data through a user-defined channel;
and determining a binding relationship between the probe configuration data and the service definition data according to the updating definition data, and updating the binding relationship into the first database.
4. The method of claim 1, wherein determining the performance monitoring service matching the target probe from the service definition data comprises:
under the condition that the service definition data is determined to be first type definition data, obtaining self-defined associated data in the service definition data;
and acquiring target custom service corresponding to the custom associated data, and determining the target custom service as the performance monitoring service matched with the target probe.
5. The method of claim 1, wherein determining the performance monitoring service matching the target probe from the service definition data comprises:
under the condition that the service definition data is determined to be second type definition data, generating configuration associated data according to the service definition data and probe configuration data of the target probe;
acquiring a target configuration definition service corresponding to the configuration associated 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.
6. The method according to claim 5, wherein the obtaining of the target configuration definition service corresponding to the configuration association data and the service identification data of the target configuration definition service includes:
under the condition that the target configuration definition service is determined to exist, acquiring service identification data of the target configuration definition service;
and under the condition that the target configuration definition service does not exist, generating the target configuration definition service and service identification data of the target configuration definition service according to the configuration association data.
7. The method of claim 5, wherein said determining the performance monitoring service that matches the target probe based on the service identification data comprises:
acquiring current matching service matched with the target probe at the current moment;
under the condition that the service identification data is determined to be matched with the current matching service, determining the current matching service as a performance monitoring service matched with the target probe;
determining the target configuration definition service as a performance monitoring service matching the target probe if it is determined that the service identification data does not match the currently matching service.
8. A performance monitoring device, 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 the 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.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the performance monitoring method of any one of claims 1-7.
10. A computer storage medium having a computer program stored thereon, the program, when executed by a processor, implementing the performance monitoring method of any one of claims 1-7.
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 true CN113377610A (en) 2021-09-10
CN113377610B 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)

Cited By (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 (8)

* 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
US20140123298A1 (en) * 2012-11-26 2014-05-01 Elwha Llc Methods and systems for managing services and device data
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

Patent Citations (8)

* 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
US20140123298A1 (en) * 2012-11-26 2014-05-01 Elwha Llc Methods and systems for managing services and device data
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

Cited By (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

Also Published As

Publication number Publication date
CN113377610B (en) 2024-05-31

Similar Documents

Publication Publication Date Title
CN109543462B (en) Equipment identification determination method, device, server and storage medium
CN111209202A (en) Terminal application testing method and device
CN110956269B (en) Method, device, equipment and computer storage medium for generating data model
CN110955578A (en) Log collection method and device based on host machine, computer equipment and storage medium
CN109726091B (en) Log management method and related device
CN109905292B (en) Terminal equipment identification method, system and storage medium
CN109815105A (en) Applied program testing method and device based on Btrace
CN104579830A (en) Service monitoring method and device
CN110677307B (en) Service monitoring method, device, equipment and storage medium
CN111859139A (en) Application program recommendation method and device, computing equipment and medium
CN111813685A (en) Automatic testing method and device
CN113377610B (en) Performance monitoring method, device, computer equipment and storage medium
CN114398044A (en) Vehicle control and software configuration method, device, electronic equipment and storage medium
CN112084114B (en) Method and apparatus for testing interfaces
CN112884376A (en) Work order processing method and device, electronic equipment and computer readable storage medium
CN113760499A (en) Method, device, computing equipment and medium for scheduling computing unit
CN109144864B (en) Method and device for testing window
CN111367500A (en) Data processing method and device
CN114328130B (en) Server monitoring method, system, equipment and computer readable storage medium
CN106933449B (en) Icon processing method and device
CN111382057B (en) Test case generation method, test method and device, server and storage medium
CN107872874B (en) Method for updating positioning data, server and computer readable medium
CN111711713A (en) Data access method, computer device and storage medium
CN111651330A (en) Data acquisition method and device, electronic equipment and computer readable storage medium
CN106844188A (en) A kind of test agent method, device and test system

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