CN109446024A - Using monitoring method and device - Google Patents
Using monitoring method and device Download PDFInfo
- Publication number
- CN109446024A CN109446024A CN201811201239.XA CN201811201239A CN109446024A CN 109446024 A CN109446024 A CN 109446024A CN 201811201239 A CN201811201239 A CN 201811201239A CN 109446024 A CN109446024 A CN 109446024A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- application
- template
- monitoring template
- alarm
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3072—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
Abstract
The present invention proposes a kind of application monitoring method and device, and wherein method includes: to obtain application to be monitored;According to application, is selected from preset monitoring template library and apply corresponding monitoring template;It obtains and applies corresponding log, the related data of monitoring template is obtained from log;By related data input monitoring template, so that monitoring template carries out calculation processing to related data, and the result of calculation processing is compared with preset alarm index, it is determined whether alerted;If desired it is alerted, it then obtains warning information and carries out alarm operation, so as to according to the actual monitored demand of application from monitoring template library in select corresponding monitoring template, do not need it is duplicate write code manually, and improve code utilization rate and apply monitoring efficiency.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of application monitoring method and devices.
Background technique
Currently, it is directed to each application, it, can be using the prison such as nagios, zabbix when needing to be monitored the application
Control software is monitored application, alternatively, writing the monitoring programme for the application manually by monitoring personnel etc..However, above-mentioned
In first way, the monitoring mode of the monitoring softwares such as nagios, zabbix is limited and simple, it is difficult to effectively be suitable for logic
The complicated, application of business repeatedly, and be difficult to extend.In the second way, monitoring cost is high, monitoring efficiency is poor, and is difficult to extend,
Cause the monitoring efficiency to application poor, it is difficult to meet actual monitored demand.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of using monitoring method, supervised in the prior art for solving
Control inefficient problem.
Second object of the present invention is to propose a kind of using monitoring device.
Third object of the present invention is to propose another using monitoring device.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
5th purpose of the invention is to propose a kind of computer program product.
In order to achieve the above object, first aspect present invention embodiment propose it is a kind of using monitoring method, comprising:
Obtain application to be monitored;
According to the application, monitoring template corresponding with the application is selected from preset monitoring template library;
The corresponding log of the application is obtained, the related data of the monitoring template is obtained from the log;
By the related data input monitoring template, so that the monitoring template carries out at calculating the related data
Reason, and the result of calculation processing is compared with preset alarm index, it is determined whether it is alerted;
If desired it is alerted, then obtain warning information and carries out alarm operation.
Further, described according to the application, prison corresponding with the application is selected from preset monitoring template library
Control template, comprising:
The monitor task of the application is obtained, includes: monitored object and alarm index in the monitor task;
The monitoring template of selection and the monitored object and the alarm targets match from preset monitoring template library.
It further, include: monitored object data in the related data;
The related data that the monitoring template is obtained from the log, comprising:
The log is inquired according to the monitored object, obtains monitored object data corresponding with the monitored object.
Further, in the warning information include following information in any one or it is multiple: the monitoring template
Related data, the result of calculation processing, alarm cause and solution.
Further, the method further include: if had not been obtained from preset monitoring template library to the application pair
The monitoring template answered then sends prompt information to monitoring personnel, to create corresponding monitoring template.
The application monitoring method of the embodiment of the present invention, by obtaining application to be monitored;According to application, from preset monitoring
It is selected in template library and applies corresponding monitoring template;It obtains and applies corresponding log, the phase of monitoring template is obtained from log
Close data;By related data input monitoring template, so that monitoring template carries out calculation processing to related data, and by calculation processing
Result be compared with preset alarm index, it is determined whether alerted;If desired it is alerted, then obtains alarm
Information simultaneously carries out alarm operation, so as to select corresponding monitoring from monitoring template library according to the actual monitored demand of application
Template, do not need it is duplicate write code manually, and improve code utilization rate and using monitoring efficiency.
In order to achieve the above object, second aspect of the present invention embodiment propose it is a kind of using monitoring device, comprising:
Module is obtained, for obtaining application to be monitored;
Selecting module, for selecting prison corresponding with the application from preset monitoring template library according to the application
Control template;
The acquisition module is also used to obtain the corresponding log of the application, the monitoring mould is obtained from the log
The related data of plate;
Processing module is used for by the related data input monitoring template, so that the monitoring template is to the dependency number
According to progress calculation processing, and the result of calculation processing is compared with preset alarm index, it is determined whether accused
It is alert;
Alarm module, for when being alerted, obtaining warning information and carrying out alarm operation.
Further, the selecting module is specifically used for,
The monitor task of the application is obtained, includes: monitored object and alarm index in the monitor task;
The monitoring template of selection and the monitored object and the alarm targets match from preset monitoring template library.
It further, include: monitored object data in the related data;
The acquisition module is specifically used for, and inquires the log according to the monitored object, obtains and the monitored object
Corresponding monitored object data.
Further, in the warning information include following information in any one or it is multiple: the monitoring template
Related data, the result of calculation processing, alarm cause and solution.
Further, the device further include: sending module, for had not been obtained from preset monitoring template library to
When monitoring template corresponding with the application, prompt information is sent to monitoring personnel, to create corresponding monitoring template.
The embodiment of the present invention applies monitoring device, by obtaining application to be monitored;According to application, from preset monitoring
It is selected in template library and applies corresponding monitoring template;It obtains and applies corresponding log, the phase of monitoring template is obtained from log
Close data;By related data input monitoring template, so that monitoring template carries out calculation processing to related data, and by calculation processing
Result be compared with preset alarm index, it is determined whether alerted;If desired it is alerted, then obtains alarm
Information simultaneously carries out alarm operation, so as to select corresponding monitoring from monitoring template library according to the actual monitored demand of application
Template, do not need it is duplicate write code manually, and improve code utilization rate and using monitoring efficiency.
In order to achieve the above object, third aspect present invention embodiment proposes another kind using monitoring device, comprising: storage
Device, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that the processor
It is realized when executing described program and applies monitoring method as described above.
To achieve the goals above, fourth aspect present invention embodiment proposes a kind of computer readable storage medium,
On be stored with computer program, when which is executed by processor realize as described above apply monitoring method.
To achieve the goals above, fifth aspect present invention embodiment proposes a kind of computer program product, when described
When instruction processing unit in computer program product executes, realizes and apply monitoring method as described above.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram using monitoring method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram using monitoring device provided in an embodiment of the present invention;
Fig. 3 is another structural schematic diagram for applying monitoring device provided in an embodiment of the present invention;
Fig. 4 is another structural schematic diagram for applying monitoring device provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the application monitoring method and device of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram using monitoring method provided in an embodiment of the present invention.As shown in Figure 1, the application
Monitoring method the following steps are included:
S101, application to be monitored is obtained.
Executing subject provided by the invention using monitoring method is using monitoring device, can be whole using monitoring device
The hardware devices such as end equipment, server, or the software to be installed on hardware device.Wherein, application to be monitored for example can be with
For wechat, browser, game etc..In the present embodiment, using the mark of the specific available application to be monitored of monitoring device,
Such as title of application to be monitored etc..
S102, according to application, selection and the corresponding monitoring template of application from preset monitoring template library.
In the present embodiment, monitoring template, which refers to, is monitored some object of application, judges whether to be more than that alarm refers to
Target program, that is to say, that the program that some object of application is calculated and compared, for example, within the scope of certain time
There is i.e. alarm more than certain critical data one within the scope of the template that certain value is alarm, certain time in certain critical data frequency of occurrences
Template etc..
It is more than to be illustrated for certain value is the template alarmed by certain critical data frequency of occurrences within the scope of certain time,
The input of the template can be certain critical data within the scope of certain time;Whether output can be to alarm;The template is for obtaining
Take certain critical data within the scope of certain time, and calculate the frequency of occurrences of certain critical data, by the frequency of occurrences and certain value into
Row compares, and determines whether to alarm according to comparison result.
In the present embodiment, it should be noted that the quantity of monitoring template corresponding with application can be one or more,
It is determined according to the monitor task of application, can be single with the corresponding monitoring template of application if monitor task is single;If
Monitor task is multiple, then can be multiple with the corresponding monitoring template of application.It is corresponding, step is executed using monitoring device
102 process is specifically as follows, and obtains the monitor task of application, includes: monitored object and alarm index in monitor task;From
The monitoring template of targets match is selected with monitored object and alerted in preset monitoring template library.
Wherein, alerting in index may include: alarm object or alarm object+alarm threshold.In alarm index only
In the case where including alarm object, if alarm object is the frequency of occurrences of certain critical data, with the matched monitoring of monitor task
Template can be, the template with the various frequencies of occurrences, for example, the frequency of occurrences be 50 percent template, the frequency of occurrences hundred
/ eight ten template, the template that the frequency of occurrences is 90 percent, these templates are all and the matched monitoring mould of monitor task
Plate.
In the case where including alarm object and alarm threshold in alerting index, if alarm object is certain critical data
The frequency of occurrences, alarm threshold are 50 percent, then can be that the frequency of occurrences is percentage with the matched monitoring template of monitor task
50 template.
In addition, on the basis of the above embodiments, if the method can also include: from preset monitoring template library
It has not been obtained and applies corresponding monitoring template, then prompt information is sent to monitoring personnel, to create corresponding monitoring template.Its
In, the creation process for monitoring template can be manual creation, or be created in conjunction with monitoring software.
Further, on the basis of the above embodiments, before step 102, the method can also include: creation prison
The process of template library is controlled, which is specifically as follows, and acquires a large amount of monitor task, creates for each monitor task corresponding
Monitor template;And/or acquisition existing monitoring programme corresponding with monitor task, monitoring programme is handled and is monitored
Template;Then the multiple monitoring templates obtained according to creation or processing generate monitoring template library.In the present embodiment, mould is monitored
Plate library can be adapted for the application of single type, be readily applicable to all types of applications, monitor according in monitoring template library
The source of template determines.
S103, it obtains and applies corresponding log, the related data of monitoring template is obtained from log.
It wherein, may include: monitored object data in related data;It is corresponding, step 103 is executed using monitoring device
One way in which can be, according to monitored object inquiry log, to obtain monitored object data corresponding with monitored object.Separately
Outside, the log respectively applied can be stored in log database, and log database is configured with corresponding search engine, such as
Elasticsearch search engine etc., corresponding, the another way that step 103 is executed using monitoring device can be that will take
The searching request of mark with application and monitored object mark is sent to Elasticsearch search engine, so that
Elasticsearch search engine identifies inquiry log database according to the mark and monitored object of application, obtains application pair
The related data of template is monitored in the log answered.
In the present embodiment, after getting related data using monitoring device, related data can be filtered, be polymerize
Operation removes wrong data therein, data is carried out with the operation such as uniform format, to improve the subsequent processing to related data
Efficiency.
S104, by related data input monitoring template so that monitoring template carries out calculation processing to related data, and will meter
The result for calculating processing is compared with preset alarm index, it is determined whether is alerted.
In the present embodiment, using monitoring device by after related data input monitoring template, template can be monitored with load operating,
So that monitoring template carries out calculation processing to related data, and the result of calculation processing and preset alarm index are compared
It is right, it is determined whether to be alerted.
S105, it is if desired alerted, then obtain warning information and carries out alarm operation.
In the present embodiment, in warning information include following information in any one or it is multiple: monitor the correlation of template
Data, the result of calculation processing, alarm cause and solution.It can be with using the process that monitoring device obtains warning information
To obtain related data, the result of calculation processing, alarm cause in monitoring template when being alerted;According to alarm
Reason inquires solution party Faku County, obtains solution corresponding with alarm cause.Wherein, alarm cause is for example, certain critical data
Frequency of occurrence is too high.
In addition, can continue periodically to obtain dependency number from log using monitoring device if not needing to be alerted
According to, by related data input monitoring template, rejudges and whether alerted, until using end of run, or application
Until there is no new data in corresponding log.
The application monitoring method of the embodiment of the present invention, by obtaining application to be monitored;According to application, from preset monitoring
It is selected in template library and applies corresponding monitoring template;It obtains and applies corresponding log, the phase of monitoring template is obtained from log
Close data;By related data input monitoring template, so that monitoring template carries out calculation processing to related data, and by calculation processing
Result be compared with preset alarm index, it is determined whether alerted;If desired it is alerted, then obtains alarm
Information simultaneously carries out alarm operation, so as to select corresponding monitoring from monitoring template library according to the actual monitored demand of application
Template, do not need it is duplicate write code manually, and improve code utilization rate and using monitoring efficiency.
Fig. 2 is a kind of structural schematic diagram using monitoring device provided in an embodiment of the present invention.As shown in Figure 2, comprising: obtain
Modulus block 21, selecting module 22, processing module 23 and alarm module 24.
Wherein, module 21 is obtained, for obtaining application to be monitored;
Selecting module 22, for being selected from preset monitoring template library corresponding with the application according to the application
Monitor template;
The acquisition module 21 is also used to obtain the corresponding log of the application, the monitoring is obtained from the log
The related data of template;
Processing module 23 is used for by the related data input monitoring template, so that the monitoring template is to the correlation
Data carry out calculation processing, and the result of calculation processing is compared with preset alarm index, it is determined whether need to carry out
Alarm;
Alarm module 24, for when being alerted, obtaining warning information and carrying out alarm operation.
Application monitoring device provided by the invention can be the hardware devices such as terminal device, server, or set for hardware
The software of standby upper installation.Wherein, application to be monitored for example can be wechat, browser, game etc..In the present embodiment, application
The mark, such as the title of application to be monitored etc. of the specific available application to be monitored of monitoring device.
In the present embodiment, monitoring template, which refers to, is monitored some object of application, judges whether to be more than that alarm refers to
Target program, that is to say, that the program that some object of application is calculated and compared, for example, within the scope of certain time
There is i.e. alarm more than certain critical data one within the scope of the template that certain value is alarm, certain time in certain critical data frequency of occurrences
Template etc..
It is more than to be illustrated for certain value is the template alarmed by certain critical data frequency of occurrences within the scope of certain time,
The input of the template can be certain critical data within the scope of certain time;Whether output can be to alarm;The template is for obtaining
Take certain critical data within the scope of certain time, and calculate the frequency of occurrences of certain critical data, by the frequency of occurrences and certain value into
Row compares, and determines whether to alarm according to comparison result.
In the present embodiment, it should be noted that the quantity of monitoring template corresponding with application can be one or more,
It is determined according to the monitor task of application, can be single with the corresponding monitoring template of application if monitor task is single;If
Monitor task is multiple, then can be multiple with the corresponding monitoring template of application.It is corresponding, step is executed using monitoring device
102 process is specifically as follows, and obtains the monitor task of application, includes: monitored object and alarm index in monitor task;From
The monitoring template of targets match is selected with monitored object and alerted in preset monitoring template library.
Wherein, alerting in index may include: alarm object or alarm object+alarm threshold.In alarm index only
In the case where including alarm object, if alarm object is the frequency of occurrences of certain critical data, with the matched monitoring of monitor task
Template can be, the template with the various frequencies of occurrences, for example, the frequency of occurrences be 50 percent template, the frequency of occurrences hundred
/ eight ten template, the template that the frequency of occurrences is 90 percent, these templates are all and the matched monitoring mould of monitor task
Plate.
In the case where including alarm object and alarm threshold in alerting index, if alarm object is certain critical data
The frequency of occurrences, alarm threshold are 50 percent, then can be that the frequency of occurrences is percentage with the matched monitoring template of monitor task
50 template.
Fig. 3 is referred in addition, combining, on the basis of embodiment shown in Fig. 2, the device can also include: transmission mould
Block 25 is applied when being had not been obtained from preset monitoring template library to monitoring template corresponding with the application, to monitoring personnel
Prompt information is sent, to create corresponding monitoring template.Wherein, the creation process for monitoring template can be manual creation, or
It is created in conjunction with monitoring software.
Further, on the basis of the above embodiments, before application to be monitored being obtained using monitoring device, Ke Yixian
Creation monitoring template library.It is specifically as follows using the process that monitoring device creates monitoring template library, acquires a large amount of monitor task,
Corresponding monitoring template is created for each monitor task;And/or acquisition existing monitoring programme corresponding with monitor task,
Monitoring programme is handled to obtain monitoring template;Then the multiple monitoring templates obtained according to creation or processing, generate prison
Control template library.In the present embodiment, monitoring template library can be adapted for the application of single type, be readily applicable to all types of
Using being determined according to the source for monitoring template in monitoring template library.
Further, on the basis of the above embodiments, in the first implement scene, obtaining module 21 can specifically be used
According to monitored object inquiry log, acquisition monitored object data corresponding with monitored object.In second of implement scene,
The log respectively applied can be stored in log database, and log database is configured with corresponding search engine, such as
Elasticsearch search engine etc., corresponding, obtaining module 21 specifically can be used for, and will carry the mark and prison of application
Control object identity searching request be sent to Elasticsearch search engine so that Elasticsearch search engine according to
The mark and monitored object of application identify inquiry log database, obtain the dependency number that template is monitored in the corresponding log of application
According to.
In the present embodiment, in warning information include following information in any one or it is multiple: monitor the correlation of template
Data, the result of calculation processing, alarm cause and solution.It can be with using the process that monitoring device obtains warning information
To obtain related data, the result of calculation processing, alarm cause in monitoring template when being alerted;According to alarm
Reason inquires solution party Faku County, obtains solution corresponding with alarm cause.Wherein, alarm cause is for example, certain critical data
Frequency of occurrence is too high.
In addition, can continue periodically to obtain dependency number from log using monitoring device if not needing to be alerted
According to, by related data input monitoring template, rejudges and whether alerted, until using end of run, or application
Until there is no new data in corresponding log.
The embodiment of the present invention applies monitoring device, by obtaining application to be monitored;According to application, from preset monitoring
It is selected in template library and applies corresponding monitoring template;It obtains and applies corresponding log, the phase of monitoring template is obtained from log
Close data;By related data input monitoring template, so that monitoring template carries out calculation processing to related data, and by calculation processing
Result be compared with preset alarm index, it is determined whether alerted;If desired it is alerted, then obtains alarm
Information simultaneously carries out alarm operation, so as to select corresponding monitoring from monitoring template library according to the actual monitored demand of application
Template, do not need it is duplicate write code manually, and improve code utilization rate and using monitoring efficiency.
Fig. 4 is another structural schematic diagram for applying monitoring device provided in an embodiment of the present invention.This applies monitoring device
Include:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002
Machine program.
Processor 1002 realizes the application monitoring method provided in above-described embodiment when executing described program.
Further, using monitoring device further include:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-
Volatile memory), a for example, at least magnetic disk storage.
Processor 1002 realizes application monitoring method described in above-described embodiment when for executing described program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory
1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard
Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection
(Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry
Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control
Bus processed etc..Only to be indicated with a thick line in Fig. 4, it is not intended that an only bus or a type of convenient for indicating
Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one
It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface
Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or
Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt
It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present invention also provides a kind of non-transitorycomputer readable storage mediums, are stored thereon with computer program, the journey
It is realized when sequence is executed by processor and applies monitoring method as described above.
The present invention also provides a kind of computer program products, when the instruction processing unit in the computer program product executes
When, it realizes and applies monitoring method as described above.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.
Claims (13)
1. a kind of apply monitoring method characterized by comprising
Obtain application to be monitored;
According to the application, monitoring template corresponding with the application is selected from preset monitoring template library;
The corresponding log of the application is obtained, the related data of the monitoring template is obtained from the log;
By the related data input monitoring template, so that the monitoring template carries out calculation processing to the related data, and
The result of calculation processing is compared with preset alarm index, it is determined whether alerted;
If desired it is alerted, then obtain warning information and carries out alarm operation.
2. the method according to claim 1, wherein described according to the application, from preset monitoring template library
It is middle to select monitoring template corresponding with the application, comprising:
The monitor task of the application is obtained, includes: monitored object and alarm index in the monitor task;
The monitoring template of selection and the monitored object and the alarm targets match from preset monitoring template library.
3. according to the method described in claim 2, it is characterized in that, including: monitored object data in the related data;
The related data that the monitoring template is obtained from the log, comprising:
The log is inquired according to the monitored object, obtains monitored object data corresponding with the monitored object.
4. the method according to claim 1, wherein
In the warning information include following information in any one or it is multiple: it is described monitoring template related data, meter
Calculate result, alarm cause and the solution of processing.
5. the method according to claim 1, wherein further include:
If being had not been obtained from preset monitoring template library to monitoring template corresponding with the application, mentioned to monitoring personnel transmission
Show information, to create corresponding monitoring template.
6. a kind of apply monitoring device characterized by comprising
Module is obtained, for obtaining application to be monitored;
Selecting module, for selecting monitoring mould corresponding with the application from preset monitoring template library according to the application
Plate;
The acquisition module is also used to obtain the corresponding log of the application, and the monitoring template is obtained from the log
Related data;
Processing module, for by the related data input monitoring template so that the monitoring template to the related data into
Row calculation processing, and the result of calculation processing is compared with preset alarm index, it is determined whether it is alerted;
Alarm module, for when being alerted, obtaining warning information and carrying out alarm operation.
7. device according to claim 6, which is characterized in that the selecting module is specifically used for,
The monitor task of the application is obtained, includes: monitored object and alarm index in the monitor task;
The monitoring template of selection and the monitored object and the alarm targets match from preset monitoring template library.
8. device according to claim 7, which is characterized in that include: monitored object data in the related data;
The acquisition module is specifically used for, and inquires the log according to the monitored object, obtains corresponding with the monitored object
Monitored object data.
9. device according to claim 6, which is characterized in that include any one in following information in the warning information
It is a or multiple: related data, the result of calculation processing, alarm cause and the solution of the monitoring template.
10. device according to claim 6, which is characterized in that further include: sending module, for from preset monitoring
When monitoring template corresponding with the application having not been obtained in template library, prompt information is sent to monitoring personnel, to create correspondence
Monitoring template.
11. a kind of apply monitoring device characterized by comprising
Memory, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that institute
It states when processor executes described program and realizes as claimed in any one of claims 1 to 5 using monitoring method.
12. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program
It is realized when being executed by processor and applies monitoring method as claimed in any one of claims 1 to 5.
13. a kind of computer program product realizes such as right when the instruction processing unit in the computer program product executes
It is required that any application monitoring method in 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811201239.XA CN109446024A (en) | 2018-10-16 | 2018-10-16 | Using monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811201239.XA CN109446024A (en) | 2018-10-16 | 2018-10-16 | Using monitoring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109446024A true CN109446024A (en) | 2019-03-08 |
Family
ID=65545429
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811201239.XA Pending CN109446024A (en) | 2018-10-16 | 2018-10-16 | Using monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109446024A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109979633A (en) * | 2019-04-08 | 2019-07-05 | 韦尔德海润(北京)智能科技有限公司 | A kind of nuclear power plant's secondary control system |
CN112684748A (en) * | 2020-11-16 | 2021-04-20 | 航天信息股份有限公司 | Monitoring method and system compatible with various monitored devices |
CN113127290A (en) * | 2019-12-31 | 2021-07-16 | 北京金山云网络技术有限公司 | Service operation index monitoring method and device and server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713007A (en) * | 2016-11-15 | 2017-05-24 | 郑州云海信息技术有限公司 | Alarm monitoring system and alarm monitoring method and device for server |
CN107239502A (en) * | 2017-05-10 | 2017-10-10 | 杭州铭师堂教育科技发展有限公司 | Database error daily record monitoring system based on salt |
CN107491375A (en) * | 2017-08-18 | 2017-12-19 | 国网山东省电力公司信息通信公司 | Equipment detection and fault early warning system and method under a kind of cloud computing environment |
US20180285226A1 (en) * | 2017-03-29 | 2018-10-04 | Google Llc | Distributed hardware tracing |
-
2018
- 2018-10-16 CN CN201811201239.XA patent/CN109446024A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713007A (en) * | 2016-11-15 | 2017-05-24 | 郑州云海信息技术有限公司 | Alarm monitoring system and alarm monitoring method and device for server |
US20180285226A1 (en) * | 2017-03-29 | 2018-10-04 | Google Llc | Distributed hardware tracing |
CN107239502A (en) * | 2017-05-10 | 2017-10-10 | 杭州铭师堂教育科技发展有限公司 | Database error daily record monitoring system based on salt |
CN107491375A (en) * | 2017-08-18 | 2017-12-19 | 国网山东省电力公司信息通信公司 | Equipment detection and fault early warning system and method under a kind of cloud computing environment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109979633A (en) * | 2019-04-08 | 2019-07-05 | 韦尔德海润(北京)智能科技有限公司 | A kind of nuclear power plant's secondary control system |
CN113127290A (en) * | 2019-12-31 | 2021-07-16 | 北京金山云网络技术有限公司 | Service operation index monitoring method and device and server |
CN112684748A (en) * | 2020-11-16 | 2021-04-20 | 航天信息股份有限公司 | Monitoring method and system compatible with various monitored devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020061621A1 (en) | Technology configured to facilitate monitoring of operational parameters and maintenance conditions of physical infrastructure | |
CN109726209A (en) | Log aggregation method and device | |
CN110601880B (en) | Cloud platform, service processing method, command interface and computer equipment | |
CN109446024A (en) | Using monitoring method and device | |
CN105868878B (en) | The Risk Identification Method and device of MAC Address | |
CN110503435B (en) | Transaction early warning method, device and equipment based on blockchain | |
CN108874559A (en) | electronic device, distributed system service link analysis method and storage medium | |
CN109409096A (en) | Kernel loophole restorative procedure, device, server and system | |
US20210326326A1 (en) | Proof aggregating system for asset management traceability based on blockchain and method thereof | |
CN111865691B (en) | Alarm file distribution method, device, equipment and medium based on artificial intelligence | |
CN110442341A (en) | Interface configuration method, device and the terminal device of application program | |
CN109240876A (en) | Example monitoring method, computer readable storage medium and terminal device | |
CN111694841A (en) | Order mark generation method, device, server and storage medium | |
CN107911397A (en) | A kind of intimidation estimating method and device | |
CN111641520A (en) | Edge computing node device | |
CN108537065A (en) | Reference information processing method | |
CN116545709A (en) | Sensitive data tracing method, device and equipment | |
CN110457114A (en) | Application cluster dispositions method and device | |
CN107360018A (en) | Config update method and device | |
EP3855259B1 (en) | Method for testing compatibility of functional modules | |
CN108363655A (en) | User behavior characteristics analysis method and device | |
CN107819687A (en) | Fixed route method, apparatus and its equipment | |
CN111160566A (en) | Sample generation method and device, computer readable storage medium and computer equipment | |
CN109886795A (en) | Across computer room distribution reconciliation processing method and processing device | |
CN109947715A (en) | Log alarm method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Room 1901, building 1, No. 1782 Jiangling Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: HANGZHOU LVWAN NETWORK TECHNOLOGY Co.,Ltd. Address before: 2, No. 2630, building 2, superior Science Park, No. 310026 South Ring Road, Hangzhou, Binjiang District, Zhejiang, China Applicant before: HANGZHOU LVWAN NETWORK TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |
|
RJ01 | Rejection of invention patent application after publication |