CN107562599A - A kind of parameter detection method and device - Google Patents
A kind of parameter detection method and device Download PDFInfo
- Publication number
- CN107562599A CN107562599A CN201710661940.9A CN201710661940A CN107562599A CN 107562599 A CN107562599 A CN 107562599A CN 201710661940 A CN201710661940 A CN 201710661940A CN 107562599 A CN107562599 A CN 107562599A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- monitored item
- monitored
- item
- module
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of parameter detection method and device.Methods described includes:Traversal monitoring configuration file, to determine each monitored item to be monitored;Determine monitoring attributes corresponding to each monitored item;Determine monitoring module corresponding to the monitoring attributes;Monitoring module corresponding to the monitoring attributes is called to detect service parameter value corresponding to each monitored item.Pass through technical scheme, the monitoring attributes of each monitored item can be automatically determined and call monitoring module corresponding to each monitoring attributes to realize the automatic detection to service parameter value corresponding to each monitored item, and then not only contribute to improve the monitoring efficiency and monitoring promptness to monitored item, it is also beneficial to mitigate the operating burden of user.
Description
Technical field
The present invention relates to monitoring technology field, more particularly to a kind of parameter detection method and device.
Background technology
At present, some business are monitored for convenience, some monitored item can be usually set, these are obtained will pass through
The service parameter value for the business that monitored item is characterized realizes the management and control to related service, but in correlation technique, to these monitoring
When item is monitored, usually using artificial monitoring method, internal memory, CPU (Central as periodically checked equipment
Processing Unit, central processing unit) etc. in the service condition or project of resource whether additions and deletions module etc., it is and this
Monitoring method undoubtedly make it that monitoring efficiency is relatively low, while also increases the manual operation burden of user.
The content of the invention
The present invention provides a kind of parameter detection method and device, to be monitored to determine to monitor configuration file in traversal
Each monitored item after, by automatically determining the monitoring attributes of each monitored item and calling corresponding to each monitoring attributes monitoring module to realize
To the automatic detection of service parameter value corresponding to each monitored item, and then not only contribute to improve the monitoring efficiency and prison to monitored item
Promptness is controlled, is also beneficial to mitigate the operating burden of user.
The present invention provides a kind of parameter detection method, including:
Traversal monitoring configuration file, to determine each monitored item to be monitored;
Determine monitoring attributes corresponding to each monitored item;
Determine monitoring module corresponding to the monitoring attributes;
Monitoring module corresponding to the monitoring attributes is called to detect service parameter value corresponding to each monitored item.
In one embodiment, the monitoring attributes include the monitoring type of each monitored item, wherein, same monitoring class
The monitored item of type corresponds to same monitoring module;
Monitoring module corresponding to the determination monitoring attributes, including:
Determine the monitoring type of each monitored item;
According to the monitoring type of each monitored item, monitoring module corresponding to each monitored item is determined.
In one embodiment, the monitoring configuration file includes each monitored item, wherein, remember in each monitored item
Record has following multinomial information:
Service identification, monitored object mark, the monitoring attributes, preset alarm condition, wherein, the service parameter value is
The parameter value for the business that service identification in each monitored item is characterized.
In one embodiment, the traversal monitoring configuration file, to determine each monitored item to be monitored, including:
Each monitored object mark in the monitoring configuration file is traveled through, to determine each monitored item.
In one embodiment, the traversal monitoring configuration file, to determine each monitored item to be monitored, including:
According to the default traversal cycle, the monitoring configuration file is traveled through, to determine each monitored item.
The present invention also provides a kind of parameter detection device, including:
Spider module, configuration file is monitored for traveling through, to determine each monitored item to be monitored;
First determining module, for determining monitoring attributes corresponding to each monitored item;
Second determining module, for determining monitoring module corresponding to the monitoring attributes;
Calling module, for calling monitoring module corresponding to the monitoring attributes to join business corresponding to each monitored item
Numerical value is detected.
In one embodiment, the monitoring attributes include the monitoring type of each monitored item, wherein, same monitoring class
The monitored item of type corresponds to same monitoring module;
Second determining module includes:
First determination sub-module, for determining the monitoring type of each monitored item;
Second determination sub-module, for the monitoring type according to each monitored item, determine corresponding to each monitored item
Monitoring module.
In one embodiment, the monitoring configuration file includes each monitored item, wherein, remember in each monitored item
Record has following multinomial information:
Service identification, monitored object mark, the monitoring attributes, preset alarm condition, wherein, the service parameter value is
The parameter value for the business that service identification in each monitored item is characterized.
In one embodiment, the spider module includes:
First traversal submodule, for traveling through each monitored object mark in the monitoring configuration file, with described in determination
Each monitored item.
In one embodiment, the spider module includes:
Second traversal submodule, it is described each to determine for according to the default traversal cycle, traveling through the monitoring configuration file
Monitored item.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Configuration file is monitored by traveling through, to determine each monitored item to be monitored, and is determined corresponding to each monitored item
Monitoring attributes, and then monitoring module corresponding to the monitoring attributes is determined, and by calling monitoring corresponding to the monitoring attributes
Module carries out automatic detection to service parameter value corresponding to each monitored item, can be achieved to automatically determine the monitoring category of each monitored item
Property and call monitoring module corresponding to each monitoring attributes, to carry out automatic detection to service parameter value corresponding to each monitored item, from
And the monitoring efficiency and monitoring promptness to monitored item are not only increased, also mitigate user's operating burden.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention
Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of parameter detection method according to an exemplary embodiment.
Fig. 2 is the flow chart of another parameter detection method according to an exemplary embodiment.
Fig. 3 is a kind of block diagram of parameter detection device according to an exemplary embodiment.
Fig. 4 is the block diagram of another parameter detection device according to an exemplary embodiment.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein preferred real
Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
In order to solve the above-mentioned technical problem, the embodiment of the present disclosure provides a kind of parameter detection method, and this method is applied to
In parameter detecting program, system or device, as shown in figure 1, step S101 is to step S104, wherein,
In step S101, traversal monitoring configuration file, to determine each monitored item to be monitored;
Each monitored item is pre-configured, and each monitored item can correspond to a json object respectively, and monitors configuration text
Several json objects are stored with part, all json objects form an array.
In step s 102, monitoring attributes corresponding to each monitored item are determined;
In step s 103, monitoring module corresponding to the monitoring attributes is determined;
In step S104, monitoring module corresponding to the monitoring attributes is called to join business corresponding to each monitored item
Numerical value is detected.
Configuration file is monitored by traveling through, to determine each monitored item to be monitored, and is determined corresponding to each monitored item
Monitoring attributes, and then monitoring module corresponding to the monitoring attributes is determined, and by calling monitoring corresponding to the monitoring attributes
Module carries out automatic detection to service parameter value corresponding to each monitored item, can be achieved to automatically determine the monitoring category of each monitored item
Property and call monitoring module corresponding to each monitoring attributes, to carry out automatic detection to service parameter value corresponding to each monitored item, from
And the monitoring efficiency and monitoring promptness to monitored item are not only increased, also mitigate user's operating burden.
As shown in Fig. 2 in one embodiment, the monitoring attributes include the monitoring type of each monitored item, wherein,
The monitored item of same monitoring type corresponds to same monitoring module;
Step S103 shown in above-mentioned Fig. 1, i.e., monitoring module corresponding to the described determination monitoring attributes, including:
In step s 201, the monitoring type of each monitored item is determined;
In step S202, according to the monitoring type of each monitored item, monitoring mould corresponding to each monitored item is determined
Block.
The monitoring attributes of each monitored item can include the monitoring type of each monitored item, and the monitored item pair of same monitoring type
Same monitoring module is answered, so, it is determined that during monitoring module corresponding to the monitoring attributes of each monitored item, can first determine each monitoring
Monitoring type, and then according to monitoring module corresponding with each monitoring type and each monitored item monitoring type of itself, i.e.,
Monitoring module corresponding to each monitored item can accurately be determined.
Further, since the monitored item of same monitoring type corresponds to same monitoring module i.e.:Monitoring type identical is different
Same monitoring module can be used in monitored item, thus, using the present invention, the durability of monitoring module can also be improved, that is, is existed
In the case that monitoring type is constant, even if the number of monitored item is varied from, it is not required that modification monitoring module.
Wherein, monitoring type may include threshold values type monitored item (such as be used for monitor internal memory, CPU resources utilization rate whether
More than the monitored item of certain threshold value) or state type monitored item (such as the whether normal monitored item of state for being used to judge certain business),
And the sentence of its json object can be with as follows:
Wherein, mtq_page_view is threshold values type monitored item, and mtq_unique_visitor is state type monitored item
In one embodiment, the monitoring configuration file includes each monitored item, wherein, remember in each monitored item
Record has following multinomial information:
Service identification, monitored object mark, the monitoring attributes, preset alarm condition, wherein, the service parameter value is
The parameter value for the business that service identification in each monitored item is characterized.
Above-mentioned multinomial information can be recorded in each monitored item, certainly, those skilled in the art can also be according to demand each
Increase other information in monitored item, wherein, monitored object identifies the monitored item where it for unique mark, and service identification can
To be the identification information of business for needing to monitor corresponding to the monitored item, correspondingly, above-mentioned service parameter value is each monitoring
The parameter value for the business (needing the business monitored) that service identification in is characterized.
In addition, carry out automatic detection, all prisons for the ease of traversal and then to service parameter value corresponding to each monitored item
Control item can use identical structure, i.e., the species of the information recorded in each monitored item is identical.
In one embodiment, the traversal monitoring configuration file, to determine each monitored item to be monitored, including:
Each monitored object mark in the monitoring configuration file is traveled through, to determine each monitored item.
Because each monitored object mark is respectively used to each monitored item of unique mark, thus, when traversal monitors configuration file,
It can be identified by traveling through each monitored object in the monitoring configuration file, to determine each monitored item.
In addition, during traversal monitoring configuration file, the program performed in executive agent (i.e. monitoring server) can be as follows:
And the content of json objects corresponding to above-mentioned each monitored item can be converted by monitor client, its specific execution
Program can be as follows:
In one embodiment, the traversal monitoring configuration file, to determine each monitored item to be monitored, including:
According to the default traversal cycle, the monitoring configuration file is traveled through, to determine each monitored item.
It is determined that during each monitored item, the monitoring configuration file can be automatically gone through, according to the default traversal cycle with true
Fixed each monitored item, and then the service identification, the monitored object that parse each monitored item to determine to record in each monitored item identify, institute
The multinomial informations such as monitoring attributes, preset alarm condition are stated, the i.e. detectable service identification so after corresponding monitoring module is called
The service parameter value of the business identified, wherein, preset alarm condition is used to indicate to reach this in the service parameter value detected
Alarm/tip is carried out during condition.
As shown in figure 3, the present invention also provides a kind of parameter detection device, including:
Spider module 301, configuration file is monitored for traveling through, to determine each monitored item to be monitored;
First determining module 302, for determining monitoring attributes corresponding to each monitored item;
Second determining module 303, for determining monitoring module corresponding to the monitoring attributes;
Calling module 304, for calling monitoring module corresponding to the monitoring attributes to industry corresponding to each monitored item
Business parameter value is detected.
As shown in figure 4, in one embodiment, the monitoring attributes include the monitoring type of each monitored item, wherein,
The monitored item of same monitoring type corresponds to same monitoring module;
The second determining module 303 shown in above-mentioned Fig. 3 can include:
First determination sub-module 3031, for determining the monitoring type of each monitored item;
Second determination sub-module 3032, for the monitoring type according to each monitored item, determine each monitored item pair
The monitoring module answered.
In one embodiment, the monitoring configuration file includes each monitored item, wherein, remember in each monitored item
Record has following multinomial information:
Service identification, monitored object mark, the monitoring attributes, preset alarm condition, wherein, the service parameter value is
The parameter value for the business that service identification in each monitored item is characterized.
In one embodiment, the spider module includes:
First traversal submodule, for traveling through each monitored object mark in the monitoring configuration file, with described in determination
Each monitored item.
In one embodiment, the spider module includes:
Second traversal submodule, it is described each to determine for according to the default traversal cycle, traveling through the monitoring configuration file
Monitored item.
On the device in above-described embodiment, wherein unit performs the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Finally, the parameter detection device in the present invention is applied to terminal device.For example, it may be mobile phone, computer,
Digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant
Deng.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (10)
- A kind of 1. parameter detection method, it is characterised in that including:Traversal monitoring configuration file, to determine each monitored item to be monitored;Determine monitoring attributes corresponding to each monitored item;Determine monitoring module corresponding to the monitoring attributes;Monitoring module corresponding to the monitoring attributes is called to detect service parameter value corresponding to each monitored item.
- 2. according to the method for claim 1, it is characterised in thatThe monitoring attributes include the monitoring type of each monitored item, wherein, the monitored item of same monitoring type corresponds to same Individual monitoring module;Monitoring module corresponding to the determination monitoring attributes, including:Determine the monitoring type of each monitored item;According to the monitoring type of each monitored item, monitoring module corresponding to each monitored item is determined.
- 3. according to the method for claim 1, it is characterised in thatThe monitoring configuration file includes each monitored item, wherein, record has following multinomial information in each monitored item:Service identification, monitored object mark, the monitoring attributes, preset alarm condition, wherein, the service parameter value is described The parameter value for the business that service identification in each monitored item is characterized.
- 4. according to the method for claim 3, it is characterised in thatThe traversal monitoring configuration file, to determine each monitored item to be monitored, including:Each monitored object mark in the monitoring configuration file is traveled through, to determine each monitored item.
- 5. method according to any one of claim 1 to 4, it is characterised in thatThe traversal monitoring configuration file, to determine each monitored item to be monitored, including:According to the default traversal cycle, the monitoring configuration file is traveled through, to determine each monitored item.
- A kind of 6. parameter detection device, it is characterised in that including:Spider module, configuration file is monitored for traveling through, to determine each monitored item to be monitored;First determining module, for determining monitoring attributes corresponding to each monitored item;Second determining module, for determining monitoring module corresponding to the monitoring attributes;Calling module, for calling monitoring module corresponding to the monitoring attributes to service parameter value corresponding to each monitored item Detected.
- 7. device according to claim 6, it is characterised in thatThe monitoring attributes include the monitoring type of each monitored item, wherein, the monitored item of same monitoring type corresponds to same Individual monitoring module;Second determining module includes:First determination sub-module, for determining the monitoring type of each monitored item;Second determination sub-module, for the monitoring type according to each monitored item, determine to monitor corresponding to each monitored item Module.
- 8. device according to claim 6, it is characterised in thatThe monitoring configuration file includes each monitored item, wherein, record has following multinomial information in each monitored item:Service identification, monitored object mark, the monitoring attributes, preset alarm condition, wherein, the service parameter value is described The parameter value for the business that service identification in each monitored item is characterized.
- 9. device according to claim 8, it is characterised in thatThe spider module includes:First traversal submodule, for traveling through each monitored object mark in the monitoring configuration file, to determine each prison Control item.
- 10. the device according to any one of claim 6 to 9, it is characterised in thatThe spider module includes:Second traversal submodule, for according to the default traversal cycle, the monitoring configuration file being traveled through, to determine each monitoring .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710661940.9A CN107562599A (en) | 2017-08-04 | 2017-08-04 | A kind of parameter detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710661940.9A CN107562599A (en) | 2017-08-04 | 2017-08-04 | A kind of parameter detection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107562599A true CN107562599A (en) | 2018-01-09 |
Family
ID=60973754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710661940.9A Pending CN107562599A (en) | 2017-08-04 | 2017-08-04 | A kind of parameter detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107562599A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240876A (en) * | 2018-07-18 | 2019-01-18 | 平安科技(深圳)有限公司 | Example monitoring method, computer readable storage medium and terminal device |
CN110941536A (en) * | 2019-11-26 | 2020-03-31 | 北京沃东天骏信息技术有限公司 | Monitoring method and system, and first server cluster |
-
2017
- 2017-08-04 CN CN201710661940.9A patent/CN107562599A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240876A (en) * | 2018-07-18 | 2019-01-18 | 平安科技(深圳)有限公司 | Example monitoring method, computer readable storage medium and terminal device |
CN109240876B (en) * | 2018-07-18 | 2022-05-27 | 平安科技(深圳)有限公司 | Instance monitoring method, computer-readable storage medium, and terminal device |
CN110941536A (en) * | 2019-11-26 | 2020-03-31 | 北京沃东天骏信息技术有限公司 | Monitoring method and system, and first server cluster |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10554805B2 (en) | Information processing method, terminal, and computer-readable storage medium | |
US11226989B2 (en) | Dynamic interest-based notifications | |
CN109901881B (en) | Plug-in loading method and device of application program, computer equipment and storage medium | |
CN106354616B (en) | Monitor the method, apparatus and high performance computing system of application execution performance | |
WO2016032912A4 (en) | Quantifying social audience activation through search and comparison of custom author groupings | |
CN106650433A (en) | Detecting method and system for abnormal behavior | |
CN111491552A (en) | Sensor channels grouped by context for healthcare monitoring | |
US20140214832A1 (en) | Information gathering via crowd-sensing | |
CN114996103A (en) | Page abnormity detection method and device, electronic equipment and storage medium | |
CN112817831A (en) | Application performance monitoring method, device, computer system and readable storage medium | |
CN111130867B (en) | Intelligent household equipment alarm method and device based on Internet of things | |
CN107562599A (en) | A kind of parameter detection method and device | |
CN106294364B (en) | Method and device for realizing web crawler to capture webpage | |
CN110929129A (en) | Information detection method, equipment and machine-readable storage medium | |
CN117170969A (en) | Operation and maintenance method, partition equilibrium recovery device, equipment and medium of server cluster | |
CN104932796B (en) | A kind of control method and device of component drag and drop | |
WO2015026719A2 (en) | Device compatibility management | |
US20190139149A1 (en) | System and method for content reporting | |
CN107122284A (en) | Using monitoring method, device, electronic equipment and storage medium | |
CN113672449A (en) | Intelligent operation and maintenance abnormity monitoring method and device, computer equipment and storage medium | |
CN107885649A (en) | The performance test methods and device of IOS application programs | |
CN114513686A (en) | Method and device for determining video information and storage medium | |
CN112131468A (en) | Data processing method and device in recommendation system | |
CN115314404B (en) | Service optimization method, device, computer equipment and storage medium | |
CN106211068B (en) | information processing method and server |
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 |