CN112187933A - Method and system for monitoring services in multi-architecture cloud platform - Google Patents

Method and system for monitoring services in multi-architecture cloud platform Download PDF

Info

Publication number
CN112187933A
CN112187933A CN202011052571.1A CN202011052571A CN112187933A CN 112187933 A CN112187933 A CN 112187933A CN 202011052571 A CN202011052571 A CN 202011052571A CN 112187933 A CN112187933 A CN 112187933A
Authority
CN
China
Prior art keywords
monitoring
cloud platform
data
service
pass
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011052571.1A
Other languages
Chinese (zh)
Other versions
CN112187933B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011052571.1A priority Critical patent/CN112187933B/en
Publication of CN112187933A publication Critical patent/CN112187933A/en
Application granted granted Critical
Publication of CN112187933B publication Critical patent/CN112187933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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
    • 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/301Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is a virtual computing platform, e.g. logically partitioned systems
    • 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/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • 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/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The invention discloses a system and a method for monitoring services in a multi-architecture cloud platform, wherein the method comprises the following steps: the method comprises the steps of running various pass services externally provided by a cloud platform on one or more virtual machines, configuring different monitoring configuration files according to different pass service types, compiling related monitoring scripts according to monitoring items in the different monitoring configuration files and obtaining the monitoring scripts, executing the monitoring scripts on the virtual machines corresponding to the pass services based on paths of the monitoring scripts in the monitoring items in the monitoring configuration files, obtaining monitoring data, converting the monitoring data into display data by using the configuration items in the monitoring configuration files, and displaying the display data according to instructions of users, wherein the system comprises modules corresponding to the steps of the method.

Description

Method and system for monitoring services in multi-architecture cloud platform
Technical Field
The invention relates to the field of services in a cloud platform, in particular to a method and a system for monitoring services in a multi-architecture cloud platform.
Background
With the continuous development of cloud computing, more and more enterprises adopt cloud platforms to deploy their services. The infrastructure of an enterprise is no longer a simple physical machine and a virtualization platform, a public cloud and a private cloud are used as more and more important parts and occupy more and more important positions, a data exchange platform and the like are often implemented in the traditional enterprise informatization construction process to realize data exchange and cooperation among service systems, and the inevitable problem is that common shared service data falls on the ground in multiple service systems at multiple points.
Disclosure of Invention
In this summary, concepts in a simplified form are introduced that are further described in the detailed description. This summary of the invention is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
In order to at least partially solve the above problems, the present invention provides a method for monitoring services in a multi-architecture cloud platform, including:
running various pass services externally provided by a cloud platform on one or more virtual machines, and configuring different monitoring configuration files according to different pass service types;
compiling related monitoring scripts according to monitoring items in the different monitoring configuration files and acquiring the monitoring scripts;
executing a monitoring script on a virtual machine corresponding to the pass service based on a path of the monitoring script in the monitoring item in the monitoring configuration file to obtain monitoring data;
and converting the monitoring data into display data by using the configuration items in the monitoring configuration file, and displaying according to the instruction of the user.
Further, the running of various pass services externally provided by the cloud platform on one or more virtual machines and the configuration of different monitoring configuration files according to different pass service types include:
acquiring pass service according to a server address provided by a cloud platform;
monitoring the pass service in real time, and operating the pass service on a virtual machine by calling an API (application program interface) of the pass service;
and configuring different monitoring configuration files for the pass service according to different types.
Further, the monitoring items include one or more of CPU load, network card flow, remaining memory capacity, remaining disk capacity, number of computer accounts, number of currently logged accounts, number of currently started processes of the computer, and number of installed software packages of the computer.
Further, the monitoring script is executed on the virtual machine corresponding to the pass service based on the path of the monitoring script in the monitoring item in the monitoring configuration file, and monitoring data are obtained:
acquiring a monitoring configuration file according to the service type through a monitoring adapter;
acquiring an absolute path of a monitoring script in a monitoring item in a monitoring configuration file through a Print Working Directory command;
and executing the monitoring script on the virtual machine corresponding to the pass service under the absolute path of the monitoring script to obtain monitoring data, and storing the monitoring data into a database.
Further, the converting the monitoring data into the display data and displaying the display data according to the instruction of the user by using the configuration item in the monitoring configuration file includes:
combining the acquired monitoring data with the description information of the configuration file through a monitoring adapter to convert the monitoring data into final display data, and storing the display data into a database;
when a user wants to view data of a certain service, the cloud platform displays the display data to the user by inputting an instruction.
Further, the compiling related monitoring scripts according to the monitoring items in the different monitoring configuration files and obtaining the monitoring scripts includes:
the CPU monitoring script is used for monitoring the CPU, and counting the number of service processes when the utilization rate of the CPU exceeds 70%;
the method comprises the steps of monitoring a script of a memory, checking the utilization rate of the memory, and recording the first 10 processes occupying the highest memory when the utilization rate of the memory exceeds 70%;
and the process monitoring script is used for checking whether the Zombie process exists in the system or not, if so, automatically killing the process and recording a log.
Further, when the user wants to view data of a certain service, the cloud platform displays the display data to the user by inputting a database query command select and specifying conditions to perform data query. .
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method for monitoring services in a multi-architecture cloud platform.
A monitoring system for services in a multi-architecture cloud platform, comprising:
the cloud platform service operation module is used for operating various pass services externally provided by the cloud platform on one or more virtual machines and configuring different monitoring configuration files according to different pass service types;
the script construction module is used for compiling related monitoring scripts according to the monitoring items in the different monitoring configuration files and acquiring the monitoring scripts;
the execution acquisition module is used for executing the monitoring script on the virtual machine corresponding to the pass service based on the path of the monitoring script in the monitoring item in the monitoring configuration file to acquire monitoring data;
and the user display module is used for converting the monitoring data into display data by using the configuration items in the monitoring configuration file and displaying the display data according to the instruction of the user.
Further, the cloud platform service running module comprises:
the acquisition module is used for acquiring pass service according to the server address provided by the cloud platform;
the monitoring module is used for monitoring the pass service in real time and operating the pass service on the virtual machine by calling an API (application program interface) of the pass service;
and the configuration module is used for configuring the pass service into different monitoring configuration files according to different types.
Compared with the prior art, the invention at least comprises the following beneficial effects:
the monitoring system and the method of the multi-architecture cloud platform service improve the operation efficiency by operating various pass services externally provided by the cloud platform on one or more virtual machines and configuring different monitoring configuration files according to different pass service types, compile related monitoring scripts according to monitoring items in different monitoring configuration files and obtain the monitoring scripts, can improve the accuracy of data acquisition, obtain different monitoring configuration files according to different service types so as to obtain corresponding monitoring script information, execute the monitoring scripts on the virtual machines corresponding to the pass services based on the paths of the monitoring scripts in the monitoring configuration files to acquire the monitoring data, convert the monitoring data into display data by utilizing the configuration items in the monitoring configuration files and display the display data according to instructions of users, and perform monitoring through customizing the service configuration files, The monitoring adapter and the like realize different service monitoring functions, the expandability of the system is enhanced by the method, if the monitoring information of one service needs to be added, the code logic of the core does not need to be modified, and only the corresponding configuration items need to be added and the scripts needing the monitoring items need to be written on the original basis.
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 principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart of a method for monitoring services in a multi-architecture cloud platform according to the present invention;
FIG. 2 is a system block diagram of a monitoring system for services in a multi-architecture cloud platform according to the present invention;
FIG. 3 is a system flowchart of a monitoring system for services in a multi-architecture cloud platform according to the present invention;
fig. 4 is a schematic diagram of a method for monitoring services in a multi-architecture cloud platform according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1 to 4, the present invention provides a method and a system for monitoring services in a multi-architecture cloud platform, including: the monitoring method comprises the following steps:
s1, running various pass services externally provided by the cloud platform on one or more virtual machines, and configuring different monitoring configuration files according to different pass service types;
s2, compiling related monitoring scripts according to the monitoring items in the different monitoring configuration files and acquiring the monitoring scripts;
s3, executing the monitoring script on the virtual machine corresponding to the pass service based on the path of the monitoring script in the monitoring item in the monitoring configuration file, and acquiring monitoring data;
and S4, converting the monitoring data into display data by using the configuration items in the monitoring configuration file, and displaying according to the instruction of the user.
The working principle of the technical scheme is as follows: firstly, a cloud platform provides various pass services to the outside based on virtual machines, the pass services are operated on one or more virtual machines, different monitoring configuration files are configured according to different pass service types, the files maintain the relationship between the final display form (such as a broken line graph, a bar graph, a coordinate axis name and the like) and the path of a script file in the virtual machines, a mysql database master-slave is taken as an example and operated on two virtual machines to provide the services of the database to the outside, then related monitoring scripts are compiled according to monitoring items in the different monitoring configuration files and obtained, the monitoring scripts comprise a CPU monitoring script and are used for monitoring the CPU, when the CPU utilization rate exceeds 70%, the number of service processes is counted, the memory monitoring script is checked, when the memory utilization rate exceeds 70%, the first 10 processes which occupy the highest memory are recorded, and the process monitoring script is obtained, the monitoring method is used for checking whether the Zombie process progress exists in the system, if so, automatically killing the Zombie process progress, making log records, wherein monitoring items comprise one or more of CPU load, network card flow, memory residual capacity, disk residual capacity, computer account number, current login account number, current opened progress number of the computer and installed software package number, then executing a monitoring script on a virtual machine corresponding to pass service based on a path of the monitoring script in the monitoring item in a monitoring configuration file, acquiring monitoring data, and finally converting the monitoring data into display data by utilizing the configuration item in the monitoring configuration file and displaying the display data according to a user instruction.
The beneficial effects of the above technical scheme are that: various pass services externally provided by a cloud platform are operated on one or more virtual machines, different monitoring configuration files are configured according to different pass service types, the operation speed can be greatly improved, related monitoring scripts are compiled according to monitoring items in the different monitoring configuration files, the accuracy of data acquisition can be improved, different monitoring configuration files are obtained according to different service types, so that corresponding monitoring script information is obtained, the monitoring scripts are executed on the virtual machines corresponding to the pass services based on paths of the monitoring scripts in the monitoring configuration files, the monitoring data are obtained, the configuration items in the monitoring configuration files are utilized to convert the monitoring data into display data and display the display data according to instructions of users, different service monitoring functions are realized through self-defining service configuration files, monitoring adapters and the like, and the expandability of the system is enhanced through the method, the monitoring information of the service is increased, the code logic of the core is not required to be modified, only corresponding monitoring configuration files are required to be added on the original basis, and scripts of items needing monitoring are required to be written, so that the problem that in the traditional method, corresponding codes are required to be written to realize operation when each service is added is solved, the result that the whole program cannot run due to code writing errors is avoided, and the working time is saved by reducing the writing of complex codes.
In an embodiment, the running of various pass services externally provided by the cloud platform on one or more virtual machines and the configuring of different monitoring configuration files according to different pass service types include:
s101, obtaining pass service according to a server address provided by a cloud platform;
s102, monitoring the pass service in real time, and operating the pass service on a virtual machine by calling an API (application program interface) of the pass service;
s103, configuring different monitoring configuration files for the pass service according to different types.
The working principle of the technical scheme is as follows: firstly, acquiring a pass service according to a server address provided by a cloud platform, then monitoring the pass service in real time, running the pass service on a virtual machine by calling an API (Application Programming Interface) Interface of the pass service, and finally configuring different monitoring configuration files of the pass service according to different types.
The beneficial effects of the above technical scheme are that: the method can monitor the pass service in real time, once the service type is changed, the API (Application Programming Interface) corresponding to different types of services can be adjusted and called at any time to run on the virtual machine, so that various pass services are provided to the outside, different monitoring configuration files are configured according to different pass service types, different service monitoring functions are realized by customizing the service configuration files, the expandability of the system is enhanced, one monitoring configuration file can be shared in the same pass service, the monitoring configuration file is provided, if monitoring information of one service is required to be added, the code logic of a core is not required to be modified, only the corresponding monitoring configuration file is required to be added on the original basis and a script required to be monitored is required to be written, and the operation that the corresponding code is required to be written for each service added in the traditional method is solved, therefore, the result that the whole program cannot run due to the wrong code writing is avoided, and the working time is saved by reducing the writing of complex codes.
In an embodiment, the executing the monitoring script on the virtual machine corresponding to the pass service based on the path of the monitoring script in the monitoring item in the monitoring configuration file to obtain the monitoring data includes:
s301, acquiring a monitoring configuration file according to the service type through a monitoring adapter;
s302, acquiring an absolute path of a monitoring script in a monitoring item in a monitoring configuration file through a Print Working Directory command;
and S303, executing the monitoring script under the absolute path of the monitoring script to obtain monitoring data, and storing the monitoring data into a database.
The working principle of the technical scheme is as follows: the method comprises the steps of firstly obtaining a monitoring configuration file of a corresponding type according to a service type through a monitoring adapter, secondly obtaining an absolute path of a monitoring script in a monitoring item in the monitoring configuration file through a Print Working Directory command, and finally executing the monitoring script under the absolute path of the monitoring script to obtain monitoring data and storing the monitoring data into a database.
The beneficial effects of the above technical scheme are that: the monitoring data are obtained, the monitoring configuration files of corresponding types are obtained through the monitoring adapter according to the service types, then the absolute paths of the monitoring scripts in the monitoring items in the monitoring configuration files are obtained through the Print Working Directory command, finally the monitoring scripts are executed under the absolute paths of the monitoring scripts, the monitoring data are obtained, the obtained monitoring data are more accurate, the monitoring data are prevented from being not corresponding due to different service types, the integrity of the data is guaranteed, the absolute paths of the monitoring scripts in the monitoring items in the monitoring configuration files are obtained through the Print Working Directory command, and therefore the situation that the monitoring scripts cannot run due to path errors is avoided, and the monitoring data cannot be generated.
In an embodiment, the converting the monitoring data into presentation data and presenting the presentation data according to an instruction of a user by using a configuration item in the monitoring configuration file includes:
s401, combining the acquired monitoring data with the description information of the configuration file through a monitoring adapter to convert the monitoring data into final display data, and storing the display data into a database;
s402, when the user wants to check data of a certain service, the cloud platform displays the display data to the user by inputting an instruction.
The working principle of the technical scheme is as follows: firstly, combining acquired monitoring data with description information of a configuration file through a monitoring adapter to convert the monitoring data into final display data, storing the display data into a database, displaying the display data to a user through a cloud platform by inputting an instruction when the user wants to check data of a certain service, and inquiring data through conditions specified by a database inquiry instruction select.
The beneficial effects of the above technical scheme are that: the data are enabled to have a visual effect, the specified data are displayed by inputting a query instruction through a user, the user is prevented from finding a large amount of data, the computer is enabled to complete the screening link, the data required by the user are screened through the computer, the visual display is carried out after the screening is completed, the displayed data comprise (line graphs, bar graphs and the like), the value of data operation is guaranteed to be exerted to the maximum, and the user can find the data better and more conveniently.
A computer-readable storage medium: the module integrated with the terminal device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the method according to the above embodiments may also be implemented by a computer program, which may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the monitoring method for services in a multi-architecture cloud platform.
The invention provides a monitoring system for services in a multi-architecture platform, which comprises:
the cloud platform service operation module is used for operating various pass services externally provided by the cloud platform on one or more virtual machines and configuring different monitoring configuration files according to different pass service types;
the script construction module is used for compiling related monitoring scripts according to the monitoring items in the different monitoring configuration files and acquiring the monitoring scripts;
the execution acquisition module is used for executing the monitoring script on the virtual machine corresponding to the pass service based on the path of the monitoring script in the monitoring item in the monitoring configuration file to acquire monitoring data;
and the user display module is used for converting the monitoring data into display data by using the configuration items in the monitoring configuration file and displaying the display data according to the instruction of the user.
The working principle of the technical scheme is as follows: the cloud platform service operation module operates various pass services provided by a cloud platform from outside on one or more virtual machines, configures different monitoring configuration files according to different pass service types, maintains the relationship between the final display form (such as a broken line graph, a bar graph, a coordinate axis name and the like) and the path of a script file in the virtual machines, takes a mysql database master-slave as an example, operates on two virtual machines to provide the service of the database from outside, the script construction module compiles related monitoring scripts according to monitoring items in the different monitoring configuration files and acquires the monitoring scripts, the monitoring items comprise one or more of CPU load, network card flow, residual memory capacity, residual disk capacity, computer account number, current login account number, current starting process number of the computer and installed software package number, and the execution acquisition module executes the monitoring scripts on the basis of the path monitored in the monitoring items in the monitoring configuration files and the virtual machines corresponding to the pass services And the user display module converts the monitoring data into display data by using the configuration items in the monitoring configuration file and displays the display data according to the instruction of the user.
The beneficial effects of the above technical scheme are that: various pass services externally provided by a cloud platform are operated on one or more virtual machines, different monitoring configuration files are configured according to different pass service types, the operation speed can be greatly improved, related monitoring scripts are compiled according to monitoring items in the different monitoring configuration files, the accuracy of data acquisition can be improved, different monitoring configuration files are obtained according to different service types, so that corresponding monitoring script information is obtained, the monitoring scripts are executed on the virtual machines corresponding to the pass services based on paths of the monitoring scripts in the monitoring configuration files, the monitoring data are obtained, the configuration items in the monitoring configuration files are utilized to convert the monitoring data into display data and display the display data according to instructions of users, different service monitoring functions are realized through self-defining service configuration files, monitoring adapters and the like, and the expandability of the system is enhanced through the method, the monitoring information of the service is increased, the code logic of the core is not required to be modified, only corresponding monitoring configuration files are required to be added on the original basis, and scripts of items needing monitoring are required to be written, so that the problem that in the traditional method, corresponding codes are required to be written to realize operation when each service is added is solved, the result that the whole program cannot run due to code writing errors is avoided, and the working time is saved by reducing the writing of complex codes.
In one embodiment, the cloud platform service execution module includes:
the acquisition module is used for acquiring pass service according to the server address provided by the cloud platform;
the monitoring module is used for monitoring the pass service in real time and operating the pass service on the virtual machine by calling an API (application program interface) of the pass service;
and the configuration module is used for configuring the pass service into different monitoring configuration files according to different types.
The working principle of the technical scheme is as follows: the method comprises the steps that an obtaining module obtains a pass service according to a server address provided by a cloud platform, a monitoring module monitors the pass service in real time, the pass service is operated on a virtual machine by calling an Application Programming Interface (API) Interface of the pass service, and a configuration module configures different monitoring configuration files of the pass service according to different types.
The beneficial effects of the above technical scheme are that: the method can monitor the pass service in real time, once the service type is changed, the API (Application Programming Interface) corresponding to different types of services can be adjusted and called at any time to run on the virtual machine, so that various pass services are provided to the outside, different monitoring configuration files are configured according to different pass service types, different service monitoring functions are realized by customizing the service configuration files, the expandability of the system is enhanced, one monitoring configuration file can be shared in the same pass service, the monitoring configuration file is provided, if monitoring information of one service is required to be added, the code logic of a core is not required to be modified, only the corresponding monitoring configuration file is required to be added on the original basis and a script required to be monitored is required to be written, and the operation that the corresponding code is required to be written for each service added in the traditional method is solved, therefore, the result that the whole program cannot run due to the wrong code writing is avoided, and the working time is saved by reducing the writing of complex codes.
In one embodiment, the execution acquisition module includes:
the file acquisition module is used for acquiring a monitoring configuration file according to the service type through the monitoring adapter;
the path acquisition module is used for acquiring an absolute path of the monitoring script through a Print Working Directory command;
and the script execution module is used for executing the monitoring script under the absolute path of the monitoring script and on the virtual machine corresponding to the pass service to obtain monitoring data, and storing the monitoring data into the database.
The working principle of the technical scheme is as follows: the file acquisition module acquires a monitoring configuration file of a corresponding type according to the service type through the monitoring adapter, the path acquisition module acquires an absolute path of a monitoring script in a monitoring item in the monitoring configuration file through a Print Working Directory command, and the script execution module executes the monitoring script under the absolute path of the monitoring script and on a virtual machine corresponding to the pass service to obtain monitoring data and stores the monitoring data into a database.
The beneficial effects of the above technical scheme are that: the method comprises the steps of obtaining monitoring data, obtaining a monitoring configuration file of a corresponding type according to a service type through a monitoring adapter, obtaining an absolute path of a monitoring script in a monitoring item in the monitoring configuration file through a Print Working Directory command, and finally executing the monitoring script on the virtual machine corresponding to a pass service under the absolute path of the monitoring script to obtain the monitoring data, so that the obtained monitoring data are more accurate, the monitoring data are prevented from being not corresponding due to different service types, the integrity of the data is ensured, the absolute path of the monitoring script in the monitoring item in the monitoring configuration file is obtained through the Print Working Directory command, and therefore the situation that the monitoring script cannot run due to path errors is avoided, and the monitoring data cannot be generated.
The user presentation module comprises:
the conversion module is used for combining the acquired monitoring data with the description information of the configuration file through the monitoring adapter to convert the monitoring data into final display data and storing the display data into a database;
and the display module is used for displaying the display data to the user by the cloud platform through inputting an instruction when the user wants to view the data of a certain service.
The working principle of the technical scheme is as follows: the conversion module combines the acquired monitoring data with the description information of the configuration file through the monitoring adapter to convert the monitoring data into final display data, the display data is stored in the database, and when a user wants to check data of a certain service, the display module displays the display data to the user through inputting an instruction.
The beneficial effects of the above technical scheme are that: the data are enabled to have a visual effect, the specified data are displayed by inputting a query instruction through a user, the user is prevented from finding a large amount of data, the computer is enabled to complete the screening link, the data required by the user are screened through the computer, the visual display is carried out after the screening is completed, the displayed data comprise (line graphs, bar graphs and the like), the value of data operation is guaranteed to be exerted to the maximum, and the user can find the data better and more conveniently.
While embodiments of the invention have been disclosed above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.

Claims (10)

1. A monitoring method for services in a multi-architecture cloud platform is characterized by comprising the following steps: the method comprises the following steps:
running various pass services externally provided by a cloud platform on one or more virtual machines, and configuring different monitoring configuration files according to different pass service types;
compiling related monitoring scripts according to monitoring items in the different monitoring configuration files and acquiring the monitoring scripts;
executing a monitoring script on a virtual machine corresponding to the pass service based on a path of the monitoring script in the monitoring item in the monitoring configuration file to obtain monitoring data;
and converting the monitoring data into display data by using the configuration items in the monitoring configuration file, and displaying according to the instruction of the user.
2. The method for monitoring the services in the multi-architecture cloud platform according to claim 1, wherein: the method for operating various pass services externally provided by the cloud platform on one or more virtual machines and configuring different monitoring configuration files according to different pass service types comprises the following steps:
acquiring pass service according to a server address provided by a cloud platform;
monitoring the pass service in real time, and operating the pass service on a virtual machine by calling an API (application program interface) of the pass service;
and configuring different monitoring configuration files for the pass service according to different types.
3. The method for monitoring the services in the multi-architecture cloud platform according to claim 1, wherein: the monitoring items comprise one or more types of CPU load, network card flow, memory residual capacity, disk residual capacity, computer account number, current login account number, current starting process number of the computer and installed software package number of the computer.
4. The method for monitoring the services in the multi-architecture cloud platform according to claim 1, wherein: the method for executing the monitoring script on the virtual machine corresponding to the pass service based on the path of the monitoring script in the monitoring item in the monitoring configuration file to acquire the monitoring data comprises the following steps:
acquiring a monitoring configuration file according to the service type through a monitoring adapter;
acquiring an absolute path of a monitoring script in a monitoring item in a monitoring configuration file through a Print Working Directory command;
and executing the monitoring script under the absolute path of the monitoring script to obtain monitoring data, and storing the monitoring data into a database.
5. The method for monitoring the services in the multi-architecture cloud platform according to claim 1, wherein: the method for converting the monitoring data into the display data and displaying the display data according to the instruction of the user by using the configuration items in the monitoring configuration file comprises the following steps:
combining the acquired monitoring data with the description information of the configuration file through a monitoring adapter to convert the monitoring data into final display data, and storing the display data into a database;
when a user wants to view data of a certain service, the cloud platform displays the display data to the user by inputting an instruction.
6. The method for monitoring the services in the multi-architecture cloud platform according to claim 1, wherein: compiling related monitoring scripts according to the monitoring items in the different monitoring configuration files and obtaining the monitoring scripts, wherein the monitoring scripts comprise:
the CPU monitoring script is used for monitoring the CPU, and counting the number of service processes when the utilization rate of the CPU exceeds 70%;
the method comprises the steps of monitoring a script of a memory, checking the utilization rate of the memory, and recording the first 10 processes occupying the highest memory when the utilization rate of the memory exceeds 70%;
and the process monitoring script is used for checking whether the Zombie process exists in the system or not, if so, automatically killing the process and recording a log.
7. The method for monitoring services in the multi-architecture cloud platform according to claim 5, wherein: when the user wants to check data of a certain service, the cloud platform displays the display data to the user by inputting a database query command select and specifying conditions to perform data query.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor performs the steps of a method for monitoring services in a multi-architecture cloud platform as claimed in any one of claims 1 to 7.
9. A system for monitoring services in a multi-architecture cloud platform, the system comprising:
the cloud platform service operation module is used for operating various pass services externally provided by the cloud platform on one or more virtual machines and configuring different monitoring configuration files according to different pass service types;
the script construction module is used for compiling related monitoring scripts according to the monitoring items in the different monitoring configuration files and acquiring the monitoring scripts;
the execution acquisition module is used for executing the monitoring script on the virtual machine corresponding to the pass service based on the path of the monitoring script in the monitoring item in the monitoring configuration file to acquire monitoring data;
and the user display module is used for converting the monitoring data into display data by using the configuration items in the monitoring configuration file and displaying the display data according to the instruction of the user.
10. The system for monitoring services in a multi-architecture cloud platform according to claim 9, wherein: the cloud platform service operation module comprises:
the acquisition module is used for acquiring pass service according to the server address provided by the cloud platform;
the monitoring module is used for monitoring the pass service in real time and operating the pass service on the virtual machine by calling an API (application program interface) of the pass service;
and the configuration module is used for configuring the pass service into different monitoring configuration files according to different types.
CN202011052571.1A 2020-09-29 2020-09-29 Method and system for monitoring services in multi-architecture cloud platform Active CN112187933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011052571.1A CN112187933B (en) 2020-09-29 2020-09-29 Method and system for monitoring services in multi-architecture cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011052571.1A CN112187933B (en) 2020-09-29 2020-09-29 Method and system for monitoring services in multi-architecture cloud platform

Publications (2)

Publication Number Publication Date
CN112187933A true CN112187933A (en) 2021-01-05
CN112187933B CN112187933B (en) 2022-12-20

Family

ID=73946989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011052571.1A Active CN112187933B (en) 2020-09-29 2020-09-29 Method and system for monitoring services in multi-architecture cloud platform

Country Status (1)

Country Link
CN (1) CN112187933B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699009A (en) * 2021-01-12 2021-04-23 树根互联技术有限公司 Data detection method and device, server and storage medium
CN112817937A (en) * 2021-01-27 2021-05-18 上海臣星软件技术有限公司 Big data monitoring method and device, electronic equipment and computer storage medium
CN112988401A (en) * 2021-05-07 2021-06-18 北京轻松筹信息技术有限公司 Method and device for collecting information in process and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487903A (en) * 2016-10-21 2017-03-08 山东大学 A kind of node selection method and system based on virtualized SaaS cloud platform
CN106850332A (en) * 2016-12-12 2017-06-13 中电科华云信息技术有限公司 Application dynamic monitoring and controlling method and system based on cloud
CN107168880A (en) * 2017-05-31 2017-09-15 中标软件有限公司 Virtual machine method of testing and instrument

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487903A (en) * 2016-10-21 2017-03-08 山东大学 A kind of node selection method and system based on virtualized SaaS cloud platform
CN106850332A (en) * 2016-12-12 2017-06-13 中电科华云信息技术有限公司 Application dynamic monitoring and controlling method and system based on cloud
CN107168880A (en) * 2017-05-31 2017-09-15 中标软件有限公司 Virtual machine method of testing and instrument

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699009A (en) * 2021-01-12 2021-04-23 树根互联技术有限公司 Data detection method and device, server and storage medium
CN112817937A (en) * 2021-01-27 2021-05-18 上海臣星软件技术有限公司 Big data monitoring method and device, electronic equipment and computer storage medium
CN112988401A (en) * 2021-05-07 2021-06-18 北京轻松筹信息技术有限公司 Method and device for collecting information in process and electronic equipment

Also Published As

Publication number Publication date
CN112187933B (en) 2022-12-20

Similar Documents

Publication Publication Date Title
CN112187933B (en) Method and system for monitoring services in multi-architecture cloud platform
JP5684946B2 (en) Method and system for supporting analysis of root cause of event
US8832658B2 (en) Verification framework for business objects
WO2019006654A1 (en) Financial self-service equipment maintenance dispatch generation method, hand-held terminal and electronic device
US20170012843A1 (en) Troubleshooting Transactions in a Network Environment
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
US20120005520A1 (en) Simplifying automated software maintenance of data centers
US20160224400A1 (en) Automatic root cause analysis for distributed business transaction
US9652353B2 (en) Monitoring business transaction failures involving database procedure calls
JP2019500680A (en) Data processing method and apparatus
CN104937548A (en) Dynamic graph performance monitoring
CN107562459B (en) Management system, interface generating/displaying/operating method, medium, and terminal
CN104919427A (en) Dynamic component performance monitoring
WO2021111235A1 (en) Microservices change management and analytics
US7137043B1 (en) Method and system for error handling
EP3734460A1 (en) Probabilistic software testing via dynamic graphs
US11449407B2 (en) System and method for monitoring computing platform parameters and dynamically generating and deploying monitoring packages
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
US20070150866A1 (en) Displaying parameters associated with call statements
CN112187509A (en) Multi-architecture cloud platform execution log management method, system, terminal and storage medium
US11182272B2 (en) Application state monitoring
CN113127099B (en) Server configuration method, device, equipment and storage medium
US10534694B2 (en) Problem diagnosis technique of memory corruption based on regular expression generated during application compiling
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
CN115729724A (en) Fault injection method, fault test system, electronic device and readable storage medium

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