CN113342607A - API-oriented full-scene multi-dimensional monitoring mechanism implementation method - Google Patents

API-oriented full-scene multi-dimensional monitoring mechanism implementation method Download PDF

Info

Publication number
CN113342607A
CN113342607A CN202110634531.6A CN202110634531A CN113342607A CN 113342607 A CN113342607 A CN 113342607A CN 202110634531 A CN202110634531 A CN 202110634531A CN 113342607 A CN113342607 A CN 113342607A
Authority
CN
China
Prior art keywords
interface
capability
module
real
capability interface
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
CN202110634531.6A
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.)
State Grid Co ltd Customer Service Center
Beijing Kedong Electric Power Control System Co Ltd
Original Assignee
State Grid Co ltd Customer Service Center
Beijing Kedong Electric Power Control System Co 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 State Grid Co ltd Customer Service Center, Beijing Kedong Electric Power Control System Co Ltd filed Critical State Grid Co ltd Customer Service Center
Priority to CN202110634531.6A priority Critical patent/CN113342607A/en
Publication of CN113342607A publication Critical patent/CN113342607A/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/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents

Landscapes

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

Abstract

The invention discloses a method for realizing a full-scene multi-dimensional monitoring mechanism facing API, which is characterized by comprising a capability interface list module, a capability interface real-time state monitoring module, an abnormal capability interface alarm notification module and a display monitoring module; the capability interface list module is used for configuring the capability and maintaining the capability interface information; the real-time state monitoring module of the capability interface is used for monitoring and analyzing the feedback result called by the capability interface in real time; the capability interface abnormity warning module is used for detecting and issuing warning information; and the display monitoring module is used for directly displaying the display of the real-time state of the user capacity interface, the interface to be checked, the abnormal interface and the alarm information. The invention realizes the real-time monitoring of the status of the capability interface. The monitoring platform can effectively improve the timeliness of finding problems. The abnormal alarm platform of the monitoring platform can inform related personnel of the abnormal capacity interface for checking at the first time, so that the reliability of service is guaranteed.

Description

API-oriented full-scene multi-dimensional monitoring mechanism implementation method
Technical Field
The invention relates to the field of data systems, in particular to an API (application program interface) -oriented full-scene multi-dimensional monitoring mechanism implementation method.
Background
An API refers to an application program interface, which is some predefined interface (e.g., a function, an HTTP interface), or refers to a convention for linking different components of a software system. To provide a set of routines that applications and developers can access based on certain software or hardware without accessing source code or understanding the details of the internal workings.
When an API interface is in an accident, the API monitoring mechanism can immediately notify corresponding personnel, and although the occurrence of errors cannot be prevented, the API monitoring mechanism can timely process the errors when the influence is not expanded. Meanwhile, data analysis can be carried out, data representation can be formed by analyzing according to the frequency, the region and the like of API requests, different request strategies can be carried out according to the data, and the load of a high-frequency interface is reduced, so that the blockage of the API caused by the downtime of a server is reduced.
Disclosure of Invention
The invention aims to provide an API-oriented full-scene multi-dimensional monitoring mechanism implementation method aiming at the defects of the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for realizing API-oriented full-scene multi-dimensional monitoring mechanism comprises a capability interface list module, a capability interface real-time state monitoring module, an abnormal capability interface alarm notification module and a display monitoring module;
the capability interface list module is used for configuring the capability and maintaining the capability interface information;
the real-time state monitoring module of the capability interface is used for monitoring and analyzing the feedback result called by the capability interface in real time;
the capability interface abnormity warning module is used for detecting and issuing warning information;
and the display monitoring module is used for directly displaying the display of the real-time state of the user capacity interface, the interface to be checked, the abnormal interface and the alarm information.
Further, the real-time status monitoring module of the capability interface further comprises a function of indicating that the capability interface normally operates when a reasonable response type is monitored, and indicating that the capability interface is unstable when an unexpected result is detected, and adding the information into a suspected abnormal list to be checked.
Further, the capacity interface abnormality alarming module also comprises a function of automatically detecting the interfaces in the capacity list to be checked, eliminating the interfaces which are detected and fed back normally from the suspected list, recording the interfaces which are fed back abnormally into the abnormal interface list and issuing alarming information.
Furthermore, the capability interface list module exchanges data with the background service through JSON format data.
Further, the capability interface real-time state monitoring module intercepts and analyzes the interface response state of the access gateway, finds the service suspected to be abnormal, and then stores the service suspected to be abnormal into the Redis queue.
Further, the capability interface exception alarm module reads suspected exception service from the Redis and calls the interface service provided in the capability interface list module through a sample.
By adopting the technical scheme of the invention, the invention has the beneficial effects that: the invention realizes the real-time monitoring of the status of the capability interface. The monitoring platform can effectively improve the timeliness of finding problems and improve the accuracy of results through automatic detection. The abnormal alarm platform of the monitoring platform can inform related personnel of the abnormal capacity interface for checking at the first time, so that the reliability of service is guaranteed.
Detailed Description
Specific examples of embodiments of the present invention are further illustrated.
The invention solves the problem of monitoring the state of whether the platform registration capability interface is available or not, and realizes the functions of real-time monitoring, automatic checking and abnormal alarm.
The method can support the formation of a visual report on an open platform according to timely data feedback, can very intuitively display the flow ratio and the conversion rate of the API, and can automatically analyze and select services according to actual services.
The invention provides convenient API monitoring, alarming and analyzing functions, a user can intuitively monitor the calling condition of the API service, including time-consuming statistics, calling records and the like, the calling track tracking and multidimensional analysis which are periodical according to hours, days, months and years are provided, and data support is provided for API optimization and redevelopment.
A method for realizing API-oriented full-scene multi-dimensional monitoring mechanism comprises a capability interface list module, a capability interface real-time state monitoring module, an abnormal capability interface alarm notification module and a display monitoring module;
the capability interface list module is used for configuring the capability and maintaining the capability interface information;
the real-time state monitoring module of the capability interface is used for monitoring and analyzing the feedback result called by the capability interface in real time;
the capability interface abnormity warning module is used for detecting and issuing warning information;
and the display monitoring module is used for directly displaying the display of the real-time state of the user capacity interface, the interface to be checked, the abnormal interface and the alarm information.
The real-time state monitoring module of the capability interface also comprises a function of indicating that the capability interface normally operates when a reasonable response mode is monitored, and indicating that the capability interface is unstable when an unexpected result is detected, and adding the information into a suspected abnormal list to be checked.
The capacity interface abnormity warning module also comprises a function of automatically detecting the interfaces in the capacity list to be checked, eliminating the interfaces which are fed back normally in the detection process from the suspected list, recording the interfaces which are fed back abnormally in the abnormal interface list and issuing warning information.
And the capability interface list module exchanges data with the background service through JSON format data. The JSON format (JavaScript Object Notation) is a lightweight data exchange format. It is based on a subset of ECMAScript, and uses a text format that is completely independent of the programming language to store and represent data.
The capacity interface real-time state monitoring module works in spring gateway service, intercepts and analyzes the interface response state of the access gateway and finds the service suspected to be abnormal, and then stores the service suspected to be abnormal into a Redis queue.
The spring gateway refers to the calling logic of the front end for simplification in the project, and simplifies the complexity of mutual calling between internal services; the specific function is forwarding service, and all internal and external client calls are received and forwarded; other common functions are authentication of authority, current limit control, etc.
And the capacity interface exception alarm module reads suspected exception service from the Redis and calls the interface service provided in the capacity interface list module through a sample. And after the result returned by the sample calling interface is compared with the expected result, deleting the normal service from the suspected abnormal queue, adding the normal service into a 24-hour effective processed column, recording the abnormal service in an abnormal interface list, notifying in a short message mode and the like, and issuing warning information of a corresponding grade on a page.
Redis, a remote dictionary service, is an open-source log-type and Key-Value database written in ANSI C language, supporting network, based on memory and persistent, and provides API of multiple languages.
If the capability interface abnormity warning module calls to display that the interface is normal, but the processing is carried out for many times in 24 hours, manual investigation is prompted. The display monitoring module directly displays the display of the real-time state of the user capability interface, the interface to be checked, the abnormal interface, the alarm information and the manual checking prompt information on the page by calling the background record.
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 defined by the appended claims.

Claims (6)

1. A realization method of API-oriented full-scene multi-dimensional monitoring mechanism is characterized by comprising a capability interface list module, a capability interface real-time state monitoring module, an abnormal capability interface alarm notification module and a display monitoring module;
the capability interface list module is used for configuring the capability and maintaining the capability interface information;
the real-time state monitoring module of the capability interface is used for monitoring and analyzing the feedback result called by the capability interface in real time;
the capability interface abnormity warning module is used for detecting and issuing warning information;
and the display monitoring module is used for directly displaying the display of the real-time state of the user capacity interface, the interface to be checked, the abnormal interface and the alarm information.
2. The method as claimed in claim 1, wherein the capability interface real-time status monitoring module further includes indicating that the capability interface is operating normally when a reasonable response is monitored, indicating that the capability interface is not working stably when an unexpected result is detected, and adding the information to the suspected abnormal to-be-checked list.
3. The method as claimed in claim 1, wherein the capability interface abnormality warning module further comprises an automatic detection of the interfaces in the capability list to be checked, and the interfaces that are fed back normally after detection are removed from the suspected list, and the interfaces that are fed back abnormally record the abnormal interface list and issue warning information.
4. The method for implementing the API-oriented full-scene multi-dimensional monitoring mechanism as claimed in claim 1, wherein the capability interface list module exchanges data with the background service through JSON format data.
5. The method as claimed in claim 1, wherein the capability interface real-time status monitoring module performs interception analysis on the interface response status of the access gateway and finds a service suspected of being abnormal, and then stores the service suspected of being abnormal into a Redis queue.
6. The method for implementing an API-oriented full-scene multidimensional monitoring mechanism as recited in claim 1, wherein the capability interface exception alert module reads suspected exception services from the Redis and calls the interface services provided in the capability interface manifest module through a sample.
CN202110634531.6A 2021-06-08 2021-06-08 API-oriented full-scene multi-dimensional monitoring mechanism implementation method Pending CN113342607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110634531.6A CN113342607A (en) 2021-06-08 2021-06-08 API-oriented full-scene multi-dimensional monitoring mechanism implementation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110634531.6A CN113342607A (en) 2021-06-08 2021-06-08 API-oriented full-scene multi-dimensional monitoring mechanism implementation method

Publications (1)

Publication Number Publication Date
CN113342607A true CN113342607A (en) 2021-09-03

Family

ID=77474629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110634531.6A Pending CN113342607A (en) 2021-06-08 2021-06-08 API-oriented full-scene multi-dimensional monitoring mechanism implementation method

Country Status (1)

Country Link
CN (1) CN113342607A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114884801A (en) * 2022-06-09 2022-08-09 奇安信科技集团股份有限公司 Alarm method, alarm device, electronic equipment and storage medium
WO2024051723A1 (en) * 2022-09-08 2024-03-14 中电信数智科技有限公司 Multi-interface platform-based task monitoring and anomaly self-healing method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135119A (en) * 2017-04-18 2017-09-05 国网福建省电力有限公司 A kind of service response tracking and interface status monitor development system
CN107145547A (en) * 2017-04-26 2017-09-08 努比亚技术有限公司 A kind of acquisition methods of abnormal data, equipment and computer-readable recording medium
US20180109538A1 (en) * 2016-10-17 2018-04-19 Mocana Corporation System and method for policy based adaptive application capability management and device attestation
CN109428779A (en) * 2017-08-29 2019-03-05 武汉安天信息技术有限责任公司 A kind of monitoring alarm method and device of distributed service
CN111082985A (en) * 2019-12-16 2020-04-28 厦门大学附属第一医院 API (application program interface) monitoring method based on open platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180109538A1 (en) * 2016-10-17 2018-04-19 Mocana Corporation System and method for policy based adaptive application capability management and device attestation
CN107135119A (en) * 2017-04-18 2017-09-05 国网福建省电力有限公司 A kind of service response tracking and interface status monitor development system
CN107145547A (en) * 2017-04-26 2017-09-08 努比亚技术有限公司 A kind of acquisition methods of abnormal data, equipment and computer-readable recording medium
CN109428779A (en) * 2017-08-29 2019-03-05 武汉安天信息技术有限责任公司 A kind of monitoring alarm method and device of distributed service
CN111082985A (en) * 2019-12-16 2020-04-28 厦门大学附属第一医院 API (application program interface) monitoring method based on open platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘林;: "分布式链路监控报警机制的实现方案", 现代计算机, no. 12 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114884801A (en) * 2022-06-09 2022-08-09 奇安信科技集团股份有限公司 Alarm method, alarm device, electronic equipment and storage medium
WO2024051723A1 (en) * 2022-09-08 2024-03-14 中电信数智科技有限公司 Multi-interface platform-based task monitoring and anomaly self-healing method and apparatus

Similar Documents

Publication Publication Date Title
CN113342607A (en) API-oriented full-scene multi-dimensional monitoring mechanism implementation method
US9817742B2 (en) Detecting hardware and software problems in remote systems
US7620715B2 (en) Change event correlation
US20040128583A1 (en) Method and system for monitoring, diagnosing, and correcting system problems
US11322013B2 (en) Monitoring method of MES, monitoring device, and readable storage medium
JP2018523195A (en) Data quality analysis
US11362912B2 (en) Support ticket platform for improving network infrastructures
US9152604B2 (en) System and method for event logging in a technical installation or a technical process
CN107302469B (en) Monitoring device and method for data update of distributed service cluster system
US10705516B2 (en) Dynamic prediction of risk levels for manufacturing operations through leading risk indicators: dynamic risk fault tree method and system
US11250366B2 (en) Dynamic prediction of risk levels for manufacturing operations through leading risk indicators: dynamic risk sloping trend method and system
US9448998B1 (en) Systems and methods for monitoring multiple heterogeneous software applications
JP2019067393A (en) Method and device for assessing collective health of a plurality of process control systems
CN111970168A (en) Method and device for monitoring full-link service node and storage medium
US11853053B2 (en) Dynamic prediction of risk levels for manufacturing operations through leading risk indicators: dynamic exceedance probability method and system
CN113495820A (en) Method and device for collecting and processing abnormal information and abnormal monitoring system
CN116010190A (en) ESB service monitoring management system and method
CN116755992B (en) Log analysis method and system based on OpenStack cloud computing
CN112200603A (en) Alarm method and system for social advertisement putting
CN108197717B (en) Equipment maintenance system and method signal-based
CN111784176A (en) Data processing method, device, server and medium
CN108062986B (en) A kind of tritium carbon sampler monitoring management system
US9594622B2 (en) Contacting remote support (call home) and reporting a catastrophic event with supporting documentation
CN115083030A (en) Service inspection method and device and electronic equipment
CN112783730B (en) Interface monitoring method, device, medium and electronic equipment

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