CN112363887A - Distributed application monitoring method and device and storage medium - Google Patents

Distributed application monitoring method and device and storage medium Download PDF

Info

Publication number
CN112363887A
CN112363887A CN202011251624.2A CN202011251624A CN112363887A CN 112363887 A CN112363887 A CN 112363887A CN 202011251624 A CN202011251624 A CN 202011251624A CN 112363887 A CN112363887 A CN 112363887A
Authority
CN
China
Prior art keywords
monitoring
agent
host
distributed application
installation
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
CN202011251624.2A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011251624.2A priority Critical patent/CN112363887A/en
Publication of CN112363887A publication Critical patent/CN112363887A/en
Pending legal-status Critical Current

Links

Images

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/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems

Landscapes

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

Abstract

The invention provides a distributed application monitoring method, a distributed application monitoring device and a storage medium, wherein the method comprises the steps of obtaining and storing installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels, wherein the monitoring tools of the different levels are accessed into a unified monitoring platform in advance; uniformly installing the plurality of Agent agents to a host where the distributed application is located according to the stored installation information of the plurality of Agent agents, and monitoring the distributed application by using the plurality of Agent agents to obtain monitoring data; and receiving monitoring data fed back by the Agent in any host, and providing the received monitoring data to a monitoring tool corresponding to the Agent. According to the embodiment of the invention, a plurality of monitoring tools of different levels are connected to the unified monitoring platform, so that more comprehensive multi-level monitoring for the application can be realized, the coverage of application monitoring is enlarged, and the Agent agents are uniformly installed according to the stored installation information of the Agent agents, so that the installation efficiency of the Agent agents is greatly improved.

Description

Distributed application monitoring method and device and storage medium
Technical Field
The invention relates to the technical field of data monitoring, in particular to a distributed application monitoring method, a distributed application monitoring device and a storage medium.
Background
Currently, internet companies have various applications, such as App (Application program), Web (World Wide Web), Java (Java), sql (Structured Query Language), and the like, and meanwhile, the availability requirement of the internet companies for the applications is very high, and if the enterprise faces many and complicated applications, the first finder of the Application having problems is from the user with a high probability. However, if a large number of users perceive the failure of the application, the user experience is very poor. For the aspect of fault handling, the problem points cannot be quickly positioned without monitoring, and the problem is quickly solved. For the aspect of active prevention, monitoring is also indispensable, if the problem is found in advance by means of manual inspection, the requirement on manual resources is very high, and the manual inspection has relatively high error rate. Application monitoring is essential to internet enterprises.
The enterprise may use different monitoring tools for monitoring different levels of applications, and if only one monitoring tool is used, the monitoring level is not comprehensive enough. However, if a large number of monitoring tools are used, the operation and maintenance personnel need to search and log in a plurality of Uniform Resource Locators (URLs) when troubleshooting problems, thereby increasing the operation and maintenance time. At present, most of enterprises use monitoring tools purchased from third parties and having open source monitoring tools, the monitoring tools from the third parties are difficult to develop in a customized manner, the monitoring is not comprehensive, and the open source monitoring tools generally have the problem of difficult maintenance. Enterprise maintenance is also faced with difficulty faced with so many and complicated monitoring problems. In addition to this, the present invention is,
disclosure of Invention
In view of the above problems, the present invention is provided to provide a distributed application monitoring method, apparatus and storage medium that overcome or at least partially solve the above problems, and can implement more comprehensive multi-level monitoring for applications, expand coverage for application monitoring, and uniformly install a plurality of Agent agents according to the stored installation information of the Agent agents, thereby greatly improving the installation efficiency of the Agent agents.
According to an aspect of the embodiments of the present invention, a distributed application monitoring method is provided, which is applied to a monitoring backend, and the method includes:
acquiring and storing installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels, wherein the monitoring tools of the different levels are accessed to a unified monitoring platform in advance;
uniformly installing the plurality of Agent agents to a host where the distributed application is located according to the stored installation information of the plurality of Agent agents, and monitoring the distributed application by using the plurality of Agent agents to obtain monitoring data;
and receiving monitoring data fed back by the Agent in any host, and providing the received monitoring data to a monitoring tool corresponding to the Agent.
Optionally, before obtaining and storing installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different hierarchies, the method further includes:
accessing a plurality of monitoring tools of different levels into a unified monitoring platform through a preset interface based on a seven-layer model ISO;
wherein the plurality of different levels of monitoring tools enable seven levels of monitoring based on a seven-level model for the distributed application.
Optionally, the method further comprises:
receiving a login request of a user account;
sending a login request of the user account to a single sign-on server;
the single sign-on server can verify the identity of the user account according to the received sign-on request, and executes sign-on operation on the monitoring tools of a plurality of different levels after the verification is passed.
Optionally, before and after obtaining and storing installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different hierarchies, the method further includes:
monitoring whether a host is added in the distributed application system;
if yes, uniformly installing the Agent agents to the added host according to the stored installation information of the Agent agents.
Optionally, the installing information of the Agent agents includes installing package information and a plurality of pieces of installing instruction information, and the uniformly installing the plurality of Agent agents to the host where the distributed application is located according to the stored installing information of the plurality of Agent agents includes:
sending installation package information of a plurality of Agent agents to a host where distributed application is located;
and according to the installation steps of each Agent, sequentially sending a plurality of pieces of installation instruction information of each Agent to a host where the distributed application is located, and controlling an installation package of the corresponding Agent on the host to execute the installation steps by utilizing the plurality of pieces of installation instructions.
Optionally, the plurality of different levels of monitoring tools include third party monitoring tools and/or open source monitoring tools.
Optionally, receiving monitoring data fed back by the Agent in any host includes:
and receiving monitoring data on the host where the distributed application is located, which is fed back by the Agent in any host and is obtained in a passive receiving or active pulling mode.
According to another aspect of the embodiments of the present invention, there is also provided a distributed application monitoring apparatus, including:
the acquisition module is suitable for acquiring and storing the installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels, wherein the monitoring tools of the different levels are accessed to the unified monitoring platform in advance;
the installation module is suitable for uniformly installing the Agent agents to a host where the distributed application is located according to the stored installation information of the Agent agents, and monitoring the distributed application by using the Agent agents to obtain monitoring data;
and the monitoring module is suitable for receiving monitoring data fed back by the Agent in any host and providing the received monitoring data to a monitoring tool corresponding to the Agent.
According to another aspect of embodiments of the present invention, there is also provided a computer storage medium having stored thereon computer program code which, when run on a computing device, causes the computing device to execute the distributed application monitoring method according to any of the embodiments above.
According to another aspect of the embodiments of the present invention, there is also provided a computing device, including: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform the distributed application monitoring method of any of the embodiments above.
According to the embodiment of the invention, a plurality of monitoring tools of different levels are accessed on the unified monitoring platform in advance, and a plurality of Agent agents are uniformly installed to the host where the distributed application is located by utilizing the stored installation information of the Agent agents corresponding to the monitoring tools of the different levels, so that the Agent agents are utilized to monitor the distributed application. The monitoring tools of a plurality of different levels are accessed to the unified monitoring platform, so that more comprehensive multi-level monitoring of the application can be realized, the coverage of application monitoring is enlarged, the time for finding application problems is shortened, and the problem troubleshooting processing efficiency is improved. The Agent agents are installed in a unified mode according to the stored installation information of the Agent agents, operation and maintenance personnel do not need to install the Agent agents on the host in person, the installation efficiency of the Agent agents is greatly improved, and configuration management of the Agent agents of the monitoring tool is facilitated.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 shows a flow diagram of a distributed application monitoring method according to an embodiment of the invention;
FIG. 2 illustrates a flow diagram for single sign-on to multiple different levels of monitoring tools according to an embodiment of the invention;
FIG. 3 illustrates a schematic diagram of a distributed application monitoring framework according to an embodiment of the invention;
FIG. 4 is a flow diagram illustrating a unified installation of multiple Agent agents to a host of a distributed application according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a distributed application monitoring apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a distributed application monitoring apparatus according to another embodiment of the present invention;
fig. 7 shows a schematic structural diagram of a distributed application monitoring apparatus according to still another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
To solve the foregoing technical problem, an embodiment of the present invention provides a distributed application monitoring method, which can be applied to a monitoring backend, and fig. 1 illustrates a flow diagram of the distributed application monitoring method according to an embodiment of the present invention. Referring to fig. 1, the method includes steps S102 to S106.
And S102, acquiring and storing installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels, wherein the monitoring tools of the different levels are accessed to the unified monitoring platform in advance.
And step S104, uniformly installing the plurality of Agent agents to a host where the distributed application is located according to the stored installation information of the plurality of Agent agents, and monitoring the distributed application by using the plurality of Agent agents to obtain monitoring data.
The Agent in the embodiment of the present invention may be an APP installed on the host, or may be a plug-in installed in an application on the host, which is not specifically limited in the embodiment of the present invention. Generally, one monitoring tool may correspond to one Agent.
And step S106, receiving the monitoring data fed back by the Agent in any host, and providing the received monitoring data to the monitoring tool corresponding to the Agent.
According to the embodiment of the invention, a plurality of monitoring tools of different levels are accessed on the unified monitoring platform in advance, and a plurality of Agent agents are uniformly installed to the host where the distributed application is located by utilizing the stored installation information of the Agent agents corresponding to the monitoring tools of the different levels, so that the Agent agents are utilized to monitor the distributed application. The monitoring tools of a plurality of different levels are accessed to the unified monitoring platform, so that more comprehensive multi-level monitoring of the application can be realized, the coverage of application monitoring is enlarged, the time for finding application problems is shortened, and the problem troubleshooting processing efficiency is improved. The Agent agents are installed in a unified mode according to the stored installation information of the Agent agents, operation and maintenance personnel do not need to install the Agent agents on the host in person, the installation efficiency of the Agent agents is greatly improved, and configuration management of the Agent agents of the monitoring tool is facilitated.
The embodiment of the invention can store the installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels through a CMDB (Configuration Management Database) Management platform arranged at the monitoring back end, and uniformly install the Agent agents to a host where the distributed application is located. The CMDB management platform also has automatic discovery capability, can capture, file and store related end-to-end services, and supports business services and enterprise infrastructure.
The embodiment of the invention can establish a monitoring System based on a seven-layer model ISO (open System interconnection), namely, monitoring tools corresponding to each application level in the seven-layer model are accessed to a unified monitoring platform. Therefore, before the step S102 is executed to obtain and store the installation information of the Agent agents corresponding to the monitoring tools of different levels, the monitoring tools of different levels may be accessed to the unified monitoring platform through an Application Programming Interface (API) based on the seven-layer model ISO.
The monitoring tools of the multiple different levels of the embodiment of the invention realize seven-level monitoring based on a seven-layer model for distributed application. The seven levels of the seven-layer model can comprise an application layer, a presentation layer, a session layer, a transmission layer, a network layer, a data link layer and a physical layer, and the monitoring tools accessed to the unified monitoring platform can correspond to the levels.
For example, the monitoring tool accessing the unified monitoring platform may adopt an Argus (performance monitoring) monitoring tool, where the Argus monitoring tool monitors the host performance of the application physical layer, such as monitoring the usage of the CPU, the memory, and the disk of the host. For another example, zabbix (WEB interface-based distributed system monitoring) monitoring tools are used to monitor database load, database consumption, etc. of the application physical layer. For another example, an APM (application performance Management) is used to monitor the application data link layer, the network layer, and the transport layer, such as monitoring the time consumption of the database executing the whole link when a request, network transport, and http response are sent from the user. Of course, other tools may be used to access the monitoring tool for monitoring the service data. The APM monitoring tool is very practical for the application with very high real-time requirement, the time-consuming situation of the whole link of the current application system can be seen through APM monitoring, the situation of the user request link can be seen according to a certain user account, the problem of the application system can be rapidly located, and in addition, the application system can be pertinently optimized through monitoring the time-consuming situations of different data processing processes.
Therefore, the embodiment of the invention can access a plurality of monitoring tools of different levels into the unified monitoring platform through the preset interface based on the seven-layer model ISO, and install the Agent agents corresponding to the monitoring tools of the different levels to the host where the application is located, so that the monitoring can be performed from the host of the bottommost layer, the network to the application link and other levels through the unified monitoring platform, the multi-level monitoring is realized, the problem finding time is greatly shortened, and the problem troubleshooting processing efficiency is improved.
In an embodiment of the present invention, a single Sign-on sso (single Sign on) is established on the unified monitoring platform to access a plurality of monitoring tools of different levels to the single Sign-on. Referring to fig. 2, the single sign-on process may include step S11 and step S12.
In step S11, a login request of a user account is received.
Step S12, sending the login request of the user account to the single sign-on server, and the single sign-on server executes login operation on the monitoring tools of different levels.
In the embodiment of the invention, if the login request of the user account is received, the login request of the user account can be sent to the single sign-on server. The single sign-on server can verify the identity of the user account according to the received sign-on request, and executes sign-on operation on a plurality of monitoring tools of different levels after the verification is passed. The user account here may refer to an account of an operation and maintenance person. For example, the embodiment of the invention can provide a uniform login interface for the operation and maintenance personnel on the uniform monitoring platform, and the operation and maintenance personnel input the user account through the uniform login interface. And after the unified monitoring platform receives a login request corresponding to the user account, sending the login request to the single sign-on server. The single sign-on server firstly verifies the identity of the user account, and if the identity passes the verification, the single sign-on server can realize the login operation of a plurality of monitoring tools of different levels.
When the single sign-on server of the embodiment of the invention realizes the login operation of a plurality of monitoring tools of different levels, the single sign-on server can simultaneously send login requests to the servers corresponding to the monitoring tools of the plurality of different levels, thereby realizing the login of the monitoring tools of the plurality of different levels.
By adopting the embodiment of the invention, operation and maintenance personnel do not need to register a plurality of account information for a plurality of monitoring tools of different levels, and do not need to log in the monitoring tools of the different levels respectively. The method comprises the following steps that single sign-on is carried out on a plurality of monitoring tools of different levels on a unified monitoring platform, and operation and maintenance personnel can log on a plurality of mutually trusted monitoring tools on the unified monitoring platform only by using one account to carry out one-time sign-on operation. Moreover, operation and maintenance personnel can log in a plurality of monitoring tools through the unified login window on the unified monitoring platform, the time for entering different monitoring tool addresses (url) can be effectively reduced, and the efficiency for troubleshooting monitored problems is further improved.
The above embodiments have been introduced, and a plurality of monitoring tools of different levels access the unified monitoring platform through the preset interface API. After the unified monitoring platform sends the login request to the single sign-on server, the single sign-on server can obtain the interfaces of the monitoring tools of a plurality of different levels, and the login request is sent to the monitoring server corresponding to the monitoring tool based on the obtained interfaces of the monitoring tools, so that the monitoring tools can be logged in.
In an embodiment of the present invention, before the step S11 is executed to receive the login request of the user account, account information of a plurality of user accounts and password information set by the user are saved in the same AD (active direction) domain, and the user accounts in the AD domain are synchronized to the single sign-on server. And the single sign-on server verifies the identity of the user account corresponding to the login request by utilizing a plurality of user accounts synchronized in advance. According to the embodiment of the invention, the account information of a plurality of user accounts and the password information set by the user are stored in the same AD domain, so that the centralized management of the user accounts can be facilitated.
To more clearly show the above embodiments, an embodiment of the present invention is described below with reference to an installation process of Agent agents corresponding to a plurality of monitoring tools of different levels and a single sign-on process of the monitoring tools of different levels. Referring to fig. 3, the monitoring back-end includes a CMDB management platform, a unified monitoring platform, and a single sign-on server.
The unified monitoring platform is accessed to a plurality of monitoring tools of different levels through a preset interface API. And the CMDB management platform acquires and stores the installation information of a plurality of Agent agents corresponding to the monitoring tools of different levels. And the CMDB management platform uniformly installs the plurality of Agent agents to the host (such as the host 1 and the host 2) where the distributed application is located according to the stored installation information of the plurality of Agent agents so as to monitor the distributed application in the host 1 and the host 2 by using the plurality of Agent agents and obtain monitoring data. And when any Agent in any host monitors to obtain monitoring data, the monitoring data is provided to the unified monitoring platform, and the unified monitoring platform provides the received monitoring data fed back by the Agent to the corresponding monitoring tool.
If the operation and maintenance personnel log in the user account through the login interface of the unified monitoring platform, the unified monitoring platform receives the login request of the user account and sends the login request of the user account to the single sign-on server, and the single sign-on server executes login operation on a plurality of monitoring tools of different levels. The number of hosts in the embodiments of the present invention is not limited herein.
In an embodiment of the present invention, before the step S102 is executed to obtain and store the installation information of the Agent agents corresponding to the monitoring tools of different levels, the CMDB management platform may further continue to monitor whether the host is added to the distributed application system. If the distributed application system is monitored to be added with the host, the Agent agents are uniformly installed to the added host according to the stored installation information of the Agent agents. Generally, an application is installed in a newly added host, and therefore, after the newly added host is monitored, a plurality of Agent agents are installed on the added host to realize multi-level monitoring of the application in the newly added host.
The embodiment of the invention can determine whether the host is newly added by monitoring whether a new host IP address exists or not when the CMDB management platform is adopted to monitor the host. For example, the CMDB management platform monitors the IP address of the newly added host, and thus, it can know that the host is newly added in the distributed application system. The CMDB management platform stores the installation information of the Agent agents corresponding to the monitoring tools of a plurality of levels, so that the Agent agents can be directly installed on the added host according to the stored installation information of the Agent agents. In addition, the monitoring content of the Agent for the application program on the host can be configured according to the specific monitoring requirements of the operation and maintenance personnel.
By adopting the embodiment of the invention, the Agent can be quickly and conveniently installed on the newly added host without the need of special operation and maintenance personnel for setting the installation information of the Agent on the host and installing the Agent, and especially under the condition of wide host distribution, a plurality of Agent agents can be intensively installed on the CMDB management platform for the host in a remote way, thereby not only saving the human resource for installing the Agent, but also improving the installation efficiency of the Agent.
In an embodiment of the present invention, the installation information of the Agent includes installation package information and multiple pieces of installation instruction information, and referring to fig. 4, the process of uniformly installing the multiple agents to the host where the distributed application is located according to the stored installation information of the multiple agents further includes step S1041 and step S1042.
Step S1041, sending the installation package information of the plurality of Agent agents to the host where the distributed application is located.
And step S1042, according to the installation steps of the Agent agents, sequentially sending a plurality of pieces of installation instruction information of the Agent agents to a host where the distributed application is located, and controlling an installation package of the corresponding Agent on the host to execute the installation steps by using the installation instructions.
In the process of uniformly installing a plurality of Agent agents, the CMDB management platform sends the pre-stored installation package information of the Agent agents to the host, so that the installation of the Agent agents on the host can be remotely realized, the human resource for installing the Agent agents is saved, and the installation efficiency of the Agent agents is improved.
In the embodiment of the present invention, when step S1041 is executed to send the installation package information of the plurality of Agent agents to the host where the distributed application is located, the installation package information of the Agent agents may also be packaged into a compressed file in a specified format, so that the compressed file is sent to the host where the distributed application is located. By packaging the installation package information of the Agent into a compressed file with a specified format, the sending time of the installation package information of the Agent can be saved, and the sending efficiency of the installation package information of the Agent is improved.
In the embodiment of the invention, when the installation package information or the installation instruction information of the Agent is sent, the installation package information or the installation instruction information of the Agent can be encrypted, so that the encrypted installation package information or the encrypted installation instruction information of the Agent is sent to the host where the distributed application is located. By encrypting the installation package information or a plurality of pieces of installation instruction information of the Agent, the safety of the Agent installation information can be effectively improved, and the Agent installation information is prevented from being maliciously written and changed or stolen in the transmission process.
In the embodiment of the invention, one Agent generally corresponds to a plurality of pieces of installation instruction information, and the embodiment of the invention can sequentially send the plurality of pieces of installation instruction information to the host where the distributed application is located according to the installation steps of the Agent, and can also once send the plurality of pieces of installation instruction information of one Agent to the host where the distributed application is located, so that the Agent is installed on the host according to the execution sequence of the plurality of installation instructions. In addition, multiple pieces of installation instruction information of multiple Agent agents can be sent to a host where the distributed application is located at one time, the multiple Agent agents are preset with installation sequences, the host installs the Agent agents according to the installation sequences of the multiple Agent agents, and the Agent agents are installed according to the execution sequences of the multiple installation instructions of the corresponding Agent agents in the installation process of each Agent. The embodiment of the present invention does not specifically limit the transmission method of the installation information of the Agent.
In an embodiment of the present invention, the plurality of monitoring tools at different levels includes a third party monitoring tool and/or an open source monitoring tool. Of course, the monitoring tool may also be a monitoring tool from other sources, and the type of the source of the monitoring tool is not particularly limited in the embodiments of the present invention.
The embodiment of the invention stores the installation information of the Agent agents of the monitoring tools with different source types in the unified monitoring platform, and installs the Agent agents of the monitoring tools with different source types in the host computer so as to utilize different monitoring tools to carry out data monitoring, thus the distributed application monitoring process is not limited by the monitoring tools. Especially for the situation of simultaneously using a third-party monitoring tool and an open source monitoring tool, the advantages of the monitoring tools of two different source types can be effectively complemented, so that the comprehensive monitoring of distributed application is ensured, and the applicability to different monitoring tools is improved.
Referring to step S106, in an embodiment of the present invention, when receiving the monitoring data fed back by the Agent in any host, the monitoring data on the host where the distributed application is located, which is obtained by passive receiving or active pulling and fed back by the Agent in any host, may be received. In this embodiment, the Agent passively receives the embedded data by pre-embedding the application program. In the active receiving process, the Agent actively pulls the monitored monitoring data by monitoring the application program.
In the embodiment of the invention, after the unified monitoring platform receives the monitoring data fed back by the Agent, the received monitoring data can be cached in the message queue, and then the monitoring data in the message queue is provided to the monitoring tool corresponding to the Agent according to the time sequence of receiving the monitoring data, so that the problems that the monitoring data is disordered when the received monitoring data is excessive and the monitoring data cannot be orderly sent to the corresponding monitoring tool according to the time sequence can be effectively avoided.
Based on the same inventive concept, an embodiment of the present invention further provides a distributed application monitoring apparatus, and fig. 5 shows a schematic structural diagram of the distributed application monitoring apparatus according to an embodiment of the present invention, and referring to fig. 5, the distributed application monitoring apparatus includes an obtaining module 510, an installing module 520, and a monitoring module 530.
The obtaining module 510 is adapted to obtain and store installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels, where the monitoring tools of the plurality of different levels are accessed to the unified monitoring platform in advance.
The installation module 520 is adapted to uniformly install the plurality of Agent agents to the host where the distributed application is located according to the stored installation information of the plurality of Agent agents, and monitor the distributed application by using the plurality of Agent agents to obtain monitoring data.
And the monitoring module 530 is adapted to receive monitoring data fed back by the Agent in any host, and provide the received monitoring data to the monitoring tool corresponding to the Agent.
Referring to fig. 6, in an embodiment of the present invention, the distributed application monitoring apparatus in fig. 5 further includes an access module 540, which is adapted to access the monitoring tools in different levels to the unified monitoring platform through a preset interface based on a seven-layer model ISO before the obtaining module 510 obtains and stores the installation information of the Agent agents corresponding to the monitoring tools in different levels. The monitoring tool at a plurality of different levels realizes seven levels of monitoring based on a seven-layer model for the distributed application.
Referring to fig. 7, in an embodiment of the present invention, the distributed application monitoring apparatus of fig. 5 above further includes a login module 550, adapted to receive a login request of a user account; sending a login request of a user account to a single sign-on server; the single sign-on server can verify the identity of the user account according to the received sign-on request, and executes sign-on operation on the monitoring tools of a plurality of different levels after the verification is passed.
In an embodiment of the present invention, the installation module 520 is further adapted to monitor whether a host is added to the distributed application system after the obtaining module 510 obtains and stores installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels; if yes, uniformly installing the plurality of Agent agents to the added host according to the stored installation information of the plurality of Agent agents.
In an embodiment of the present invention, the installation information of the Agent includes installation package information and a plurality of pieces of installation instruction information, and the installation module 520 is further adapted to send the installation package information of the plurality of Agent agents to the host where the distributed application is located; and according to the installation steps of each Agent, sequentially sending a plurality of pieces of installation instruction information of each Agent to the host where the distributed application is located respectively, and controlling the installation package of the corresponding Agent on the host to execute the installation steps by utilizing the plurality of pieces of installation instructions.
In an embodiment of the present invention, the plurality of different levels of monitoring tools include a third party monitoring tool and/or an open source monitoring tool.
In an embodiment of the present invention, the monitoring module 530 is further adapted to receive monitoring data, which is fed back by the Agent in any host and obtained by passive reception or active pulling, of the host where the distributed application is located.
Based on the same inventive concept, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer program codes, and when the computer program codes run on a computing device, the computing device is caused to execute the distributed application monitoring method according to any of the above embodiments.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform the distributed application monitoring method of any of the embodiments above.
It is clear to those skilled in the art that the specific working processes of the above-described systems, devices, modules and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.

Claims (10)

1. A distributed application monitoring method is applied to a monitoring back end, and the method comprises the following steps:
acquiring and storing installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels, wherein the monitoring tools of the different levels are accessed to a unified monitoring platform in advance;
uniformly installing the plurality of Agent agents to a host where the distributed application is located according to the stored installation information of the plurality of Agent agents, and monitoring the distributed application by using the plurality of Agent agents to obtain monitoring data;
and receiving monitoring data fed back by the Agent in any host, and providing the received monitoring data to a monitoring tool corresponding to the Agent.
2. The method of claim 1, wherein before obtaining and storing installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels, the method further comprises:
accessing a plurality of monitoring tools of different levels into a unified monitoring platform through a preset interface based on a seven-layer model ISO;
wherein the plurality of different levels of monitoring tools enable seven levels of monitoring based on a seven-level model for the distributed application.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a login request of a user account;
sending a login request of the user account to a single sign-on server;
the single sign-on server can verify the identity of the user account according to the received sign-on request, and executes sign-on operation on the monitoring tools of a plurality of different levels after the verification is passed.
4. The method according to claim 1 or 2, wherein before and after obtaining and storing the installation information of the plurality of Agent agents corresponding to the plurality of monitoring tools of different levels, the method further comprises:
monitoring whether a host is added in the distributed application system;
if yes, uniformly installing the Agent agents to the added host according to the stored installation information of the Agent agents.
5. The method according to claim 1 or 2, wherein the installation information of the Agent agents includes installation package information and a plurality of pieces of installation instruction information, and the step of uniformly installing the Agent agents to the host where the distributed application is located according to the stored installation information of the Agent agents comprises the steps of:
sending installation package information of a plurality of Agent agents to a host where distributed application is located;
and according to the installation steps of each Agent, sequentially sending a plurality of pieces of installation instruction information of each Agent to a host where the distributed application is located, and controlling an installation package of the corresponding Agent on the host to execute the installation steps by utilizing the plurality of pieces of installation instructions.
6. The method of claim 1 or 2, wherein the plurality of different levels of monitoring tools include third party monitoring tools and/or open source monitoring tools.
7. The method according to claim 1 or 2, wherein receiving monitoring data fed back by the Agent in any host comprises:
and receiving monitoring data on the host where the distributed application is located, which is fed back by the Agent in any host and is obtained in a passive receiving or active pulling mode.
8. A distributed application monitoring apparatus, comprising:
the acquisition module is suitable for acquiring and storing the installation information of a plurality of Agent agents corresponding to a plurality of monitoring tools of different levels, wherein the monitoring tools of the different levels are accessed to the unified monitoring platform in advance;
the installation module is suitable for uniformly installing the Agent agents to a host where the distributed application is located according to the stored installation information of the Agent agents, and monitoring the distributed application by using the Agent agents to obtain monitoring data;
and the monitoring module is suitable for receiving monitoring data fed back by the Agent in any host and providing the received monitoring data to a monitoring tool corresponding to the Agent.
9. A computer storage medium having computer program code stored thereon which, when run on a computing device, causes the computing device to perform the distributed application monitoring method of any of claims 1-7.
10. A computing device, comprising: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform the distributed application monitoring method of any of claims 1-7.
CN202011251624.2A 2020-11-11 2020-11-11 Distributed application monitoring method and device and storage medium Pending CN112363887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011251624.2A CN112363887A (en) 2020-11-11 2020-11-11 Distributed application monitoring method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011251624.2A CN112363887A (en) 2020-11-11 2020-11-11 Distributed application monitoring method and device and storage medium

Publications (1)

Publication Number Publication Date
CN112363887A true CN112363887A (en) 2021-02-12

Family

ID=74514507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011251624.2A Pending CN112363887A (en) 2020-11-11 2020-11-11 Distributed application monitoring method and device and storage medium

Country Status (1)

Country Link
CN (1) CN112363887A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220360503A1 (en) * 2021-04-09 2022-11-10 Samsung Electronics Co., Ltd. Method and system for monitoring application services in a network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067582A (en) * 1996-08-13 2000-05-23 Angel Secure Networks, Inc. System for installing information related to a software application to a remote computer over a network
CN107634852A (en) * 2017-08-17 2018-01-26 新华三大数据技术有限公司 The method and apparatus for supervising big data cluster
US20180131574A1 (en) * 2016-11-09 2018-05-10 SingeHop, LLC Remote server monitoring and patching system
CN109714192A (en) * 2018-11-29 2019-05-03 深圳供电局有限公司 Monitoring method and system for monitoring cloud platform
CN110162441A (en) * 2019-04-16 2019-08-23 平安普惠企业管理有限公司 Centralized monitoring method and device, electronic equipment, the storage medium of application system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067582A (en) * 1996-08-13 2000-05-23 Angel Secure Networks, Inc. System for installing information related to a software application to a remote computer over a network
US20180131574A1 (en) * 2016-11-09 2018-05-10 SingeHop, LLC Remote server monitoring and patching system
CN107634852A (en) * 2017-08-17 2018-01-26 新华三大数据技术有限公司 The method and apparatus for supervising big data cluster
CN109714192A (en) * 2018-11-29 2019-05-03 深圳供电局有限公司 Monitoring method and system for monitoring cloud platform
CN110162441A (en) * 2019-04-16 2019-08-23 平安普惠企业管理有限公司 Centralized monitoring method and device, electronic equipment, the storage medium of application system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220360503A1 (en) * 2021-04-09 2022-11-10 Samsung Electronics Co., Ltd. Method and system for monitoring application services in a network
US11792089B2 (en) * 2021-04-09 2023-10-17 Samsung Electronics Co., Ltd. Method and system for monitoring application services in a network

Similar Documents

Publication Publication Date Title
CN107395767B (en) Message pushing system and method based on long connection
CN107580046B (en) Long connection service system and method
US11777865B2 (en) Discovery and adjustment of path maximum transmission unit
US20120272245A1 (en) Web service management
US10862976B2 (en) System and method for improving efficiency of SSL/TLS connections
CN111104675A (en) Method and device for detecting system security vulnerability
JP2007538302A (en) Client-server data execution flow
CN109039803A (en) A kind of method, system and the computer equipment of processing readjustment notification message
CN111212117A (en) Remote interaction method and device
US9985976B1 (en) Methods for identifying network traffic characteristics to correlate and manage one or more subsequent flows and devices thereof
WO2017080328A1 (en) Terminal user state acquisition method, device and system
CN112363887A (en) Distributed application monitoring method and device and storage medium
US11240210B2 (en) Methods, apparatuses, and systems for acquiring local information
WO2017000589A1 (en) Flexible capacity expansion method, apparatus and system
CN114257632B (en) Method and device for reconnecting broken wire, electronic equipment and readable storage medium
US20140047014A1 (en) Network access system
CN113542324B (en) Message pushing method and device
CN111490997B (en) Task processing method, proxy system, service system and electronic equipment
CN106790150B (en) Session maintaining method and device
CN110266705A (en) Control method and system
US20220217007A1 (en) Device notification groupings
CN115022065B (en) License authentication method and system
CN113515375B (en) Calling method and device for multiple CICS nodes
CN117156474B (en) Remote intelligent operation and maintenance system and operation and maintenance method thereof
CN116074024A (en) Monitoring plug-in authentication method and system based on cloud computing technology

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210212

WD01 Invention patent application deemed withdrawn after publication