CN109271289A - A kind of application interface monitoring method, device, equipment and computer-readable medium - Google Patents

A kind of application interface monitoring method, device, equipment and computer-readable medium Download PDF

Info

Publication number
CN109271289A
CN109271289A CN201710584725.3A CN201710584725A CN109271289A CN 109271289 A CN109271289 A CN 109271289A CN 201710584725 A CN201710584725 A CN 201710584725A CN 109271289 A CN109271289 A CN 109271289A
Authority
CN
China
Prior art keywords
application interface
service
itself
journal file
party
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
CN201710584725.3A
Other languages
Chinese (zh)
Other versions
CN109271289B (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.)
Che Bole (beijing) Mdt Infotech Ltd
Original Assignee
Che Bole (beijing) Mdt Infotech Ltd
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 Che Bole (beijing) Mdt Infotech Ltd filed Critical Che Bole (beijing) Mdt Infotech Ltd
Priority to CN201710584725.3A priority Critical patent/CN109271289B/en
Publication of CN109271289A publication Critical patent/CN109271289A/en
Application granted granted Critical
Publication of CN109271289B publication Critical patent/CN109271289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/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
    • 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/3409Recording 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 for performance assessment

Landscapes

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

Abstract

The present invention provides a kind of application interface monitoring methods, this method comprises: obtaining step, is stored in journal file for obtaining the calling data of application interface, and by the calling data;The journal file of all application interfaces is uploaded to server by collection step;Analytical procedure analyzes the journal file of collection, and analysis result is shown in the form of 3-D graphic.The present invention is by being monitored the calling between the application interface between service itself and third party's service, so as to analyze the running quality between each application interface, and then the quality of monitoring service, achieve the effect that fine granularity monitors, and the normalized function value calculating method of application interface fault location is proposed, achieve the purpose that quick positioning failure.

Description

A kind of application interface monitoring method, device, equipment and computer-readable medium
Technical field
The present invention relates to program monitoring technology field, especially a kind of application interface monitoring method, device, equipment and calculating Machine readable medium.
Background technique
Currently, existing service monitoring can be divided into physical resource monitoring, such as network, disk, cpu from monitored object The monitoring of load etc.;And the monitoring of service layer.Common monitor supervision platform such as Zabbix listens cloud, the monitoring of Ali's cloud etc..From using Level is said, the third-party platform of open source can be divided into, or grinds platform certainly.Third-party platform, which is advantageous in that, facilitates deployment, fastly Speed uses, the disadvantage is that can not Complete customization;And the benefit ground certainly just is that granularity convenient for control, only takes the number of oneself care According to.
As it can be seen that monitored object in the prior art is all macroscopical monitored object, it is difficult to monitor the performance of application interface, less The invocation performance between application interface can be monitored, so that it is difficult to find failure existing for application interface, and by manually from log Mode check application interface failure efficiency it is extremely low, be not suitable for large-scale application system, and the analysis result one of the prior art As shown with two dimensional form, be not easy to check.
Summary of the invention
The present invention is directed to above-mentioned defect in the prior art, proposes following technical solution.
A kind of application interface monitoring method, this method comprises:
Obtaining step is stored in journal file for obtaining the calling data of application interface, and by the calling data;
The journal file of all application interfaces is uploaded to server by collection step;
Analytical procedure analyzes the journal file of collection, and analysis result is shown in the form of 3-D graphic.
Further, the calling data include application interface name, call time-consuming and/or return code.
Further, the application interface includes the third party's clothes for servicing the application interface of itself and servicing calling itself The application interface of business.
Further, all third party's services that record service itself is called in the service code for servicing itself Application interface, and uniform service itself is for the application interface of the calling of third party's service.
Further, the method also includes:
Fault location step determines the location of fault based on the analysis result.
Further, the concrete operations of the fault location step are as follows:
The execution efficiency e, processor occupation rate p and memory usage m of each application interface are obtained from journal file;
Normalized function value is calculated for each application interfaceWherein w1、w2For weight;
It is sorted according to the normalized function value of all references interface, determines the minimum application interface of normalized function value for event Hinder position.
The invention proposes a kind of application interface monitoring device, which includes:
Acquiring unit is stored in journal file for obtaining the calling data of application interface, and by the calling data;
The journal file of all application interfaces is uploaded to server by collector unit;
Analytical unit analyzes the journal file of collection, and analysis result is shown in the form of 3-D graphic.
Further, the calling data include application interface name, call time-consuming and/or return code.
Further, the application interface includes the third party's clothes for servicing the application interface of itself and servicing calling itself The application interface of business.
Further, all third party's services that record service itself is called in the service code for servicing itself Application interface, and uniform service itself is for the application interface of the calling of third party's service.
Further, described device further include:
Failure location unit determines the location of fault based on the analysis result.
Further, the concrete operations that the failure location unit executes are as follows:
The execution efficiency e, processor occupation rate p and memory usage m of each application interface are obtained from journal file;
Normalized function value is calculated for each application interfaceWherein w1、w2For weight;
It is sorted according to the normalized function value of all references interface, determines the minimum application interface of normalized function value for event Hinder position.
The invention also provides a kind of application interface monitoring devices, which is characterized in that the equipment includes processor, storage Device, the processor are connected with the memory by bus, and machine readable code, the processing are stored in the memory Device executes the method that above-mentioned any one can be performed in the machine readable code in memory.
The invention also provides a kind of computer readable storage mediums, which is characterized in that is stored on the storage medium Above-mentioned any method can be performed when the computer program code is computer-executed for computer program code.
Technical effect of the invention are as follows: by the calling between the application interface between service itself and third party's service It is monitored, so as to analyze the running quality between each application interface, and then the quality of monitoring service, reaches fine granularity prison The effect of control, and the normalized function value calculating method of application interface fault location is proposed, reach the mesh of quick positioning failure 's.
Detailed description of the invention
Fig. 1 is a kind of flow chart of application interface monitoring method of the invention.
Fig. 2 is a kind of flow chart of another embodiment of application interface monitoring method of the invention.
Fig. 3 is a kind of structural schematic diagram of application interface monitoring device of the invention.
Fig. 4 is a kind of structural schematic diagram of another embodiment of application interface monitoring device of the invention.
Fig. 5 is a kind of structural schematic diagram of application interface monitoring device of the invention.
Specific embodiment
1-5 is specifically described with reference to the accompanying drawing.
Fig. 1 shows a kind of application interface monitoring method of the invention, this method comprises:
S11, obtaining step are stored in log text for obtaining the calling data of application interface, and by the calling data In part;
The journal file of all application interfaces is uploaded to server by S12, collection step;
S13, analytical procedure analyze the journal file of collection, and analysis result is shown in the form of 3-D graphic.
The present invention is in order to solve the calling between the application interface of monitoring service itself and the application interface of third party's service Relationship and performance, therefore, the application interface include the third party's service for servicing the application interface of itself and servicing calling itself Application interface.The application for all third party's services that record service is called in the service code for servicing itself itself connects Mouthful, and uniform service itself is for the application interface of the calling of third party's service.For example, a service is app1 in itself, it is provided Application interface for third party's service unified call is UI1, and tripartite's service which calls is app2, app3, app4, is adjusted Application interface distinguishes UI2, UI3, UI4, and application interface UI2, UI3, UI4 are recorded in the code for servicing app1 itself, It can be recorded in a manner of text, table.The scheduling relationship between application interface can be monitored in this way, and analysis is each The performance of application interface, to realize the fine granularity monitoring of application interface.This is one of important inventive point of the application.
The calling data of application interface generally comprise application interface name, call that time-consuming, cpu occupies worry, memory occupies Rate, efficiency of code execution, code execution speed, timestamp and/or return code etc..
In step s 13, by the way that the performance of each application interface can be monitored in real time to log analysis, and with 3-D graphic Form is shown, is observed and is used for technical staff.
Fig. 2 shows another embodiment of the invention.
S21, obtaining step are stored in log text for obtaining the calling data of application interface, and by the calling data In part;
The journal file of all application interfaces is uploaded to server by S22, collection step;
S23, analytical procedure analyze the journal file of collection, and analysis result is shown in the form of 3-D graphic.
S24, fault location step determine the location of fault based on the analysis result.
Wherein step S21-S23 is identical as embodiment shown in figure 1, is not repeating.
The prior art is difficult to determine the application interface to break down, can only generally navigate to the application broken down, thus The invention proposes the specific algorithm of fault location, this is another important inventive point of the invention, can be fast by this method Speed efficiently positions the application interface to break down.
The concrete operations of the fault location step S24 are as follows:
The execution efficiency e, processor occupation rate p and memory usage m of each application interface are obtained from journal file;
Normalized function value is calculated for each application interfaceWherein w1、w2For weight, value can To be configured according to different systems, corresponding value is such as configured according to historical record;
It is sorted according to the normalized function value of all references interface, determines the minimum application interface of normalized function value for event Hinder position.By the normalized function value calculating method, the application interface to break down can be fast and efficiently positioned.Failure Type can be application interface can not call or execution efficiency is extremely low or expends great process resource etc..
Fig. 3 shows a kind of application interface monitoring device, which includes:
Acquiring unit 31 is stored in journal file for obtaining the calling data of application interface, and by the calling data In;
The journal file of all application interfaces is uploaded to server by collector unit 32;
Analytical unit 33 analyzes the journal file of collection, and analysis result is shown in the form of 3-D graphic.
The present invention is in order to solve the calling between the application interface of monitoring service itself and the application interface of third party's service Relationship and performance, therefore, the application interface include the third party's service for servicing the application interface of itself and servicing calling itself Application interface.The application for all third party's services that record service is called in the service code for servicing itself itself connects Mouthful, and uniform service itself is for the application interface of the calling of third party's service.For example, a service is app1 in itself, it is provided Application interface for third party's service unified call is UI1, and tripartite's service which calls is app2, app3, app4, is adjusted Application interface distinguishes UI2, UI3, UI4, and application interface UI2, UI3, UI4 are recorded in the code for servicing app1 itself, It can be recorded in a manner of text, table.The scheduling relationship between application interface can be monitored in this way, and analysis is each The performance of application interface, to realize the fine granularity monitoring of application interface.This is one of important inventive point of the application.
The calling data of application interface generally comprise application interface name, call that time-consuming, cpu occupies worry, memory occupies Rate, efficiency of code execution, code execution speed, timestamp and/or return code etc..
In analytical unit 33, by the way that the performance of each application interface can be monitored in real time to log analysis, and with 3-D graphic Form show, for technical staff observe use.
Fig. 4 shows another embodiment of apparatus of the present invention.
Acquiring unit 41 is stored in journal file for obtaining the calling data of application interface, and by the calling data In;
The journal file of all application interfaces is uploaded to server by collector unit 42;
Analytical unit 43 analyzes the journal file of collection, and analysis result is shown in the form of 3-D graphic.
Failure location unit 44 determines the location of fault based on the analysis result.
Wherein unit 41-43 is identical as embodiment illustrated in fig. 3, is not repeating.
The prior art is difficult to determine the application interface to break down, can only generally navigate to the application broken down, thus The invention proposes the specific algorithm of fault location, this is another important inventive point of the invention, can be fast by the device Speed efficiently positions the application interface to break down.
The concrete operations that the failure location unit 44 executes are as follows:
The execution efficiency e, processor occupation rate p and memory usage m of each application interface are obtained from journal file;
Normalized function value is calculated for each application interfaceWherein w1、w2For weight, value can To be configured according to different systems, corresponding value is such as configured according to historical record;
It is sorted according to the normalized function value of all references interface, determines the minimum application interface of normalized function value for event Hinder position.By the normalized function value calculating method, the application interface to break down can be fast and efficiently positioned.Failure Type can be application interface can not call or execution efficiency is extremely low or expends great process resource etc..
Fig. 5 is shown the invention also provides a kind of application interface monitoring device, including processor 51, memory 52 and aobvious Display screen 53, certain equipment can also include other component, such as wifi module, bluetooth module, USB interface other needs make Interface is not shown herein.Processor 51 is connected with memory 52 and display screen 53 by bus respectively, memory 52 In can store program performed by the equipment and data etc., processor 51 can execute the program in memory 52, execute phase The operation answered, the method as shown in above-mentioned Fig. 1-2.Equipment in the present invention can be server, host desktop, plate electricity Brain, laptop etc., but it is not limited to these equipment.
The invention further relates to a kind of computer readable storage medium, computer program generation is stored on the storage medium The method in Fig. 1-2 can be performed when the computer program code is computer-executed for code.
Method of the present invention can be realized by computer program, and computer program can also be stored in storage On medium, processor reads computer program from storage medium, and executes corresponding method.
It should be noted last that: above embodiments only illustrate and not to limitation technical solution of the present invention, although reference Above-described embodiment describes the invention in detail, those skilled in the art should understand that: it still can be to this hair It is bright to be modified or replaced equivalently, it without departing from the spirit or scope of the invention, or any substitutions, should all It is included within the scope of the claims of the present invention.

Claims (14)

1. a kind of application interface monitoring method, which is characterized in that this method comprises:
Obtaining step is stored in journal file for obtaining the calling data of application interface, and by the calling data;
The journal file of all application interfaces is uploaded to server by collection step;
Analytical procedure analyzes the journal file of collection, and analysis result is shown in the form of 3-D graphic.
2. the method according to claim 1, which is characterized in that the calling data include application interface name, call it is time-consuming and/or Return code.
3. method according to claim 2, which is characterized in that the application interface includes application interface and the service for servicing itself The application interface for the third party's service that is called itself.
4. according to the method in claim 3, which is characterized in that record service itself is called in the service code for servicing itself The application interface of all third party's services, and uniform service itself is for the application interface of the calling of third party's service.
5. method according to claim 4, which is characterized in that the method also includes:
Fault location step determines the location of fault based on the analysis result.
6. method according to claim 5, which is characterized in that the concrete operations of the fault location step are as follows:
The execution efficiency e, processor occupation rate p and memory usage m of each application interface are obtained from journal file;
Normalized function value is calculated for each application interfaceWherein w1、w2For weight;
It is sorted according to the normalized function value of all references interface, determines that the minimum application interface of normalized function value is fault bit It sets.
7. a kind of application interface monitoring device, which is characterized in that the device includes:
Acquiring unit is stored in journal file for obtaining the calling data of application interface, and by the calling data;
The journal file of all application interfaces is uploaded to server by collector unit;
Analytical unit analyzes the journal file of collection, and analysis result is shown in the form of 3-D graphic.
8. device according to claim 7, which is characterized in that the calling data include application interface name, call it is time-consuming and/or Return code.
9. device according to claim 8, which is characterized in that the application interface includes application interface and the service for servicing itself The application interface for the third party's service that is called itself.
10. device according to claim 9, which is characterized in that record service itself is called in the service code for servicing itself All third party's services application interface, and uniform service itself is for the application interface of the calling of third party's service.
11. device according to claim 10, which is characterized in that described device further include:
Failure location unit determines the location of fault based on the analysis result.
12. device according to claim 11, which is characterized in that the concrete operations that the failure location unit executes are as follows:
The execution efficiency e, processor occupation rate p and memory usage m of each application interface are obtained from journal file;
Normalized function value is calculated for each application interfaceWherein w1、w2For weight;
It is sorted according to the normalized function value of all references interface, determines that the minimum application interface of normalized function value is fault bit It sets.
13. a kind of application interface monitoring device, which is characterized in that the equipment includes processor, memory, the processor with The memory is connected by bus, and machine readable code is stored in the memory, and the processor executes in memory Machine readable code can be performed claim 1-6 any one method.
14. a kind of computer readable storage medium, which is characterized in that it is stored with computer program code on the storage medium, Any method of claim 1-6 can be performed when the computer program code is computer-executed.
CN201710584725.3A 2017-07-18 2017-07-18 Application interface monitoring method, device, equipment and computer readable medium Active CN109271289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710584725.3A CN109271289B (en) 2017-07-18 2017-07-18 Application interface monitoring method, device, equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710584725.3A CN109271289B (en) 2017-07-18 2017-07-18 Application interface monitoring method, device, equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN109271289A true CN109271289A (en) 2019-01-25
CN109271289B CN109271289B (en) 2022-05-03

Family

ID=65147933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710584725.3A Active CN109271289B (en) 2017-07-18 2017-07-18 Application interface monitoring method, device, equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN109271289B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069464A (en) * 2019-03-16 2019-07-30 平安普惠企业管理有限公司 Log analysis processing method, device, equipment and readable storage medium storing program for executing
CN113535506A (en) * 2020-04-21 2021-10-22 上海际链网络科技有限公司 Service system monitoring method and device, storage medium and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452417A (en) * 2007-12-07 2009-06-10 纬创资通股份有限公司 Monitor method and monitor device thereof
CN102436412A (en) * 2010-08-05 2012-05-02 飞思卡尔半导体公司 Data processing system having error detection of set information of peripheral device
CN103176882A (en) * 2013-01-31 2013-06-26 晨风云(北京)科技有限公司 Method and system for monitoring network application program interface of intelligent mobile terminal
CN105260253A (en) * 2015-09-06 2016-01-20 浪潮集团有限公司 Server failure measurement and calculation method and device
CN105553740A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Data interface monitoring method and device
CN105871634A (en) * 2016-06-01 2016-08-17 北京蓝海讯通科技股份有限公司 Method and application for detecting cluster anomalies and cluster managing system
US20170131707A1 (en) * 2014-06-27 2017-05-11 Hitachi, Ltd. Fault Symptom Detection System

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452417A (en) * 2007-12-07 2009-06-10 纬创资通股份有限公司 Monitor method and monitor device thereof
CN102436412A (en) * 2010-08-05 2012-05-02 飞思卡尔半导体公司 Data processing system having error detection of set information of peripheral device
CN103176882A (en) * 2013-01-31 2013-06-26 晨风云(北京)科技有限公司 Method and system for monitoring network application program interface of intelligent mobile terminal
US20170131707A1 (en) * 2014-06-27 2017-05-11 Hitachi, Ltd. Fault Symptom Detection System
CN105260253A (en) * 2015-09-06 2016-01-20 浪潮集团有限公司 Server failure measurement and calculation method and device
CN105553740A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Data interface monitoring method and device
CN105871634A (en) * 2016-06-01 2016-08-17 北京蓝海讯通科技股份有限公司 Method and application for detecting cluster anomalies and cluster managing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁建等: "《基于短信平台的实时数据库接口监视报警系统》", 《电力信息化》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069464A (en) * 2019-03-16 2019-07-30 平安普惠企业管理有限公司 Log analysis processing method, device, equipment and readable storage medium storing program for executing
CN113535506A (en) * 2020-04-21 2021-10-22 上海际链网络科技有限公司 Service system monitoring method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN109271289B (en) 2022-05-03

Similar Documents

Publication Publication Date Title
WO2021017301A1 (en) Management method and apparatus based on kubernetes cluster, and computer-readable storage medium
US9684534B2 (en) Monitoring and modifying allocated computing resources
US9811443B2 (en) Dynamic trace level control
CN101707632A (en) Method for dynamically monitoring performance of server cluster and alarming real-timely
CN113924554A (en) Automated cloud edge flow workload distribution and bi-directional migration with lossless one-time processing
CN110704277B (en) Method for monitoring application performance, related equipment and storage medium
US8977903B1 (en) Scalable testing in a production system with autoshutdown
US20180276019A1 (en) Ensuring operational integrity and performance of deployed converged infrastructure information handling systems
US9413818B2 (en) Deploying applications in a networked computing environment
CN104881352A (en) System resource monitoring device based on mobile terminal
CN104022902A (en) Method and system of monitoring server cluster
CN109614227B (en) Task resource allocation method and device, electronic equipment and computer readable medium
CN111190888A (en) Method and device for managing graph database cluster
US20130297803A1 (en) Method for providing development and deployment services using a cloud-based platform and devices thereof
CN109660421A (en) Method, apparatus, server and the storage medium of flexible scheduling resource
CN111788557A (en) System and method for data management of multiple cloud services
CN110377489A (en) The method and apparatus of log information processing
CN109271289A (en) A kind of application interface monitoring method, device, equipment and computer-readable medium
CN109714222A (en) The distributed computer monitoring system and its monitoring method of High Availabitity
EP4080371A1 (en) Automatic testing method and apparatus, electronic device, and storage medium
CN103297477A (en) Data collecting and reporting system, data processing method and proxy server
CN110209497B (en) Method and system for dynamically expanding and shrinking host resource
CN110868330B (en) Evaluation method, device and evaluation system for CPU resources which can be divided by cloud platform
CN110764985A (en) Method, system, equipment and readable storage medium for recording command line
CN110677271A (en) Big data alarm method, device, equipment and storage medium based on ELK

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