CN117827590A - Method, device and storage medium for monitoring information of different components on multiple servers - Google Patents

Method, device and storage medium for monitoring information of different components on multiple servers Download PDF

Info

Publication number
CN117827590A
CN117827590A CN202311869864.2A CN202311869864A CN117827590A CN 117827590 A CN117827590 A CN 117827590A CN 202311869864 A CN202311869864 A CN 202311869864A CN 117827590 A CN117827590 A CN 117827590A
Authority
CN
China
Prior art keywords
configuration file
target
monitoring
plug
loading
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
CN202311869864.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.)
Shenzhen Kangbida Control Technology Co ltd
Original Assignee
Shenzhen Kangbida Control 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 Shenzhen Kangbida Control Technology Co ltd filed Critical Shenzhen Kangbida Control Technology Co ltd
Priority to CN202311869864.2A priority Critical patent/CN117827590A/en
Publication of CN117827590A publication Critical patent/CN117827590A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a device and a storage medium for monitoring information of different components on a plurality of servers, wherein the method comprises the following steps: acquiring a configuration file set, wherein the configuration file set contains configuration files of a plurality of plugins, and each plugin corresponds to a monitored component or micro-service; loading state information of each target configuration file according to the configuration file set at intervals of a first preset time interval, wherein the target configuration file is any one configuration file; judging whether a target plug-in corresponding to the target configuration file operates or not according to the state information of the target configuration file at intervals of a second preset time interval, and writing the operating state of the target plug-in into a cache database; and when receiving an instruction for loading the target plug-in, displaying the running state of the target plug-in the cache database in the monitoring window. The invention can directly monitor the running state of the component or the micro-service.

Description

Method, device and storage medium for monitoring information of different components on multiple servers
Technical Field
The present invention relates to the field of computer monitoring technologies, and in particular, to a method and apparatus for monitoring information of different components on a multi-server, and a storage medium.
Background
In a real application scenario, one piece of software, even if huge, cannot meet and cover all the needs of the user. It is thus desirable to provide the software with extensible functionality so that the user can load the functional modules he or she needs into the software.
In some scenarios, it is often desirable to introduce multiple third party components or micro-services that can be used as data storage, messaging, etc. services. Some relational databases mysql, kingbase, oracle, etc. may be used as configuration stores, message middleware kafka, rabbitMQ, etc. may be used for processing high concurrency data, redis, etc. may be used as data caches, as is often used in platforms.
However, when these components or micro-services are online in the platform, the operation staff cannot timely grasp the working states of these components or micro-services, such as the running states of the components, the database synchronization states, the lock library states, the node states of the component clusters, and so on. How to determine the working states of these components or micro services timely and accurately becomes a technical problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a storage medium for monitoring information of different components on a multi-server, which are used for solving the problem that the working states of a plurality of components or micro-services in a system cannot be timely and accurately determined.
In a first aspect, an embodiment of the present invention provides a method for monitoring information of different components on a multi-server, including:
acquiring a configuration file set, wherein the configuration file set contains configuration files of a plurality of plugins, and each plugin corresponds to a monitored component or micro-service;
loading state information of each target configuration file according to the configuration file set at intervals of a first preset time interval, wherein the target configuration file is any one configuration file;
judging whether a target plug-in corresponding to the target configuration file operates or not according to the state information of the target configuration file at intervals of a second preset time interval, and writing the operating state of the target plug-in into a cache database;
and when receiving an instruction for loading the target plug-in, displaying the running state of the target plug-in the cache database in the monitoring window.
In one possible implementation, loading the state information of each target profile according to the profile set at intervals of a first preset time interval includes:
traversing from a first configuration file in the configuration file set at intervals of a first preset time interval;
and when traversing to the target configuration file, displaying the state information of the target configuration file according to the monitoring mode of the target configuration file.
In one possible implementation, the monitoring mode includes port monitoring or script monitoring.
In one possible implementation, if the cluster state, lock library state, or MySQL synchronization state of the component or microservice is monitored, then script monitoring is selected.
In one possible implementation manner, when receiving an instruction for loading the target plugin, displaying the running state of the target plugin in the cache database in the monitoring window includes:
when an instruction for loading the target plug-in is received, displaying a configuration interface in a monitoring window, and selecting a configuration file of the target plug-in corresponding to the instruction from the configuration interface;
and after the configuration file of the target plug-in corresponding to the instruction is selected, displaying the running state of the target plug-in the cache database in the monitoring window.
In one possible implementation, obtaining the configuration file set further includes:
updating all configuration files in the configuration file set into a hot loading protocol;
and updating the new configuration file into the hot-loading protocol when the new configuration file appears in the system.
In one possible implementation, the configuration file includes one or more of a status name, a monitoring manner, a monitoring port, a status name, an IP address of a monitoring server, or a monitoring script for each component or micro-service;
the configuration file is imported into the platform in the form of a file based on the jar of the hot deployment.
In a second aspect, an embodiment of the present invention provides a device for monitoring information of different components on a multi-server, including:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a configuration file set, the configuration file set contains configuration files of a plurality of plugins, and each plugin corresponds to a monitored component or micro-service;
the loading module is used for loading the state information of each target configuration file according to the configuration file set at intervals of a first preset time interval, wherein the target configuration file is any configuration file;
the judging module is used for judging whether the target plug-in corresponding to the target configuration file operates or not according to the state information of the target configuration file at intervals of a second preset time interval, and writing the operating state of the target plug-in into the cache database;
and the display module is used for displaying the running state of the target plug-in the cache database in the monitoring window when receiving the instruction for loading the target plug-in.
In one possible implementation, the loading module is configured to traverse from a first configuration file in the configuration file set at intervals of a first preset time interval;
and when traversing to the target configuration file, displaying the state information of the target configuration file according to the monitoring mode of the target configuration file.
In one possible implementation, the monitoring mode includes port monitoring or script monitoring.
In one possible implementation, if the cluster state, lock library state, or MySQL synchronization state of the component or microservice is monitored, then script monitoring is selected.
In one possible implementation manner, the display module is used for displaying a configuration interface in the monitoring window when receiving an instruction for loading the target plugin, and selecting a configuration file of the target plugin corresponding to the instruction in the configuration interface;
and after the configuration file of the target plug-in corresponding to the instruction is selected, displaying the running state of the target plug-in the cache database in the monitoring window.
In one possible implementation, the obtaining module is configured to update all configuration files in the configuration file set into the hot-loading protocol;
and updating the new configuration file into the hot-loading protocol when the new configuration file appears in the system.
In one possible implementation, the configuration file includes one or more of a status name, a monitoring manner, a monitoring port, a status name, an IP address of a monitoring server, or a monitoring script for each component or micro-service;
the configuration file is imported into the platform in the form of a file based on the jar of the hot deployment.
In a third aspect, an embodiment of the present invention provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect or any one of the possible implementations of the first aspect, when the computer program is executed by the processor.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as described above in the first aspect or any one of the possible implementations of the first aspect.
The embodiment of the invention provides a method, a device and a storage medium for monitoring information of different components on a multi-server. And then judging whether the target plug-in corresponding to the target configuration file operates according to the state information of the target configuration file at intervals of a second preset time interval, and writing the operating state of the target plug-in into a cache database. And finally, when receiving an instruction for loading the target plug-in, displaying the running state of the target plug-in the cache database in a monitoring window. The method for monitoring the information of different components on the multi-server can monitor the information of a plurality of components at the same time, does not need to be deployed, installed and configured, can meet the operation and maintenance requirements, can be integrated into platform software in a light-weight manner, and can monitor the state of a certain component directly through a port or monitor the special attribute of a certain component through a script.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an implementation method for monitoring information of different components on a multi-server according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interface for importing a configuration file according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a configuration interface through a monitoring port according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a configuration interface through a monitoring script provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram showing an operation state of a target plug-in a read cache database displayed in a monitoring window according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a monitoring device for different component information on a multi-server according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following description will be made by way of specific embodiments with reference to the accompanying drawings.
As described in the background, a user may load his or her own desired components into software in the form of plug-ins. However, when these components are on-line in the system, such as the running state of the components, the synchronization state of the database, the state of the lock library, the node state of the component cluster, etc., the components are unknown information to the user or the operation and maintenance personnel, and there is no uniformly displayed outlet and monitored inlet in the system. When a user or an operation and maintenance person needs to know whether the component works normally, the user or the operation and maintenance person does not know the component. The operation state of these components is very important in software, and needs to be known by operation staff or customer service staff.
Although some IT operation and maintenance software, such as zabbix, can be used as a component operation and maintenance function, the software often needs to be deployed and installed, and needs to spend IT service fees or the cost of purchasing the software, and the use of the IT operation and maintenance software is complex and difficult to integrate with a self-research platform.
Therefore, there is a need for a simple operation and maintenance monitoring method for multi-component information, so that a customer or an operation and maintenance can grasp the operation states of the components in time.
In order to solve the problems in the prior art, the embodiment of the invention provides a method, a device and a storage medium for monitoring information of different components on a plurality of servers. The following first describes a method for monitoring information of different components on a multi-server provided by the embodiment of the present invention.
Referring to fig. 1, a flowchart of an implementation of a method for monitoring information of different components on a multi-server according to an embodiment of the present invention is shown, and details are as follows:
step S110, acquiring a configuration file set.
The configuration file set contains configuration files of a plurality of plugins, each plugin corresponding to one monitored component or micro-service.
When multiple components or micro-services need to be loaded in software, the operating states of all the components or micro-services need to be monitored simultaneously,
in this embodiment, after the configuration file set is obtained, all configuration files in the configuration file set need to be updated to the hot loading protocol, and at this time, all configuration files in the configuration file set are loaded in the software.
In addition, if it is monitored that a new configuration file is added to the system, the new configuration file needs to be updated into the hot-load protocol.
In some embodiments, the Java hot loading technology can be used based on the SpringCloud framework as a development platform, and all the configuration file sets are used as a hot plug protocol to monitor each component or micro service.
The configuration file is loaded and operated by importing jar based on hot deployment into the SpringCloud platform in a file form. The configuration file can be flexibly configured.
The interface for importing the configuration files is shown in fig. 2, and the configuration files of each plug-in are named and defined to form a protocol version number, and then the protocol files are selected and uploaded to the SpringCloud platform.
The jar of the imported configuration file is a plug-in for collecting the micro service and the component state, and after being imported, the jar can be hot loaded into the code of the service to collect data.
In some embodiments, the configuration file includes one or more of a status name, a monitoring manner, a monitoring port, a status name, an IP address of a monitoring server, or a monitoring script for each component or micro-service.
The monitoring mode comprises port monitoring or script monitoring, and for some components or micro-services, the state of the components or micro-services can be monitored by monitoring the IP of the port and the monitoring server. For some components or micro-services, it is necessary to monitor the status of the component or micro-service by selecting a script. If the cluster state, the lock library state or the synchronous state of MySQL of the component or the micro-service is monitored, script monitoring is selected.
Fig. 3 is a schematic diagram of a configuration interface, such as a configuration file of the kafka running state, of the IP through the monitoring port and the monitoring server.
FIG. 4 is a schematic diagram of a configuration interface through a configuration interface of a monitoring script and IP of a monitoring server, such as a configuration file of the A machine database lock library state.
Step S120, loading the state information of each target configuration file according to the configuration file set at intervals of a first preset time interval.
The target configuration file is any configuration file.
At intervals of a first preset time interval, the timing task loads state information of all configuration files in the configuration file set into the cache.
In this embodiment, first, the traversal starts from the first profile in the set of profiles at first preset intervals.
And then, when traversing to the target configuration file, displaying the state information of the target configuration file according to the monitoring mode of the target configuration file.
Optionally, the monitoring mode includes port monitoring or script monitoring.
Step S130, judging whether the target plug-in corresponding to the target configuration file operates according to the state information of the target configuration file at intervals of a second preset time interval, and writing the operating state of the target plug-in into the cache database.
And determining the running state of the plug-in corresponding to the target configuration file according to the state information of the target configuration file at intervals of a second preset time interval. And if the running state of each plug-in unit is 5 seconds, determining the running state of the plug-in unit corresponding to the target configuration file according to the state information of the target configuration file, and writing the running state of each plug-in unit into the cache database.
And step 140, when receiving an instruction for loading the target plug-in, displaying the running state of the target plug-in the cache database in a monitoring window.
When a developer or an operation and maintenance person wants to know the running state of a certain plug-in, after the loading and starting of the protocol jar of the target plug-in the hot plug-in protocol, the running state of the target plug-in the cache database can be read and displayed in the monitoring window, as shown in fig. 5.
When an instruction for loading the target plug-in is received, a configuration interface is displayed in the monitoring window, and a configuration file of the target plug-in corresponding to the instruction is selected from the configuration interface. And after the configuration file of the target plug-in corresponding to the instruction is selected, displaying the running state of the target plug-in the cache database in the monitoring window.
The development or operation staff can timely determine the operation state of the component to be understood according to the information displayed in the monitoring window. The system solves the complexity of development and operation staff in the system maintenance process, and the problem of difficult investigation of installing components on the system in the operation and maintenance process is not needed. Only need in unified configuration can, need not encode again, save development work load, also can flexible configuration subassembly. The configuration files of various components or micro services possibly needing to be maintained in the system can be imported into the system as a hot-plug protocol, so that different components or micro services can be monitored at any time according to the needs, recoding is not needed, and a large amount of time can be saved.
The embodiment of the invention provides a method for monitoring information of different components on a multi-server, which comprises the steps of firstly, acquiring a configuration file set, and then loading state information of each target configuration file according to the configuration file set at intervals of a first preset time interval. And then judging whether the target plug-in corresponding to the target configuration file operates according to the state information of the target configuration file at intervals of a second preset time interval, and writing the operating state of the target plug-in into a cache database. And finally, when receiving an instruction for loading the target plug-in, displaying the running state of the target plug-in the cache database in a monitoring window. The method for monitoring the information of different components on the multi-server can monitor the information of a plurality of components at the same time, does not need to be deployed, installed and configured, can meet the operation and maintenance requirements, can be integrated into platform software in a light-weight manner, and can monitor the state of a certain component directly through a port or monitor the special attribute of a certain component through a script.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Based on the method for monitoring the different component information on the multi-server provided by the embodiment, correspondingly, the invention also provides a specific implementation mode of the device for monitoring the different component information on the multi-server, which is applied to the method for monitoring the different component information on the multi-server. Please refer to the following examples.
As shown in fig. 6, there is provided a monitoring apparatus 600 for information of different components on a plurality of servers, the apparatus comprising:
an obtaining module 610, configured to obtain a configuration file set, where the configuration file set contains configuration files of a plurality of plugins, and each plugin corresponds to a monitored component or micro service;
the loading module 620 is configured to load state information of each target configuration file according to the configuration file set at intervals of a first preset time interval, where the target configuration file is any one configuration file;
the judging module 630 is configured to judge whether the target plugin corresponding to the target configuration file operates according to the state information of the target configuration file at intervals of a second preset time interval, and write the operating state of the target plugin into the cache database;
and the display module 640 is used for displaying the running state of the target plug-in the cache database in the monitoring window when receiving the instruction for loading the target plug-in.
In one possible implementation, the loading module 620 is configured to traverse from a first configuration file in the configuration file set at intervals of a first preset time interval;
and when traversing to the target configuration file, displaying the state information of the target configuration file according to the monitoring mode of the target configuration file.
In one possible implementation, the monitoring mode includes port monitoring or script monitoring.
In one possible implementation, if the cluster state, lock library state, or MySQL synchronization state of the component or microservice is monitored, then script monitoring is selected.
In a possible implementation manner, the display module 640 is configured to display a configuration interface in the monitoring window when receiving an instruction for loading the target plugin, and select a configuration file of the target plugin corresponding to the instruction in the configuration interface;
and after the configuration file of the target plug-in corresponding to the instruction is selected, displaying the running state of the target plug-in the cache database in the monitoring window.
In one possible implementation, the obtaining module 610 is configured to update all configuration files in the configuration file set into the hot-loading protocol;
and updating the new configuration file into the hot-loading protocol when the new configuration file appears in the system.
In one possible implementation, the configuration file includes one or more of a status name, a monitoring manner, a monitoring port, a status name, an IP address of a monitoring server, or a monitoring script for each component or micro-service;
the configuration file is imported into the platform in the form of a file based on the jar of the hot deployment.
Fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 7, the electronic device 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. The processor 70, when executing the computer program 72, implements the steps of the above-described embodiments of the method for monitoring information of different components on each multi-server, such as steps 110 to 140 shown in fig. 3. Alternatively, the processor 70, when executing the computer program 72, performs the functions of the modules of the apparatus embodiments described above, such as the functions of the modules 610 through 640 shown in fig. 6.
By way of example, the computer program 72 may be partitioned into one or more modules that are stored in the memory 71 and executed by the processor 70 to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing the specified functions for describing the execution of the computer program 72 in the electronic device 7. For example, the computer program 72 may be partitioned into modules 610 through 640 shown in FIG. 6.
The electronic device 7 may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the electronic device 7 and is not meant to be limiting as the electronic device 7 may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device may further include an input-output device, a network access device, a bus, etc.
The processor 70 may be a central processing unit (Central Processing Unit, CPU), or may be another general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the electronic device 7, such as a hard disk or a memory of the electronic device 7. The memory 71 may be an external storage device of the electronic device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the electronic device 7. The memory 71 is used for storing the computer program and other programs and data required by the electronic device. The memory 71 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by instructing related hardware by a computer program, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the method embodiment of monitoring different component information on each multi-server when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. A method for monitoring information of different components on a multi-server, comprising:
acquiring a configuration file set, wherein the configuration file set contains configuration files of a plurality of plugins, and each plugin corresponds to a monitored component or micro-service;
loading state information of each target configuration file according to the configuration file set at intervals of a first preset time interval, wherein the target configuration file is any one configuration file;
judging whether a target plug-in corresponding to the target configuration file operates or not according to the state information of the target configuration file at intervals of a second preset time interval, and writing the operating state of the target plug-in into a cache database;
and when receiving an instruction for loading the target plug-in, displaying the running state of the target plug-in the cache database in a monitoring window.
2. The method of monitoring as claimed in claim 1, wherein loading the status information of each target profile according to the profile set at intervals of a first preset time interval comprises:
traversing from a first configuration file in the configuration file set at intervals of a first preset time interval;
and when traversing to the target configuration file, displaying the state information of the target configuration file according to the monitoring mode of the target configuration file.
3. The monitoring method of claim 2, wherein the monitoring mode comprises port monitoring or script monitoring.
4. The method of claim 3, wherein script monitoring is selected if the monitoring component or microservice cluster state, lock library state, or MySQL synchronization state.
5. The monitoring method as set forth in claim 1, wherein when receiving the instruction for loading the target plugin, displaying the running state of the target plugin in the cache database in a monitoring window includes:
when an instruction for loading the target plug-in is received, displaying a configuration interface in the monitoring window, and selecting a configuration file of the target plug-in corresponding to the instruction from the configuration interface;
and after the configuration file of the target plug-in corresponding to the instruction is selected, displaying the running state of the target plug-in the cache database in a monitoring window.
6. The monitoring method according to any one of claims 1-5, wherein the acquiring a set of profiles further comprises:
updating all configuration files in the configuration file set into a hot loading protocol;
and updating the new configuration file into the hot loading protocol when the new configuration file appears in the system.
7. The monitoring method of any of claims 1-5, wherein the configuration file includes one or more of a status name, a monitoring mode, a monitoring port, a status name, an IP address of a monitoring server, or a monitoring script for each component or micro-service;
the configuration file is imported into the platform in the form of a file based on the jar of the hot deployment.
8. A device for monitoring information of different components on a plurality of servers, comprising:
the system comprises an acquisition module, a monitoring module and a storage module, wherein the acquisition module is used for acquiring a configuration file set, wherein the configuration file set contains configuration files of a plurality of plug-ins, and each plug-in corresponds to a monitored component or micro-service;
the loading module is used for loading the state information of each target configuration file according to the configuration file set at intervals of a first preset time interval, wherein the target configuration file is any one configuration file;
the judging module is used for judging whether the target plug-in corresponding to the target configuration file operates or not according to the state information of the target configuration file at intervals of a second preset time interval, and writing the operating state of the target plug-in into a cache database;
and the display module is used for displaying the running state of the target plug-in the cache database in a monitoring window when receiving an instruction for loading the target plug-in.
9. An electronic device comprising a memory for storing a computer program and a processor for invoking and running the computer program stored in the memory to perform the method of any of claims 1 to 7.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
CN202311869864.2A 2023-12-29 2023-12-29 Method, device and storage medium for monitoring information of different components on multiple servers Pending CN117827590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311869864.2A CN117827590A (en) 2023-12-29 2023-12-29 Method, device and storage medium for monitoring information of different components on multiple servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311869864.2A CN117827590A (en) 2023-12-29 2023-12-29 Method, device and storage medium for monitoring information of different components on multiple servers

Publications (1)

Publication Number Publication Date
CN117827590A true CN117827590A (en) 2024-04-05

Family

ID=90520507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311869864.2A Pending CN117827590A (en) 2023-12-29 2023-12-29 Method, device and storage medium for monitoring information of different components on multiple servers

Country Status (1)

Country Link
CN (1) CN117827590A (en)

Similar Documents

Publication Publication Date Title
CN110515795A (en) A kind of monitoring method of big data component, device, electronic equipment
CN112650688A (en) Automated regression testing method, associated device and computer program product
CN114490375A (en) Method, device and equipment for testing performance of application program and storage medium
CN112948233A (en) Interface testing method, device, terminal equipment and medium
CN108667872B (en) Archiving method and device for scheduling server
US10868880B2 (en) Control system with persistent and transient data stores for registration, production and status data for networked devices
US11347533B2 (en) Enhanced virtual machine image management system
CN109558300B (en) Whole cabinet alarm processing method and device, terminal and storage medium
CN107894942B (en) Method and device for monitoring data table access amount
CN116483707A (en) Test method, test device, test apparatus, test program, and test program
CN117827590A (en) Method, device and storage medium for monitoring information of different components on multiple servers
CN113434397B (en) Task system testing method and device, electronic equipment and storage medium
CN109766235A (en) Configuration file detection method, system, equipment and medium based on software supervision
CN112346994B (en) Test information association method, device, computer equipment and storage medium
CN115599401A (en) Publishing method, device, equipment and medium of user-defined model
CN114816470A (en) Metadata database management method and device, electronic equipment and medium
CN110493326B (en) Zookeeper-based cluster configuration file management system and method
CN114157662A (en) Cloud platform parameter adaptation method and device, terminal equipment and storage medium
CN111581256A (en) Interaction method and system for application program of intelligent measurement terminal
CN114968696A (en) Index monitoring method, electronic equipment and chip system
CN112667501A (en) Link testing method and device based on automatic baffle and related equipment
US10063658B1 (en) Dedicated network platform for data producing devices that emulates distinct data and control channels via bifurcation of single channel environments
CN114692382B (en) Management method and device for nuclear power simulation model development data and computer equipment
CN102402437B (en) Data processing equipment and download control method thereof
CN112948480B (en) Data extraction method, device, electronic equipment and 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