[go: up one dir, main page]

CN113377616B - Interface monitoring method, device and computer readable medium - Google Patents

Interface monitoring method, device and computer readable medium Download PDF

Info

Publication number
CN113377616B
CN113377616B CN202110655834.6A CN202110655834A CN113377616B CN 113377616 B CN113377616 B CN 113377616B CN 202110655834 A CN202110655834 A CN 202110655834A CN 113377616 B CN113377616 B CN 113377616B
Authority
CN
China
Prior art keywords
monitoring
serial interface
task
request
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.)
Active
Application number
CN202110655834.6A
Other languages
Chinese (zh)
Other versions
CN113377616A (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.)
Hunan MgtvCom Interactive Entertainment Media Co Ltd
Original Assignee
Hunan MgtvCom Interactive Entertainment Media 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 Hunan MgtvCom Interactive Entertainment Media Co Ltd filed Critical Hunan MgtvCom Interactive Entertainment Media Co Ltd
Priority to CN202110655834.6A priority Critical patent/CN113377616B/en
Publication of CN113377616A publication Critical patent/CN113377616A/en
Application granted granted Critical
Publication of CN113377616B publication Critical patent/CN113377616B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/3048Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the topology of the computing system or computing system component explicitly influences the monitoring activity, e.g. serial, hierarchical systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes

Landscapes

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

Abstract

The application discloses an interface monitoring method, an interface monitoring device and a computer readable medium, wherein the method is applied to a monitoring client and used for monitoring configuration page data by receiving series logic sent by a monitoring platform; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks adjacent to the execution sequence are obtained; and sequentially generating and sending the monitoring request of each serial interface monitoring task to the interfaces according to the specific execution sequence of each serial interface monitoring task, so as to meet the monitoring requirement of the scene with logic dependence between the interfaces.

Description

Interface monitoring method, device and computer readable medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for monitoring an interface, and a computer-readable medium.
Background
In the prior art, monitoring of various network interfaces is mainly realized through a zabbix system. zabbix is an enterprise-level, open source solution based on a web interface that provides distributed system monitoring and network monitoring functions. An interface to be monitored can be configured through the zabbix system, and monitoring data such as total time consumption, state codes, return values and the like of interface requests can be acquired from the monitored interface.
However, in the existing interface monitoring process, the zabbix system can only monitor each interface which operates independently, and data returned by the previous interface cannot traverse to the next interface monitoring, that is, the zabbix system cannot meet the monitoring requirement of a scene with logic dependence between the interfaces.
Disclosure of Invention
Based on the above deficiencies of the prior art, the present application provides a method, an apparatus, and a computer readable medium for monitoring an interface, so as to monitor the interface in a scenario where there is a logical dependency between the interfaces.
A first aspect of the present application discloses an interface monitoring method, which is applied to a monitoring client, and the interface monitoring method includes:
receiving data of a serial logic monitoring configuration page sent by a monitoring platform; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent to each other in the execution sequence are obtained;
sequentially generating and sending a monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to a specific execution sequence of each serial interface monitoring task; for each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task; the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence;
acquiring monitoring data corresponding to each monitoring request; monitoring data corresponding to the monitoring request is data for reflecting the operation condition of an interface in the process of responding to the monitoring request;
and reporting the monitoring data corresponding to each monitoring request to the monitoring platform.
Optionally, in the interface monitoring method, the logic dependency rule between every two serial interface monitoring tasks that are adjacent in execution sequence is obtained by configuring a regular expression corresponding to each serial interface monitoring task;
wherein, the generating of the monitoring request of each serial interface monitoring task includes:
for each serial interface monitoring task, generating a monitoring request of the serial interface monitoring task by using configuration data of the serial interface monitoring task;
and if the serial interface monitoring task exists in the previous serial interface monitoring task, transmitting interface parameters obtained after regular matching is carried out on the regular expression corresponding to the previous serial interface monitoring task into a monitoring request of the serial interface monitoring task.
Optionally, in the interface monitoring method, before the obtaining the monitoring data corresponding to each monitoring request, the method further includes:
receiving basic monitoring configuration page data issued by a monitoring platform; wherein, the basic monitoring configuration page data comprises: the method comprises the steps that configuration data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task are obtained;
respectively generating and sending a monitoring request of each basic interface monitoring task to an interface appointed by the basic interface monitoring task by using the configuration data of each basic interface monitoring task;
wherein, the obtaining of the monitoring data corresponding to each monitoring request includes:
acquiring monitoring data corresponding to the monitoring request of each serial interface monitoring task and monitoring data corresponding to the monitoring request of each basic interface monitoring task; the monitoring data includes: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
Optionally, in the interface monitoring method, the monitoring configuration page data of the serial logic and the monitoring configuration page data of the base further include: a timeout threshold;
reporting the monitoring data corresponding to each monitoring request to the monitoring platform includes:
reporting the monitoring data corresponding to each monitoring request to a zabbix system in the monitoring platform; reporting the monitoring data corresponding to each monitoring request determined as abnormal data to a monitoring service back end in the monitoring platform; wherein, the condition that the monitoring data corresponding to the monitoring request is determined to be abnormal data is as follows: the status code in the monitoring data corresponding to the monitoring request is not a predetermined value, the total request time in the monitoring data corresponding to the monitoring request exceeds an overtime threshold, or the regular matching verification result in the monitoring data corresponding to the monitoring request is not verified.
Optionally, in the interface monitoring method, the monitoring data corresponding to the monitoring request further includes: at least one of domain name resolution time, connection service time, data reception start time, first byte data reception time, and interface jump time.
The second aspect of the present application discloses an interface monitoring method, which is applied to a monitoring platform, and the interface monitoring method includes:
responding to the configuration operation of a user on the serial logic monitoring configuration page, and generating data of the serial logic monitoring configuration page; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent to each other in the execution sequence are obtained;
the monitoring client sequentially generates and sends a monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task; for each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task; the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence;
receiving and storing monitoring data corresponding to each monitoring request reported by the monitoring client; and the monitoring data corresponding to the monitoring request is data for reflecting the operating condition of the interface in the process of responding to the monitoring request.
Optionally, in the interface monitoring method, before receiving and storing the monitoring data corresponding to each monitoring request reported by the monitoring client, the method further includes:
responding to the configuration operation of a user on the basic monitoring configuration page, and generating basic monitoring configuration page data; wherein, the basic monitoring configuration page data comprises: the method comprises the steps that configuration data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task are obtained;
sending the basic monitoring configuration page data to a monitoring client, and generating and sending a monitoring request of each basic interface monitoring task to an interface appointed by the basic interface monitoring task by the monitoring client by respectively utilizing the configuration data of each basic interface monitoring task;
the receiving and storing the monitoring data corresponding to each monitoring request reported by the monitoring client includes:
receiving and storing monitoring data corresponding to the monitoring request of each serial interface monitoring task reported by the monitoring client and monitoring data corresponding to the monitoring request of each basic interface monitoring task; the monitoring data includes: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
A third aspect of the present application discloses an interface monitoring apparatus applied to a monitoring client, the interface monitoring apparatus includes:
the first receiving unit is used for receiving the data of the serial logic monitoring configuration page sent by the monitoring platform; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent to each other in the execution sequence are obtained;
the first request unit is used for sequentially generating and sending the monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task; for each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task; the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence;
the acquisition unit is used for acquiring the monitoring data corresponding to each monitoring request; monitoring data corresponding to the monitoring request is data for reflecting the operation condition of an interface in the process of responding to the monitoring request;
and the reporting unit is used for reporting the monitoring data corresponding to each monitoring request to the monitoring platform.
Optionally, in the interface monitoring apparatus, a logic dependency rule between every two serial interface monitoring tasks that are adjacent to each other in execution sequence is obtained by configuring a regular expression corresponding to each serial interface monitoring task;
wherein, when the first request unit executes the monitoring request for generating each serial interface monitoring task, it is configured to:
for each serial interface monitoring task, generating a monitoring request of the serial interface monitoring task by using configuration data of the serial interface monitoring task; and if the serial interface monitoring task exists in the previous serial interface monitoring task, transmitting interface parameters obtained after regular matching is carried out on the regular expression corresponding to the previous serial interface monitoring task into a monitoring request of the serial interface monitoring task.
Optionally, in the interface monitoring apparatus, the interface monitoring apparatus further includes:
the second receiving unit is used for receiving basic monitoring configuration page data issued by the monitoring platform; wherein, the basic monitoring configuration page data comprises: the method comprises the steps that configuration data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task are obtained;
the second request unit is used for generating and sending the monitoring request of each basic interface monitoring task to an interface appointed by the basic interface monitoring task by respectively utilizing the configuration data of each basic interface monitoring task;
wherein the obtaining unit includes:
the first acquisition subunit is configured to acquire monitoring data corresponding to the monitoring request of each serial interface monitoring task and monitoring data corresponding to the monitoring request of each basic interface monitoring task; the monitoring data includes: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
Optionally, in the interface monitoring apparatus, the tandem logic monitoring configuration page data and the basic monitoring configuration page data each further include: a timeout threshold;
wherein, the reporting unit includes:
a reporting subunit, configured to report the monitoring data corresponding to each monitoring request to a zabbix system in the monitoring platform; reporting the monitoring data corresponding to each monitoring request determined as abnormal data to a monitoring service back end in the monitoring platform; wherein, the condition that the monitoring data corresponding to the monitoring request is determined to be abnormal data is as follows: the status code in the monitoring data corresponding to the monitoring request is not a predetermined value, the total request time in the monitoring data corresponding to the monitoring request exceeds an overtime threshold, or the regular matching verification result in the monitoring data corresponding to the monitoring request is not verified.
Optionally, in the interface monitoring apparatus, the monitoring data corresponding to the monitoring request further includes: at least one of domain name resolution time, connection service time, data reception start time, first byte data reception time, and interface jump time.
The fourth aspect of the present application discloses an interface monitoring device, which is applied to a monitoring platform, the interface monitoring device includes:
the first configuration unit is used for responding to the configuration operation of a user on the serial logic monitoring configuration page and generating serial logic monitoring configuration page data; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent to each other in the execution sequence are obtained;
the first issuing unit is used for issuing the serial logic monitoring configuration page data to a monitoring client, and the monitoring client sequentially generates and sends a monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task; for each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task; the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence;
the storage unit is used for receiving and storing the monitoring data corresponding to each monitoring request reported by the monitoring client; and the monitoring data corresponding to the monitoring request is data for reflecting the operating condition of the interface in the process of responding to the monitoring request.
Optionally, in the interface monitoring apparatus, the interface monitoring apparatus further includes:
the second configuration unit is used for responding to the configuration operation of the user on the basic monitoring configuration page and generating basic monitoring configuration page data; wherein, the basic monitoring configuration page data comprises: the method comprises the steps that configuration data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task are obtained;
the second issuing unit is used for issuing the basic monitoring configuration page data to the monitoring client, and the monitoring client generates and sends a monitoring request of each basic interface monitoring task to an interface specified by the basic interface monitoring task by using the configuration data of each basic interface monitoring task;
wherein, the memory cell includes:
the storage subunit is configured to receive and store monitoring data corresponding to the monitoring request of each serial interface monitoring task reported by the monitoring client and monitoring data corresponding to the monitoring request of each basic interface monitoring task; the monitoring data includes: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
A fifth aspect of the present application discloses a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements the method as defined in any one of the first aspects above, or the method as defined in the second aspect above.
A sixth aspect of the present application discloses an apparatus comprising:
one or more processors, a storage device, one or more programs stored thereon; when the one or more programs are executed by one or more of the processors, cause the one or more processors to implement the method as described in any one of the first aspects above; alternatively, the method of any of the above second aspects.
As can be seen from the foregoing technical solutions, the interface monitoring method provided in this embodiment of the present application is applied to a monitoring client, and configured page data is monitored by receiving a concatenation logic issued by a monitoring platform, where the concatenation logic monitors the configured page data, and includes: the method comprises the steps of configuring data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent in execution sequence, and then sequentially generating and sending a monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring tasks according to the specific execution sequence of each serial interface monitoring task. For each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task, and a monitoring request of the serial interface monitoring task with the first execution sequence is generated by the configuration data of the serial interface monitoring task with the first execution sequence, so that the monitoring requirement under an interface serial logic scene with logic dependence between interfaces can be realized.
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 or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an interface monitoring system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an interface monitoring method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a tandem logic monitoring configuration page according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a method for generating a monitoring request according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for sending a monitoring request of a basic interface monitoring task according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an interface monitoring apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another interface monitoring apparatus according to an embodiment of the present application.
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.
Referring to fig. 1, an interface monitoring system 100 according to an embodiment of the present application includes a monitoring platform 101 and a monitoring client 102. The monitoring platform is a program software platform with monitoring management and control, and can run in the management server. The monitoring client is program software with a monitoring interface function, the monitoring client can run in a monitoring node, and the monitoring node can be a computer, a mobile phone and other equipment.
The monitoring platform 101 generates tandem logic monitoring configuration page data in response to a configuration operation of a user on the tandem logic monitoring configuration page. Wherein the cascade logic monitors configuration page data, comprising: the method comprises the steps of configuring data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent in the execution sequence. Then, the monitoring platform 101 issues the serial logic monitoring configuration page data to the monitoring client 102, and the monitoring client 102 sequentially generates and sends a monitoring request of each serial interface monitoring task to an interface specified by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task. The monitoring request of the serial interface monitoring task with the first execution sequence is generated by the configuration data of the serial interface monitoring task and the logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task.
The monitoring client 102 thus obtains the monitoring data corresponding to each monitoring request. And the monitoring data corresponding to the monitoring request is data for reflecting the operating condition of the interface in the process of responding to the monitoring request. Then, the monitoring client 102 reports the monitoring data corresponding to each monitoring request to the monitoring platform 101, and the monitoring platform 101 receives and stores the monitoring data corresponding to each monitoring request reported by the monitoring client.
In the interface monitoring system provided in the embodiment of the present application, the monitoring platform 101 issues the data of the tandem logic monitoring configuration page to the monitoring client 102. Since the concatenation logic monitors the configuration page data, it includes: the configuration data of a plurality of serial interface monitoring tasks, the specific execution sequence of each serial interface monitoring task, and the logic dependency rules between every two serial interface monitoring tasks that are adjacent in execution sequence, so the monitoring client 102 can sequentially generate and send the monitoring request of each serial interface monitoring task to the interface specified by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task. And for each serial interface monitoring task with a non-first execution sequence, the monitoring request of the serial interface monitoring task is generated by the configuration data of the serial interface monitoring task and the logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task, and the monitoring request of the serial interface monitoring task with the first execution sequence is generated by the configuration data of the serial interface monitoring task with the first execution sequence, so that the monitoring requirement under the interface serial logic scene with dependence logic between the interfaces can be realized.
Specifically, the following describes an interface monitoring process in the interface monitoring system 100 by using various embodiments.
Referring to fig. 2, an embodiment of the present application provides an interface monitoring method, which specifically includes the following steps:
s201, the monitoring platform responds to configuration operation of a user on the serial logic monitoring configuration page, and serial logic monitoring configuration page data are generated.
Wherein the cascade logic monitors configuration page data, comprising: the method comprises the steps of configuring data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent in the execution sequence. The serial interface monitoring task is an interface monitoring task under the condition that serial logic dependence exists between interfaces. Under the serial logic dependency scene, logic dependency exists between the interfaces which are adjacent in sequence of execution, namely, the parameter value returned by the previous interface is needed for monitoring the latter interface. And a serial logic monitoring configuration page on the monitoring platform can be used for configuring logic dependency rules between every two serial interface monitoring tasks which are adjacent in execution sequence and a specific execution sequence of each serial interface monitoring task by a user, so that the monitoring client can execute each serial interface monitoring task according to the execution sequence and by using the logic dependency rules. The configuration data of the serial interface monitoring task indicates the interface to be monitored, and the configuration data of the serial interface monitoring task can be used for generating a request capable of calling the interface.
Optionally, in a specific embodiment of the present application, the configuration data of the serial interface monitoring task may include: the serial interface monitors the name, interface identifier, and domain name of the task. The interface Identifier may be a Uniform Resource Identifier (URI) of the interface. In addition to this, a request type, a header, and the like of a monitoring request of the serial interface monitoring task may be included.
Optionally, in a specific embodiment of the present application, a logic dependency rule between every two serial interface monitoring tasks that are adjacent in execution order may be obtained by configuring a regular expression corresponding to each serial interface monitoring task. And aiming at every two serial interface monitoring tasks which are adjacent in execution sequence, the regular expression configured by the previous serial interface monitoring task utilizes the interface parameters obtained by regular matching as the input parameters of the interface corresponding to the next serial interface monitoring task. Optionally, the regular expression of the monitoring task of the serial interface can be configured by the user on the serial logic monitoring configuration page, so that the logic dependency rule can be configured in a manner of configuring the regular expression.
For example, as shown in fig. 3, the tandem logic monitoring configuration page may configure an Internet Data Center (Internet Data Center, IDC) machine room (i.e., a machine room of a monitoring node), a Uniform Resource Locator (URL) name (i.e., a name of a tandem interface monitoring task), a Zabbix mount point (Zabbix Host), a domain name (domin), an interface Identifier (URI), submitted Data (Post Data), and a regular expression (Response Data).
In the prior art, when a zabbix monitoring system is used for configuration, interface monitoring tasks in a serial logic dependence scene cannot be configured, only interface monitoring tasks in a situation that dependence does not exist among the interface monitoring tasks can be configured, and monitoring requirements of a scene in which logic dependence exists among the interfaces cannot be met.
In this embodiment, the monitoring platform may respond to a configuration operation of a user on the tandem logic monitoring configuration page to generate data of the tandem logic monitoring configuration page, where the data of the tandem logic monitoring configuration page includes: the monitoring method comprises the steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and logic dependence rules between every two serial interface monitoring tasks adjacent to each other in the execution sequence are obtained, and therefore the monitoring client side in the embodiment of the application can meet the monitoring requirement of a scene with logic dependence between the interfaces through the serial logic monitoring configuration page data.
Optionally, in a specific embodiment of the present application, the monitoring of the configuration page data by the concatenation logic may further include: zabbix mount points, committed Data (Post Data), timeout thresholds, monitoring nodes, regular expressions, etc. The zabbix mounting point is a mounting point of a zabbix system on the monitoring platform, and the monitoring client can upload data to the zabbix system on the monitoring platform through the zabbix mounting point. The timeout threshold is a standard value for which the total request elapsed time of the monitoring request is considered to be timeout. The monitoring node is a device with a monitoring client deployed. The monitoring platform can designate the equipment to which the tandem logic monitoring configuration page data is issued by designating the monitoring node, and the monitoring node can complete the monitoring task of the tandem interface designated in the tandem logic monitoring configuration page data through the monitoring client deployed in the monitoring node.
In the prior art, a zabbix system cannot configure a regular expression of an interface monitoring task, and further cannot obtain a verification result after regular matching, so that the monitoring of the interface is not complete in detail.
In the embodiment of the application, the data of the tandem logic monitoring configuration page can configure the regular expression, so that the verification result after regular matching can be obtained, and the running state of the monitoring interface can be more accurately and perfectly realized.
S202, the monitoring platform issues the data of the serial logic monitoring configuration page to the monitoring client.
S203, the monitoring client sequentially generates and sends the monitoring request of each serial interface monitoring task to the interface appointed by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task.
The monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task. The monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence.
Specifically, according to a specific execution sequence of each serial interface monitoring task, a monitoring request of each serial interface monitoring task is sequentially generated, and then the generated monitoring request of each serial interface monitoring task is respectively sent to an interface specified by the serial interface monitoring task itself. In the process of generating the monitoring request of the serial interface monitoring task, for the first executed serial interface monitoring task, because the first executed serial interface monitoring task does not have any dependent serial interface monitoring task, the monitoring request of the task can be generated only by using the configuration data of the serial interface monitoring task. For each serial interface monitoring task which is not executed first, the monitoring request of the serial interface monitoring task can be generated only by depending on the parameter returned by the monitoring request of the previous serial interface monitoring task of the task, so that the monitoring request of the serial interface monitoring task and the logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task are generated.
And the monitoring request of the serial interface monitoring task is used for calling the interface appointed by the serial interface monitoring task. The configuration data of the serial interface monitoring task comprises data of an interface which can be called by the monitoring client to be appointed by the serial interface monitoring task.
Optionally, referring to fig. 4, in a specific embodiment of the present application, a logic dependency rule between every two serial interface monitoring tasks that are adjacent in execution order is obtained by configuring a regular expression corresponding to each serial interface monitoring task, where an implementation manner of a monitoring client executing a monitoring request for generating each serial interface monitoring task in S203 includes:
s401, aiming at each serial interface monitoring task, generating a monitoring request of the serial interface monitoring task by using the configuration data of the serial interface monitoring task.
The monitoring request of the serial interface monitoring task is an interface designated for calling the serial interface monitoring task, and the configuration data of the serial interface monitoring task comprises data, such as an interface identifier and a domain name, which can be used by the monitoring client to call the interface designated by the serial interface monitoring task. Therefore, for each serial interface monitoring task, the monitoring request of the serial interface monitoring task can be generated by using the configuration data of the serial interface monitoring task.
S402, judging whether the serial interface monitoring task has the previous serial interface monitoring task.
In a serial logic monitoring scenario, dependency logic exists between serial interface monitoring tasks. If the serial interface monitoring task does not have the previous serial interface monitoring task, the serial interface monitoring task is proved to be the first executed serial interface monitoring task, the first executed serial interface monitoring task does not depend on parameters obtained by monitoring requests of other tasks, and the monitoring request of the serial interface monitoring task is generated in the execution step S401 and can be directly sent without executing other operations.
However, if the serial interface monitoring task exists in the previous serial interface monitoring task, it indicates that the serial interface monitoring task is not the first serial interface monitoring task to be executed, and in the serial logic monitoring scenario, the monitoring request of the serial interface monitoring task depends on the previous serial interface monitoring task, so step S403 needs to be executed.
And S403, transmitting interface parameters obtained by regular matching of the regular expression corresponding to the previous serial interface monitoring task into the monitoring request of the serial interface monitoring task.
And transmitting the interface parameters obtained after regular matching is carried out on the regular expression corresponding to the previous serial interface monitoring task into the monitoring request of the serial interface monitoring task by using the macro definition, and then transmitting the monitoring request of the serial interface monitoring task after the interface parameters are transmitted.
The interface parameters obtained after regular matching is performed on the regular expression corresponding to the previous serial interface monitoring task refer to the interface parameters obtained after regular matching is performed on the return value of the monitoring request of the previous serial interface monitoring task by using the regular expression.
In the prior art, the zabbix system can only monitor each interface which operates independently, and cannot traverse data returned by the previous interface to the next interface, that is, the zabbix system cannot meet the monitoring requirement of a scene with logic dependence between the interfaces. In the embodiment of the present application, the client is monitored.
And S204, the monitoring client acquires the monitoring data corresponding to each monitoring request.
And the monitoring data corresponding to the monitoring request is data for reflecting the operating condition of the interface in the process of responding to the monitoring request. The current operation condition of the interface can be monitored through the monitoring data. Monitoring data, including: the interface returns the value, the status code and the total time it takes to request. If the tandem logic monitoring configuration page data includes the regular expression corresponding to each tandem interface monitoring task, the monitoring data may further include a regular matching verification result.
Optionally, in a specific embodiment of the present application, the monitoring data corresponding to the monitoring request further includes: at least one of domain name resolution time, connection service time, data reception start time, first byte data reception time, and interface jump time.
In the prior art, the monitoring data corresponding to the monitoring request acquired by the zabbix system only includes interface request total time consumption, a status code and a return value, and the monitoring client in the embodiment of the present application is developed autonomously, so that not only the interface request total time consumption, the status code and the return value can be acquired, but also the time consumption of various response requests such as domain name resolution time consumption, connection service time consumption, data reception start time consumption, first byte data reception time consumption, interface jump time consumption and the like can be acquired.
And S205, the monitoring client reports the monitoring data corresponding to each monitoring request to the monitoring platform.
Optionally, if the tandem logic monitoring configuration page data includes a zabbix system mount point. Then, when step S205 is executed, reporting the monitoring data corresponding to each monitoring request to a zabbix system in the monitoring platform through the zabbix system mount point, analyzing the monitoring data by the zabbix system, and sending an alarm when it is analyzed that an abnormal event occurs at the interface.
Optionally, if the tandem logic monitor page data further includes a timeout threshold, executing an implementation manner of step S205, including:
and reporting the monitoring data corresponding to each monitoring request to a zabbix system in the monitoring platform, and reporting the monitoring data corresponding to each monitoring request determined to be abnormal data to a monitoring service back end in the monitoring platform.
The condition that the monitoring data corresponding to the monitoring request is determined to be abnormal data is as follows: the status code in the monitoring data corresponding to the monitoring request is not a predetermined value, the total request time in the monitoring data corresponding to the monitoring request exceeds an overtime threshold, or the regular matching verification result in the monitoring data corresponding to the monitoring request is not verified. The predetermined value is a value representing that the current state is normal, such as the state code 200. And the regular matching verification result is used for indicating whether the return value of the interface is normal, and if the regular matching verification result is not verified, indicating that the return value of the interface is abnormal.
And reporting all the monitoring data to a zabbix system in the monitoring platform, analyzing the monitoring data by the zabbix system, and giving an alarm when an abnormal event is detected. And the monitoring data corresponding to each monitoring request determined as abnormal data needs to be reported to the monitoring service back end in the monitoring platform for backup storage.
Specifically, the monitoring platform may include a monitoring service front end, a monitoring service back end, and a zabbix system. The monitoring service front end is used for responding to the operation of the user, for example, the monitoring service front end displays a tandem logic monitoring configuration page for the user to configure. The monitoring service backend receives and stores the monitoring data determined as abnormal data. And the zabbix system is used for receiving and storing all monitoring data so as to perform anomaly analysis on the monitoring data.
And S206, the monitoring platform stores the monitoring data corresponding to each monitoring request reported by the monitoring client.
Optionally, referring to fig. 5, in an embodiment of the present application, before performing step S205, the method further includes:
s501, the monitoring platform responds to configuration operation of a user on the basic monitoring configuration page, and basic monitoring configuration page data are generated.
Wherein, basic monitoring configuration page data includes: the method comprises the steps of configuring data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task.
The monitoring platform provides a basic monitoring configuration page besides a serial logic monitoring configuration page, so that a user can perform configuration operation to generate basic monitoring configuration page data. The basic monitoring configuration page is suitable for a scene without logic dependence between the interfaces, namely, the interfaces corresponding to the basic interface monitoring tasks configured by the basic monitoring configuration page can be independently monitored without depending on the parameters of other interfaces.
In the prior art, although the zabbix system can also configure a basic interface monitoring task to monitor each interface which operates independently. However, the zabbix system cannot configure the regular expression corresponding to each basic interface monitoring task, and further cannot obtain the regular matching verification result corresponding to each basic interface monitoring task, and the monitoring data lacks the regular matching verification result, which is not beneficial to the analysis of the monitoring data.
In the embodiment of the application, the regular expressions corresponding to the monitoring tasks of each basic interface can be configured on the basic monitoring configuration page of the monitoring platform, so that the monitoring data obtained by the monitoring client can include the regular matching verification result, and the monitoring data is richer than that in the prior art and is beneficial to analysis of the monitoring data.
Optionally, the basic monitoring configuration page data may further include: zabbix mount points, committed Data (Post Data), timeout thresholds, monitoring nodes, regular expressions, etc. The zabbix mounting point is a mounting point of a zabbix system on the monitoring platform, and the monitoring client can upload data to the zabbix system on the monitoring platform through the zabbix mounting point. The timeout threshold is a standard value for which the total request elapsed time of the monitoring request is considered to be timeout. The monitoring node is a device with a monitoring client deployed. The monitoring platform can designate the equipment to which the basic monitoring configuration page data is issued by designating the monitoring node, and the monitoring node can complete the basic interface monitoring task designated in the basic monitoring configuration page data through the monitoring client deployed in the node.
S502, the monitoring platform issues the basic monitoring configuration page data to the monitoring client.
Because no specific execution sequence exists among the basic interface monitoring tasks, the sequence of generating and sending the monitoring request of each basic interface monitoring task can be any.
S503, the monitoring client generates and sends the monitoring request of each basic interface monitoring task to the interface appointed by the basic interface monitoring task by using the configuration data of each basic interface monitoring task.
Because the basic interface monitoring tasks do not have dependency logic, the corresponding monitoring request can be generated only by using the configuration data of the basic interface monitoring tasks.
Wherein, when executing step S204, the method includes: the monitoring client acquires monitoring data corresponding to the monitoring request of each serial interface monitoring task and monitoring data corresponding to the monitoring request of each basic interface monitoring task, wherein the monitoring data comprises the following data: the interface returns a value, a status code, the total time of the request, and a regular matching validation result. When step S206 is executed, the method includes: and the monitoring platform stores the monitoring data corresponding to the monitoring request of each serial interface monitoring task reported by the monitoring client and the monitoring data corresponding to the monitoring request of each basic interface monitoring task. Monitoring data, including: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
In the interface monitoring method provided in this embodiment of the present application, the monitoring platform responds to a configuration operation of a user on a basic monitoring configuration page, generates basic monitoring configuration page data, and then issues the basic monitoring configuration page data to the monitoring client, where the cascading logic monitoring configuration page data includes: the monitoring client can sequentially generate and send a monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task. For each monitoring task of the serial interface with a non-first execution sequence, the monitoring request of the monitoring task of the serial interface is generated by the configuration data of the monitoring task of the serial interface and the logic dependence rule between the monitoring task of the serial interface and the previous monitoring task of the serial interface, and the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence, so that the monitoring client can obtain the monitoring data corresponding to each monitoring request, wherein the monitoring data corresponding to the monitoring request is data for reflecting the operation condition of the interface in the process of responding to the monitoring request, and the monitoring requirement under the interface serial logic scene with logic dependence between the interface and the interface is realized.
Referring to fig. 6, based on the interface monitoring method provided in the embodiment of the present application, the embodiment of the present application correspondingly discloses an interface monitoring apparatus, which is applied to monitoring a client, and the interface monitoring apparatus includes: a first receiving unit 601, a first requesting unit 602, an obtaining unit 603, and a reporting unit 604.
The first receiving unit 601 is configured to receive data of the tandem logic monitoring configuration page sent by the monitoring platform. Wherein the cascade logic monitors configuration page data, comprising: the method comprises the steps of configuring data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent in the execution sequence.
A first request unit 602, configured to sequentially generate and send a monitoring request of each serial interface monitoring task to an interface specified by the serial interface monitoring task according to a specific execution order of each serial interface monitoring task. The monitoring request of the serial interface monitoring task with the first execution sequence is generated by the configuration data of the serial interface monitoring task and the logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task.
Optionally, in a specific embodiment of the present application, a logic dependency rule between every two serial interface monitoring tasks that are adjacent in execution order is obtained by configuring a regular expression corresponding to each serial interface monitoring task. When the first request unit 602 executes a monitoring request for generating each serial interface monitoring task, the first request unit is configured to: and for each serial interface monitoring task, generating a monitoring request of the serial interface monitoring task by using the configuration data of the serial interface monitoring task, and if the serial interface monitoring task has the previous serial interface monitoring task, transmitting interface parameters obtained after regular matching is carried out on a regular expression corresponding to the previous serial interface monitoring task into the monitoring request of the serial interface monitoring task.
An obtaining unit 603 is configured to obtain monitoring data corresponding to each monitoring request. And the monitoring data corresponding to the monitoring request is data for reflecting the operating condition of the interface in the process of responding to the monitoring request.
A reporting unit 604, configured to report the monitoring data corresponding to each monitoring request to the monitoring platform.
Optionally, in a specific embodiment of the present application, the method further includes: a second receiving unit and a second requesting unit.
And the second receiving unit is used for receiving the basic monitoring configuration page data issued by the monitoring platform. Wherein, basic monitoring configuration page data includes: the method comprises the steps of configuring data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task.
And the second request unit is used for generating and sending the monitoring request of each basic interface monitoring task by respectively utilizing the configuration data of each basic interface monitoring task. The obtaining unit 603 includes: the first acquiring subunit is configured to acquire monitoring data corresponding to the monitoring request of each serial interface monitoring task and monitoring data corresponding to the monitoring request of each basic interface monitoring task, where the monitoring data includes: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
Optionally, in a specific embodiment of the present application, the tandem logic monitoring configuration page data and the basic monitoring configuration page data both further include: a timeout threshold. The reporting unit 604 includes:
and the reporting subunit is configured to report the monitoring data corresponding to each monitoring request to a zabbix system in the monitoring platform, and report the monitoring data corresponding to each monitoring request determined to be abnormal data to a monitoring service backend in the monitoring platform. The condition that the monitoring data corresponding to the monitoring request is determined to be abnormal data is as follows: the status code in the monitoring data corresponding to the monitoring request is not a predetermined value, the total request time in the monitoring data corresponding to the monitoring request exceeds an overtime threshold, or the regular matching verification result in the monitoring data corresponding to the monitoring request is not verified.
Optionally, in a specific embodiment of the present application, the monitoring data corresponding to the monitoring request further includes: at least one of domain name resolution time, connection service time, data reception start time, first byte data reception time, and interface jump time.
The specific principle and the execution process of each unit in the interface monitoring device disclosed in the embodiment of the present application are the same as those of the interface monitoring method disclosed in the embodiment of the present application, and reference may be made to corresponding parts in the interface monitoring method disclosed in the embodiment of the present application, which are not described herein again.
The interface monitoring apparatus provided in the embodiment of the present application is applied to a monitoring client, and receives, through a first receiving unit 601, tandem logic monitoring configuration page data issued by a monitoring platform, where the tandem logic monitoring configuration page data includes: the first request unit 602 sequentially generates and sends a monitoring request of each serial interface monitoring task to an interface specified by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task. The first request unit 60 is configured to request each serial interface monitoring task whose execution sequence is not the first, where the monitoring request for the serial interface monitoring task is generated from the configuration data of the serial interface monitoring task and the logic dependency rule between the serial interface monitoring task and the previous serial interface monitoring task, and the monitoring request for the serial interface monitoring task whose execution sequence is the first is generated from the configuration data of the serial interface monitoring task whose execution sequence is the first, so that the monitoring requirement in the serial interface logic scene where the logic dependency exists between the interfaces can be met.
Referring to fig. 7, based on the interface monitoring method provided in the embodiment of the present application, the embodiment of the present application correspondingly discloses an interface monitoring apparatus, which includes: a first configuration unit 701, a first issuing unit 702, and a storage unit 703.
The first configuration unit 701 is configured to generate tandem logic monitoring configuration page data in response to a configuration operation performed on a tandem logic monitoring configuration page by a user. Wherein the cascade logic monitors configuration page data, comprising: the method comprises the steps of configuring data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent in the execution sequence.
The first issuing unit 702 is configured to issue the serial logic monitoring configuration page data to the monitoring client, and the monitoring client sequentially generates and sends a monitoring request of each serial interface monitoring task to an interface specified by the serial interface monitoring task according to a specific execution sequence of each serial interface monitoring task. The monitoring request of the serial interface monitoring task with the first execution sequence is generated by the configuration data of the serial interface monitoring task and the logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task.
The storage unit 703 is configured to receive and store monitoring data corresponding to each monitoring request reported by the monitoring client. And the monitoring data corresponding to the monitoring request is data for reflecting the operating condition of the interface in the process of responding to the monitoring request.
Optionally, in a specific embodiment of the present application, the method further includes: a second configuration unit and a second issuing unit.
And the second configuration unit is used for responding to the configuration operation of the user on the basic monitoring configuration page and generating basic monitoring configuration page data. Wherein, basic monitoring configuration page data includes: the method comprises the steps of configuring data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task.
And the second issuing unit is used for issuing the basic monitoring configuration page data to the monitoring client, and the monitoring client generates and sends the monitoring request of each basic interface monitoring task to the interface specified by the basic interface monitoring task by using the configuration data of each basic interface monitoring task. The storage unit 703 includes:
the storage subunit is configured to receive and store monitoring data corresponding to a monitoring request of each serial interface monitoring task reported by a monitoring client and monitoring data corresponding to a monitoring request of each basic interface monitoring task, where the monitoring data includes: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
The specific principle and the execution process of each unit in the interface monitoring device disclosed in the embodiment of the present application are the same as those of the interface monitoring method disclosed in the embodiment of the present application, and reference may be made to corresponding parts in the interface monitoring method disclosed in the embodiment of the present application, which are not described herein again.
The interface monitoring device of the embodiment of the application is applied to a monitoring platform, and generates data of a tandem logic monitoring configuration page by responding to configuration operation of a user on the tandem logic monitoring configuration page through a first configuration unit 701. Wherein the cascade logic monitors configuration page data, comprising: the method comprises the steps of configuring data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent in the execution sequence. And then, the first issuing unit 702 can issue the data of the serial logic monitoring configuration page to the monitoring client, and the monitoring client sequentially generates and sends the monitoring request of each serial interface monitoring task to the interface specified by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task, so as to realize the monitoring requirement under the interface serial logic scene with logic dependence between the interfaces.
The embodiment of the application discloses a computer readable medium, on which a computer program is stored, wherein the program is executed by a processor to implement the interface monitoring method according to any one of the above embodiments.
The embodiment of the application discloses equipment, includes: one or more processors, a storage device, on which one or more programs are stored. The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the interface monitoring method as described in any of the embodiments above.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. An interface monitoring method is applied to a monitoring client, and comprises the following steps:
receiving data of a serial logic monitoring configuration page sent by a monitoring platform; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent to each other in the execution sequence are obtained;
sequentially generating and sending a monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to a specific execution sequence of each serial interface monitoring task; for each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task; the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence;
acquiring monitoring data corresponding to each monitoring request; monitoring data corresponding to the monitoring request is data for reflecting the operation condition of an interface in the process of responding to the monitoring request;
and reporting the monitoring data corresponding to each monitoring request to the monitoring platform.
2. The method according to claim 1, wherein the logic dependency rules between every two serial interface monitoring tasks that are adjacent in execution sequence are obtained by configuring a regular expression corresponding to each serial interface monitoring task;
wherein, the generating of the monitoring request of each serial interface monitoring task includes:
for each serial interface monitoring task, generating a monitoring request of the serial interface monitoring task by using configuration data of the serial interface monitoring task;
and if the serial interface monitoring task exists in the previous serial interface monitoring task, transmitting interface parameters obtained after regular matching is carried out on the regular expression corresponding to the previous serial interface monitoring task into a monitoring request of the serial interface monitoring task.
3. The method according to claim 1, wherein before the obtaining the monitoring data corresponding to each of the monitoring requests, the method further comprises:
receiving basic monitoring configuration page data issued by a monitoring platform; wherein, the basic monitoring configuration page data comprises: the method comprises the steps that configuration data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task are obtained;
respectively generating and sending a monitoring request of each basic interface monitoring task to an interface appointed by the basic interface monitoring task by using the configuration data of each basic interface monitoring task;
wherein, the obtaining of the monitoring data corresponding to each monitoring request includes:
acquiring monitoring data corresponding to the monitoring request of each serial interface monitoring task and monitoring data corresponding to the monitoring request of each basic interface monitoring task; the monitoring data includes: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
4. The method of claim 3, wherein the concatenation logic monitoring configuration page data and the base monitoring configuration page data each further comprise: a timeout threshold;
reporting the monitoring data corresponding to each monitoring request to the monitoring platform includes:
reporting the monitoring data corresponding to each monitoring request to a zabbix system in the monitoring platform; reporting the monitoring data corresponding to each monitoring request determined as abnormal data to a monitoring service back end in the monitoring platform; wherein, the condition that the monitoring data corresponding to the monitoring request is determined to be abnormal data is as follows: the status code in the monitoring data corresponding to the monitoring request is not a predetermined value, the total request time in the monitoring data corresponding to the monitoring request exceeds an overtime threshold, or the regular matching verification result in the monitoring data corresponding to the monitoring request is not verified.
5. The method according to any one of claims 1 to 4, wherein the monitoring data corresponding to the monitoring request further comprises: at least one of domain name resolution time, connection service time, data reception start time, first byte data reception time, and interface jump time.
6. An interface monitoring method is applied to a monitoring platform, and comprises the following steps:
responding to the configuration operation of a user on the serial logic monitoring configuration page, and generating data of the serial logic monitoring configuration page; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent to each other in the execution sequence are obtained;
the monitoring client sequentially generates and sends a monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task; for each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task; the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence;
receiving and storing monitoring data corresponding to each monitoring request reported by the monitoring client; and the monitoring data corresponding to the monitoring request is data for reflecting the operating condition of the interface in the process of responding to the monitoring request.
7. The method according to claim 6, wherein before receiving and storing the monitoring data corresponding to each monitoring request reported by the monitoring client, the method further comprises:
responding to the configuration operation of a user on the basic monitoring configuration page, and generating basic monitoring configuration page data; wherein, the basic monitoring configuration page data comprises: the method comprises the steps that configuration data of a plurality of basic interface monitoring tasks and a regular expression corresponding to each basic interface monitoring task are obtained;
sending the basic monitoring configuration page data to a monitoring client, and generating and sending a monitoring request of each basic interface monitoring task to an interface appointed by the basic interface monitoring task by the monitoring client by respectively utilizing the configuration data of each basic interface monitoring task;
the receiving and storing the monitoring data corresponding to each monitoring request reported by the monitoring client includes:
receiving and storing monitoring data corresponding to the monitoring request of each serial interface monitoring task reported by the monitoring client and monitoring data corresponding to the monitoring request of each basic interface monitoring task; the monitoring data includes: the interface returns a value, a status code, the total time of the request, and a regular matching validation result.
8. An interface monitoring device, applied to a monitoring client, the interface monitoring device comprising:
the first receiving unit is used for receiving the data of the serial logic monitoring configuration page sent by the monitoring platform; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent to each other in the execution sequence are obtained;
the first request unit is used for sequentially generating and sending the monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task; for each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task; the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence;
the acquisition unit is used for acquiring the monitoring data corresponding to each monitoring request; monitoring data corresponding to the monitoring request is data for reflecting the operation condition of an interface in the process of responding to the monitoring request;
and the reporting unit is used for reporting the monitoring data corresponding to each monitoring request to the monitoring platform.
9. An interface monitoring device, applied to a monitoring platform, the interface monitoring device comprising:
the first configuration unit is used for responding to the configuration operation of a user on the serial logic monitoring configuration page and generating serial logic monitoring configuration page data; wherein the concatenation logic monitors configuration page data, comprising: the method comprises the following steps that configuration data of a plurality of serial interface monitoring tasks, a specific execution sequence of each serial interface monitoring task and a logic dependence rule between every two serial interface monitoring tasks which are adjacent to each other in the execution sequence are obtained;
the first issuing unit is used for issuing the serial logic monitoring configuration page data to a monitoring client, and the monitoring client sequentially generates and sends a monitoring request of each serial interface monitoring task to an interface appointed by the serial interface monitoring task according to the specific execution sequence of each serial interface monitoring task; for each serial interface monitoring task with a non-first execution sequence, a monitoring request of the serial interface monitoring task is generated by configuration data of the serial interface monitoring task and a logic dependence rule between the serial interface monitoring task and the previous serial interface monitoring task; the monitoring request of the monitoring task of the serial interface with the first execution sequence is generated by the configuration data of the monitoring task of the serial interface with the first execution sequence;
the storage unit is used for receiving and storing the monitoring data corresponding to each monitoring request reported by the monitoring client; and the monitoring data corresponding to the monitoring request is data for reflecting the operating condition of the interface in the process of responding to the monitoring request.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1 to 5, or the method of claim 6 or 7.
CN202110655834.6A 2021-06-11 2021-06-11 Interface monitoring method, device and computer readable medium Active CN113377616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110655834.6A CN113377616B (en) 2021-06-11 2021-06-11 Interface monitoring method, device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110655834.6A CN113377616B (en) 2021-06-11 2021-06-11 Interface monitoring method, device and computer readable medium

Publications (2)

Publication Number Publication Date
CN113377616A CN113377616A (en) 2021-09-10
CN113377616B true CN113377616B (en) 2022-04-12

Family

ID=77574145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110655834.6A Active CN113377616B (en) 2021-06-11 2021-06-11 Interface monitoring method, device and computer readable medium

Country Status (1)

Country Link
CN (1) CN113377616B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0591345A1 (en) * 1991-06-20 1994-04-13 Icl Systems Ab Method and system for monitoring a computer system.
CN108345527A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 A kind of interface enters the analysis monitoring method and system of ginseng
CN111651318A (en) * 2020-04-30 2020-09-11 中国平安财产保险股份有限公司 Interface monitoring method, device, computer equipment and storage medium based on prometheus
CN112039701A (en) * 2020-08-27 2020-12-04 中国平安财产保险股份有限公司 Interface call monitoring method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10498623B2 (en) * 2012-06-27 2019-12-03 Ubiquiti Inc. Method and apparatus for monitoring and processing sensor data using a sensor-interfacing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0591345A1 (en) * 1991-06-20 1994-04-13 Icl Systems Ab Method and system for monitoring a computer system.
CN108345527A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 A kind of interface enters the analysis monitoring method and system of ginseng
CN111651318A (en) * 2020-04-30 2020-09-11 中国平安财产保险股份有限公司 Interface monitoring method, device, computer equipment and storage medium based on prometheus
CN112039701A (en) * 2020-08-27 2020-12-04 中国平安财产保险股份有限公司 Interface call monitoring method, device, equipment and storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110389815B (en) Task processing method, device and system
US9369521B2 (en) Naming of distributed business transactions
US20070130330A1 (en) System for inventing computer systems and alerting users of faults to systems for monitoring
US20200327045A1 (en) Test System and Test Method
CN111176941B (en) Data processing method, device and storage medium
CN109542718B (en) Service call monitoring method and device, storage medium and server
CN108111499B (en) Business processing performance optimization method and device, electronic equipment and storage medium
CN112866062B (en) Distributed pressure test system, method, device, equipment and storage medium
CN112636979B (en) Cluster alarm method and related device
US20150227412A1 (en) Server performance correction using remote server actions
CN106030456A (en) Automatic asynchronous handoff identification
US10891193B2 (en) Application health monitoring and automatic remediation
CN107819825A (en) A kind of service scheduling method, device and electronic equipment
CN109495543B (en) Management method and device for monitors in ceph cluster
CN117478679A (en) Dynamic load balancing method based on data analysis
CN111416857A (en) Client crash processing method, device, system, equipment and storage medium
CN111026606A (en) Alarm method and device based on hystrix fuse monitoring and computer equipment
CN110995522B (en) Information processing method and device
CN107426012B (en) Fault recovery method and device based on super-fusion architecture
CN115796844A (en) Dynamic updating method of alarm threshold, terminal equipment and system
CN112650642A (en) Alarm processing method and device, equipment and storage medium
CN113377616B (en) Interface monitoring method, device and computer readable medium
CN115766492A (en) Front-end monitoring method, device, equipment and storage medium
CN114443343A (en) Method, device, equipment and storage medium for service interface to feed back abnormal information
US20240348522A1 (en) Network Inspection Method, Network Device, and Network Management Device

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