Nothing Special   »   [go: up one dir, main page]

CN110597688A - Monitoring information acquisition method and system - Google Patents

Monitoring information acquisition method and system Download PDF

Info

Publication number
CN110597688A
CN110597688A CN201910846532.XA CN201910846532A CN110597688A CN 110597688 A CN110597688 A CN 110597688A CN 201910846532 A CN201910846532 A CN 201910846532A CN 110597688 A CN110597688 A CN 110597688A
Authority
CN
China
Prior art keywords
monitoring information
error event
transaction
monitoring
event occurrence
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.)
Pending
Application number
CN201910846532.XA
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910846532.XA priority Critical patent/CN110597688A/en
Publication of CN110597688A publication Critical patent/CN110597688A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a monitoring information acquisition method and a monitoring information acquisition system. The monitoring information acquisition method comprises the following steps: creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information; the monitoring information comprises a method full name; acquiring transaction duration and transaction data; when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information; storing the monitoring information into a queue to be processed; reading the monitoring information in the queue to be processed, and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information; and adding one to the error event occurrence value, and sending monitoring information to the monitoring platform when the added error event occurrence value is greater than or equal to the error event occurrence threshold value. The invention can loosely couple the monitoring acquisition processing logic and the service processing logic, thereby reducing the monitoring cost and providing guarantee for the stability and the usability of the system.

Description

Monitoring information acquisition method and system
Technical Field
The invention relates to the field of information monitoring, in particular to a monitoring information acquisition method and a monitoring information acquisition system.
Background
The bank systems are various in types, and business transaction processing is various. In order to ensure the stability and robustness of system operation, for important transactions, especially for account-related transactions, a developer needs to know the system operation condition at the first time, and the online of each important transaction always accompanies the development of a series of processing result monitoring functions, for example, whether each transaction is abnormal or not, whether the abnormality is sporadic or high, and the like needs to be judged. As an effective technical means for improving the stability and the availability of the system, how to efficiently, flexibly and uniformly acquire and process results and a reporting mechanism becomes a problem which needs to be solved.
At present, most transaction processing result monitoring is always accompanied with synchronous development of service processing, monitoring acquisition processing logic is often tightly coupled with service processing logic, each transaction is independently developed, multiplexing cannot be realized, the cost is high, system maintenance is not facilitated, and the efficiency is low.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a monitoring information acquisition method and a monitoring information acquisition system, so that monitoring acquisition processing logic and service processing logic are loosely coupled, monitoring cost is further reduced, and stability and usability of the system are guaranteed.
In order to achieve the above object, an embodiment of the present invention provides a monitoring information collecting method, including:
when a user transaction request is received, creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information; the monitoring information comprises a method full name;
when the transaction is finished, acquiring transaction duration and transaction data;
judging whether the transaction duration exceeds a preset transaction duration threshold value; judging whether the transaction data is abnormal or not;
when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information;
storing the monitoring information into a queue to be processed;
reading the monitoring information in the queue to be processed, and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information;
adding one to the error event occurrence value, and judging whether the error event occurrence value after adding one is larger than or equal to the error event occurrence threshold value;
and when the error event occurrence threshold is larger than or equal to the error event occurrence threshold, sending monitoring information to the monitoring platform.
An embodiment of the present invention further provides a monitoring information collecting system, including:
the monitoring information acquisition unit is used for creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information when a user transaction request is received; the monitoring information comprises a method full name;
the acquisition unit is used for acquiring transaction duration and transaction data when the transaction is finished;
the first judgment unit is used for judging whether the transaction duration exceeds a preset transaction duration threshold value; judging whether the transaction data is abnormal or not;
the error event code unit is used for generating an error event code and storing the error event code into the monitoring information when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal;
the queue unit to be processed is used for storing the monitoring information into a queue to be processed;
the reading unit is used for reading the monitoring information in the queue to be processed and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information;
a second judgment unit, configured to add one to the error event occurrence value, and judge whether the error event occurrence value after the addition of one is greater than or equal to an error event occurrence threshold;
and the sending unit is used for sending the monitoring information to the monitoring platform when the error event occurrence threshold value is greater than or equal to the error event occurrence threshold value.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps of the monitoring information acquisition method are realized when the processor executes the computer program.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the monitoring information acquisition method are implemented.
When receiving a user transaction request, the monitoring information acquisition method and system provided by the embodiment of the invention create a thread according to a preset annotation definition and start monitoring information acquisition to generate monitoring information; when the transaction is finished, acquiring transaction duration and transaction data; when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information; then, storing the monitoring information into a queue to be processed, reading the monitoring information in the queue to be processed, and acquiring an error event occurrence value in the current period according to the error event code and the method in the monitoring information; and finally, adding one to the error event occurrence value, and when the error event occurrence value after adding one is greater than or equal to the error event occurrence threshold value, sending monitoring information to the monitoring platform, so that the monitoring acquisition processing logic and the service processing logic can be loosely coupled, the monitoring cost is reduced, and the stability and the usability of the system are guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a flow chart of a monitoring information collection method in an embodiment of the invention;
fig. 2 is a block diagram of a monitoring information acquisition system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
In view of the fact that monitoring acquisition processing logic in the prior art is often tightly coupled with business processing logic, each transaction is independently developed, multiplexing cannot be achieved, cost is high, system maintenance is not facilitated, and efficiency is low, embodiments of the present invention provide a monitoring information acquisition method, so that monitoring acquisition processing logic and business processing logic are loosely coupled, monitoring cost is reduced, and stability and availability of a system are guaranteed. The present invention will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a monitoring information collection method according to an embodiment of the present invention. As shown in fig. 1, the monitoring information collecting method includes:
s101: when a user transaction request is received, creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information; the monitoring information comprises a method full name.
In one embodiment, the monitoring information further includes a transaction start time. The monitoring information acquisition method further comprises the following steps: and determining the current period according to the transaction starting time and the preset threshold clearing period.
S102: when the transaction is finished, the transaction duration and the transaction data are obtained.
S103: judging whether the transaction duration exceeds a preset transaction duration threshold value; and judging whether the transaction data is abnormal or not.
S104: and when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into the monitoring information.
S105: and storing the monitoring information into a queue to be processed.
S106: and reading the monitoring information in the queue to be processed, and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information.
In specific implementation, the system reads the monitoring information in the queue to be processed every other preset time, and processes the monitoring information circularly by taking each monitoring information as a unit. The preset time is the thread sleep time of the queue to be processed.
The transaction duration threshold, the preset time and the error event occurrence threshold can be globally defined, and notes for defining the transaction duration threshold, the preset time and the error event occurrence threshold can be added to the monitoring information; the transaction duration threshold, the preset time and the error event occurrence threshold corresponding to different monitoring information are different.
S107: and adding one to the error event occurrence value, and judging whether the error event occurrence value after adding one is larger than or equal to the error event occurrence threshold value.
In specific implementation, the invention is also provided with an error event occurrence threshold clearing period, clears the error event occurrence value exceeding the error event occurrence threshold clearing period, and resets the error event occurrence threshold clearing period at the same time.
S108: and when the error event occurrence threshold is larger than or equal to the error event occurrence threshold, sending monitoring information to the monitoring platform.
The execution subject of the monitoring information acquisition method shown in fig. 1 may be a computer. As can be seen from the process shown in fig. 1, when receiving a user transaction request, the monitoring information acquisition method and system according to the embodiment of the present invention creates a thread according to a preset annotation definition and starts monitoring information acquisition to generate monitoring information; when the transaction is finished, acquiring transaction duration and transaction data; when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information; then, storing the monitoring information into a queue to be processed, reading the monitoring information in the queue to be processed, and acquiring an error event occurrence value in the current period according to the error event code and the method in the monitoring information; and finally, adding one to the error event occurrence value, and when the error event occurrence value after adding one is greater than or equal to the error event occurrence threshold value, sending monitoring information to the monitoring platform, so that the monitoring acquisition processing logic and the service processing logic can be loosely coupled, the monitoring cost is reduced, and the stability and the usability of the system are guaranteed.
After executing S104, the method may further include: packaging the monitoring information; judging whether a monitoring main switch is turned on or not; when the monitoring master switch is turned on, judging whether an error event code is registered; when the error event code is registered, the monitoring information is saved to a queue to be processed.
The specific process of the embodiment of the invention is as follows:
1. and when a user transaction request is received, creating a thread according to the preset annotation definition, starting monitoring information acquisition, and generating monitoring information.
2. And determining the current period according to a threshold clearing period preset by the transaction starting time in the monitoring information.
3. When the transaction is finished, the transaction duration and the transaction data are obtained.
4. Judging whether the transaction duration exceeds a preset transaction duration threshold value; and judging whether the transaction data is abnormal or not. And when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into the monitoring information.
5. And packaging the monitoring information and judging whether the monitoring master switch is started or not. When the monitoring master switch is turned on, it is determined whether an error event code has been registered. When the error event code is registered, the monitoring information is saved to a queue to be processed.
6. And reading the monitoring information in the queue to be processed, and obtaining the error event occurrence value in the current period according to the error event code in the monitoring information and the method in the monitoring information.
7. And adding one to the error event occurrence value, and judging whether the error event occurrence value after adding one is larger than or equal to the error event occurrence threshold value. And when the error event occurrence threshold is larger than or equal to the error event occurrence threshold, sending monitoring information to the monitoring platform.
To sum up, when receiving a user transaction request, the monitoring information acquisition method according to the embodiment of the invention creates a thread according to a preset annotation definition and starts monitoring information acquisition to generate monitoring information; when the transaction is finished, acquiring transaction duration and transaction data; when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information; then, storing the monitoring information into a queue to be processed, reading the monitoring information in the queue to be processed, and acquiring an error event occurrence value in the current period according to the error event code and the method in the monitoring information; and finally, adding one to the error event occurrence value, and when the error event occurrence value after adding one is greater than or equal to the error event occurrence threshold value, sending monitoring information to a monitoring platform, so that the monitoring acquisition processing logic and the service processing logic can be loosely coupled, information acquisition is accurately achieved on the basis of not invading the service logic, the monitoring cost is further reduced, and the stability and the usability of the system are guaranteed.
In addition, from the realization effect, the invention can realize plug and play under different applications of homogeneous systems, realizes flexible configuration for each transaction, greatly meets the requirement of system operation monitoring, effectively shortens the discovery time of system operation faults, and provides powerful support for rapidly solving the problems and improving the system availability.
Based on the same inventive concept, the embodiment of the invention also provides a monitoring information acquisition system, and as the principle of solving the problems of the system is similar to the monitoring information acquisition method, the implementation of the system can refer to the implementation of the method, and repeated parts are not described again.
Fig. 2 is a block diagram of a monitoring information acquisition system according to an embodiment of the present invention. As shown in fig. 2, the monitoring information collecting system includes:
the monitoring information acquisition unit is used for creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information when a user transaction request is received; the monitoring information comprises a method full name;
the acquisition unit is used for acquiring transaction duration and transaction data when the transaction is finished;
the first judgment unit is used for judging whether the transaction duration exceeds a preset transaction duration threshold value; judging whether the transaction data is abnormal or not;
the error event code unit is used for generating an error event code and storing the error event code into the monitoring information when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal;
the queue unit to be processed is used for storing the monitoring information into a queue to be processed;
the reading unit is used for reading the monitoring information in the queue to be processed and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information;
a second judgment unit, configured to add one to the error event occurrence value, and judge whether the error event occurrence value after the addition of one is greater than or equal to an error event occurrence threshold;
and the sending unit is used for sending the monitoring information to the monitoring platform when the error event occurrence threshold value is greater than or equal to the error event occurrence threshold value.
In one embodiment, the method further comprises the following steps:
the packaging unit is used for packaging the monitoring information;
the third judging unit is used for judging whether the monitoring master switch is started or not;
the queue unit to be processed is specifically configured to: and when the monitoring master switch is turned on, the monitoring information is stored in a queue to be processed.
In one embodiment, the method further comprises the following steps:
the fourth judging unit is used for judging whether the error event code is registered or not when the monitoring master switch is started;
the queue unit to be processed is specifically configured to: when the error event code is registered, the monitoring information is saved to a queue to be processed.
In one embodiment, the monitoring information further includes: a transaction start time;
the monitoring information acquisition system further includes:
and the current period determining unit is used for determining the current period according to the transaction starting time and the preset threshold clearing period.
To sum up, when receiving a user transaction request, the monitoring information acquisition system of the embodiment of the invention creates a thread according to a preset annotation definition and starts monitoring information acquisition to generate monitoring information; when the transaction is finished, acquiring transaction duration and transaction data; when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information; then, storing the monitoring information into a queue to be processed, reading the monitoring information in the queue to be processed, and acquiring an error event occurrence value in the current period according to the error event code and the method in the monitoring information; and finally, adding one to the error event occurrence value, and when the error event occurrence value after adding one is greater than or equal to the error event occurrence threshold value, sending monitoring information to a monitoring platform, so that the monitoring acquisition processing logic and the service processing logic can be loosely coupled, information acquisition is accurately achieved on the basis of not invading the service logic, the monitoring cost is further reduced, and the stability and the usability of the system are guaranteed.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, all or part of the content of the monitoring information acquisition method may be implemented, for example, when the processor executes the computer program, the following content may be implemented:
when a user transaction request is received, creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information; the monitoring information comprises a method full name;
when the transaction is finished, acquiring transaction duration and transaction data;
judging whether the transaction duration exceeds a preset transaction duration threshold value; judging whether the transaction data is abnormal or not;
when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information;
storing the monitoring information into a queue to be processed;
reading the monitoring information in the queue to be processed, and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information;
adding one to the error event occurrence value, and judging whether the error event occurrence value after adding one is larger than or equal to the error event occurrence threshold value;
and when the error event occurrence threshold is larger than or equal to the error event occurrence threshold, sending monitoring information to the monitoring platform.
To sum up, when the computer device of the embodiment of the present invention receives a user transaction request, a thread is created according to a preset annotation definition and monitoring information acquisition is started to generate monitoring information; when the transaction is finished, acquiring transaction duration and transaction data; when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information; then, storing the monitoring information into a queue to be processed, reading the monitoring information in the queue to be processed, and acquiring an error event occurrence value in the current period according to the error event code and the method in the monitoring information; and finally, adding one to the error event occurrence value, and when the error event occurrence value after adding one is greater than or equal to the error event occurrence threshold value, sending monitoring information to a monitoring platform, so that the monitoring acquisition processing logic and the service processing logic can be loosely coupled, information acquisition is accurately achieved on the basis of not invading the service logic, the monitoring cost is further reduced, and the stability and the usability of the system are guaranteed.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, may implement all or part of the content of the monitoring information acquisition method, for example, when the processor executes the computer program, the following content may be implemented:
when a user transaction request is received, creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information; the monitoring information comprises a method full name;
when the transaction is finished, acquiring transaction duration and transaction data;
judging whether the transaction duration exceeds a preset transaction duration threshold value; judging whether the transaction data is abnormal or not;
when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information;
storing the monitoring information into a queue to be processed;
reading the monitoring information in the queue to be processed, and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information;
adding one to the error event occurrence value, and judging whether the error event occurrence value after adding one is larger than or equal to the error event occurrence threshold value;
and when the error event occurrence threshold is larger than or equal to the error event occurrence threshold, sending monitoring information to the monitoring platform.
To sum up, when receiving a user transaction request, the computer-readable storage medium according to the embodiment of the present invention creates a thread according to a preset annotation definition and starts monitoring information acquisition to generate monitoring information; when the transaction is finished, acquiring transaction duration and transaction data; when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into monitoring information; then, storing the monitoring information into a queue to be processed, reading the monitoring information in the queue to be processed, and acquiring an error event occurrence value in the current period according to the error event code and the method in the monitoring information; and finally, adding one to the error event occurrence value, and when the error event occurrence value after adding one is greater than or equal to the error event occurrence threshold value, sending monitoring information to a monitoring platform, so that the monitoring acquisition processing logic and the service processing logic can be loosely coupled, information acquisition is accurately achieved on the basis of not invading the service logic, the monitoring cost is further reduced, and the stability and the usability of the system are guaranteed.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A monitoring information acquisition method is characterized by comprising the following steps:
when a user transaction request is received, creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information; the monitoring information comprises a method full name;
when the transaction is finished, acquiring transaction duration and transaction data;
judging whether the transaction duration exceeds a preset transaction duration threshold value; judging whether the transaction data is abnormal or not;
when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal, generating an error event code and storing the error event code into the monitoring information;
storing the monitoring information into a queue to be processed;
reading the monitoring information in the queue to be processed, and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information;
adding one to the error event occurrence value, and judging whether the error event occurrence value after adding one is larger than or equal to an error event occurrence threshold value;
and when the error event occurrence threshold value is larger than or equal to the error event occurrence threshold value, sending the monitoring information to a monitoring platform.
2. The monitoring information collecting method according to claim 1, further comprising, after saving the error event code in the monitoring information:
packaging the monitoring information;
judging whether a monitoring main switch is turned on or not;
and when the monitoring master switch is turned on, storing the monitoring information into a queue to be processed.
3. The monitoring information collecting method according to claim 2, further comprising:
when the monitoring master switch is turned on, judging whether the error event code is registered;
and when the error event code is registered, storing the monitoring information into a queue to be processed.
4. The monitoring information collecting method according to claim 1,
the monitoring information further includes: a transaction start time;
the monitoring information acquisition method further comprises the following steps:
and determining the current period according to the transaction starting time and a preset threshold clearing period.
5. A monitoring information acquisition system, comprising:
the monitoring information acquisition unit is used for creating a thread according to a preset annotation definition and starting monitoring information acquisition to generate monitoring information when a user transaction request is received; the monitoring information comprises a method full name;
the acquisition unit is used for acquiring transaction duration and transaction data when the transaction is finished;
the first judgment unit is used for judging whether the transaction duration exceeds a preset transaction duration threshold value; judging whether the transaction data is abnormal or not;
the error event code unit is used for generating an error event code and storing the error event code into the monitoring information when the transaction duration exceeds a preset transaction duration threshold or the transaction data is abnormal;
the queue unit to be processed is used for storing the monitoring information into a queue to be processed;
the reading unit is used for reading the monitoring information in the queue to be processed and acquiring the error event occurrence value in the current period according to the error event code and the method in the monitoring information;
a second judging unit, configured to add one to the error event occurrence value, and judge whether the added error event occurrence value is greater than or equal to an error event occurrence threshold;
and the sending unit is used for sending the monitoring information to the monitoring platform when the error event occurrence threshold value is greater than or equal to the error event occurrence threshold value.
6. The monitoring information acquisition system according to claim 5, further comprising:
the packaging unit is used for packaging the monitoring information;
the third judging unit is used for judging whether the monitoring master switch is started or not;
the queue unit to be processed is specifically configured to: and when the monitoring master switch is turned on, storing the monitoring information into a queue to be processed.
7. The monitoring information acquisition system according to claim 6, further comprising:
the fourth judging unit is used for judging whether the error event code is registered or not when the monitoring master switch is started;
the queue unit to be processed is specifically configured to: and when the error event code is registered, storing the monitoring information into a queue to be processed.
8. The monitoring information acquisition system according to claim 5,
the monitoring information further includes: a transaction start time;
the monitoring information acquisition system further includes:
and the current period determining unit is used for determining the current period according to the transaction starting time and a preset threshold clearing period.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the monitoring information collecting method according to any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the monitoring information collecting method of any one of claims 1 to 4.
CN201910846532.XA 2019-09-09 2019-09-09 Monitoring information acquisition method and system Pending CN110597688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910846532.XA CN110597688A (en) 2019-09-09 2019-09-09 Monitoring information acquisition method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910846532.XA CN110597688A (en) 2019-09-09 2019-09-09 Monitoring information acquisition method and system

Publications (1)

Publication Number Publication Date
CN110597688A true CN110597688A (en) 2019-12-20

Family

ID=68858503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910846532.XA Pending CN110597688A (en) 2019-09-09 2019-09-09 Monitoring information acquisition method and system

Country Status (1)

Country Link
CN (1) CN110597688A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111401874A (en) * 2020-04-15 2020-07-10 中国银行股份有限公司 Self-service transaction system monitoring method and device
CN112596996A (en) * 2020-12-28 2021-04-02 中国农业银行股份有限公司 Service monitoring method and device
CN113608960A (en) * 2021-07-09 2021-11-05 五八有限公司 Service monitoring method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625740A (en) * 2009-07-28 2010-01-13 交通银行股份有限公司 Application business monitoring method, device and system
US20100153069A1 (en) * 2008-12-17 2010-06-17 Microsoft Corporation Monitoring activity on a computer
CN107481004A (en) * 2017-08-11 2017-12-15 中国工商银行股份有限公司 Transaction risk crime prevention system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153069A1 (en) * 2008-12-17 2010-06-17 Microsoft Corporation Monitoring activity on a computer
CN101625740A (en) * 2009-07-28 2010-01-13 交通银行股份有限公司 Application business monitoring method, device and system
CN107481004A (en) * 2017-08-11 2017-12-15 中国工商银行股份有限公司 Transaction risk crime prevention system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111401874A (en) * 2020-04-15 2020-07-10 中国银行股份有限公司 Self-service transaction system monitoring method and device
CN111401874B (en) * 2020-04-15 2023-08-01 中国银行股份有限公司 Self-service transaction system monitoring method and device
CN112596996A (en) * 2020-12-28 2021-04-02 中国农业银行股份有限公司 Service monitoring method and device
CN113608960A (en) * 2021-07-09 2021-11-05 五八有限公司 Service monitoring method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108280022B (en) Performance monitoring method and device
WO2018072408A1 (en) Memory analysis method, device, system and computing device
CN108121543B (en) Software code compiling processing method and device
CN111752776B (en) Cyclic power-on and power-off test method and system for server
CN110597688A (en) Monitoring information acquisition method and system
WO2017032265A1 (en) Application push method and apparatus, and a serving device
CN107741910B (en) Application program installation performance testing method and device, computing equipment and storage medium
JP2017512322A (en) Software fault location method, apparatus and equipment
CN108595178B (en) Hook-based data acquisition method, device and equipment
US8719622B2 (en) Recording and preventing crash in an appliance
CN108255659B (en) Application program performance monitoring method and system
CN111026794A (en) Data management method, device, equipment and medium based on data source
CN112181695A (en) Abnormal application processing method, device, server and storage medium
CN116339908A (en) Virtual machine starting method, device, computer equipment and storage medium
WO2013111317A1 (en) Information processing method, device and program
CN110322153A (en) Monitor event processing method and system
US9251028B2 (en) Managing code instrumentation in a production computer program
CN113297149A (en) Method and device for monitoring data processing request
CN110704226A (en) Data verification method, device and storage medium
CN103092710A (en) High available virtual machine running method in cloud computing operating system
CN111124730A (en) Error positioning method and device for server and computer storage medium
CN110688320A (en) Global variable detection method and device and terminal equipment
CN111027844A (en) Method and device for managing life cycle of equipment, readable medium and electronic equipment
CN106649352B (en) Data processing method and device
JP2011154465A (en) Management device, management method, and management program for information processor

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220