CN107391337A - A kind of data monitoring method and device - Google Patents
A kind of data monitoring method and device Download PDFInfo
- Publication number
- CN107391337A CN107391337A CN201710583385.2A CN201710583385A CN107391337A CN 107391337 A CN107391337 A CN 107391337A CN 201710583385 A CN201710583385 A CN 201710583385A CN 107391337 A CN107391337 A CN 107391337A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- data
- service data
- early warning
- warning value
- 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/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- 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 provides a kind of data monitoring method and device, the above method and comprised the following steps:Obtain the service data of each monitoring objective and corresponding monitoring and early warning value;If the service data is more than or equal to the monitoring and early warning value, send a warning message.Above-mentioned technical proposal, monitoring objective running state data can be obtained in real time and according to the comparison with monitoring and early warning value, found the abnormal situation in time, carry out alarming processing, ensured system operation safety.
Description
Technical field
The invention belongs to the communications field, more particularly to a kind of data monitoring method and device.
Background technology
In cloud computing era, substantial amounts of server can all run virtualization system, run substantial amounts of virtual machine, can so show
The hardware utilization of lifting server is write, the hardware utilization for resulting even in server reaches peak value.But prior art
Server properties are not monitored in real time in scheme, more Realtime Alerts is not carried out according to monitored results, causes to occur
Problem can not adjust in time, and serious meeting causes system crash, influence system operation safety.
Therefore, there is an urgent need to a kind of data monitoring scheme to solve above-mentioned technical problem.
The content of the invention
The present invention provides a kind of data monitoring method and device, to solve the above problems.
The present invention provides a kind of data monitoring method, comprises the following steps:Obtain each monitoring objective service data and
Corresponding monitoring and early warning value;If the service data is more than or equal to the monitoring and early warning value, send a warning message.
The present invention provides a kind of data monitoring device, including processor, is adapted for carrying out each instruction;Storage device, suitable for depositing
A plurality of instruction is stored up, the instruction is suitable to be loaded and performed by the processor;
Obtain the service data of each monitoring objective and corresponding monitoring and early warning value;
If the service data is more than or equal to the monitoring and early warning value, send a warning message.
Technical scheme provided in an embodiment of the present invention:Obtain the service data of each monitoring objective and corresponding monitoring and early warning
Value;If the service data is more than or equal to the monitoring and early warning value, send a warning message.
Above-mentioned technical proposal, monitoring objective running state data can be obtained in real time and according to the ratio with monitoring and early warning value
Compared with, found the abnormal situation in time, carry out alarming processing, ensured system operation safety.
Technical scheme provided in an embodiment of the present invention:The service data is stored to internal memory so that access speed faster,
It can meet that real-time query obtains the requirement of service data.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the data monitoring method flow chart of the embodiment of the present invention 1;
Fig. 2 show the data monitoring structure drawing of device of the embodiment of the present invention 2.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Fig. 1 show the data monitoring method flow chart of the embodiment of the present invention 1, comprises the following steps:
Step 101:Obtain the service data of each monitoring objective and corresponding monitoring and early warning value;
Further, the monitoring objective includes:CPU, internal memory, storage device;The service data includes:Utilization rate number
According to, carry status data.
Further, by timing or real-time calling monitoring script, the service data of each monitoring objective is obtained, wherein,
The species of the monitoring script includes:Cpu busy percentage monitoring script, memory usage monitoring script, storage device carry state
Monitoring script.
Preferably, the service data is stored to internal memory.
The embodiment of the present invention uses a kind of python (scripting programming language) scripting language's monitoring script, according to timing
Virtualization bottom script is called to task repeating query to get the service data of monitoring objective;Then method export-redis is passed through
Service data renewal into memory database redis.Using memory storage mode, access speed faster, can meet to look into real time
Ask the requirement for obtaining service data.
Specifically, timed task has been configured in server end, has regularly transferred python scripts as beginning step;According to
The service data species of acquisition is different, transfers different python scripts;In python scripts, start to transfer underlying virtual
The REST API (a kind of access interface, be available for third party to call) of offer obtain service data;Updated after getting service data
The corresponding key into memory database redis;Wherein, the key in redis uses following form:Type-Id-element, example
As HOST-ID-CPU represents the CPU usage for the main frame that identification number is ID.DATASTORE-ID-HOSTID-STATUS mark marks
Know a number carry state of the storage pool in this main frame of HOSTID for being ID.
Step 102:If the service data is more than or equal to the monitoring and early warning value, send a warning message.
Further, if the service data is availability data, the availability data obtained in preset period of time is averaged
Value;
If the availability data average value is more than or equal to the monitoring and early warning value, send a warning message.
Further, if the service data is less than the monitoring and early warning value, continue to collect the fortune of each monitoring objective
Row data.
Specifically, before being compared between service data, monitoring and early warning value, in addition to:In advance the prison of setting
Control early warning value stores to internal memory and has configured timed task.
When being compared between service data, monitoring and early warning value, call python to compare script and be compared;It is if described
Service data is more than or equal to the monitoring and early warning value, then sends a warning message.
Fig. 2 show the data monitoring structure drawing of device of the embodiment of the present invention 2, including processor, is adapted for carrying out each instruction;
Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
Obtain the service data of each monitoring objective and corresponding monitoring and early warning value;
If the service data is more than or equal to the monitoring and early warning value, send a warning message.
Further, the monitoring objective includes:CPU, internal memory, storage device;The service data includes:Utilization rate number
According to, carry status data.
Further, if the service data is availability data, the availability data obtained in preset period of time is averaged
Value;
If the availability data average value is more than or equal to the monitoring and early warning value, send a warning message.
Technical scheme provided in an embodiment of the present invention:Obtain the service data of each monitoring objective and corresponding monitoring and early warning
Value;If the service data is more than or equal to the monitoring and early warning value, send a warning message.
Above-mentioned technical proposal, monitoring objective running state data can be obtained in real time and according to the ratio with monitoring and early warning value
Compared with, found the abnormal situation in time, carry out alarming processing, ensured system operation safety.
Technical scheme provided in an embodiment of the present invention:The service data is stored to internal memory so that access speed faster,
It can meet that real-time query obtains the requirement of service data.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
1. a kind of data monitoring method, it is characterised in that comprise the following steps:
Obtain the service data of each monitoring objective and corresponding monitoring and early warning value;
If the service data is more than or equal to the monitoring and early warning value, send a warning message.
2. according to the method for claim 1, it is characterised in that the monitoring objective includes:CPU, internal memory, storage device;
The service data includes:Availability data, carry status data.
3. according to the method for claim 2, it is characterised in that if the service data is availability data, obtain pre-
If the availability data average value in the period;
If the availability data average value is more than or equal to the monitoring and early warning value, send a warning message.
4. according to the method for claim 1, it is characterised in that by timing or real-time calling monitoring script, obtain each
The service data of monitoring objective.
5. according to the method for claim 4, it is characterised in that the species of the monitoring script includes:Cpu busy percentage monitors
Script, memory usage monitoring script, storage device carry condition monitoring script.
6. according to the method for claim 4, it is characterised in that store the service data to internal memory.
7. according to the method for claim 1, it is characterised in that if the service data is less than the monitoring and early warning value,
Continue to collect the service data of each monitoring objective.
8. a kind of data monitoring device, it is characterised in that including processor, be adapted for carrying out each instruction;Storage device, suitable for storage
A plurality of instruction, the instruction are suitable to be loaded and performed by the processor;
Obtain the service data of each monitoring objective and corresponding monitoring and early warning value;
If the service data is more than or equal to the monitoring and early warning value, send a warning message.
9. device according to claim 8, it is characterised in that the monitoring objective includes:CPU, internal memory, storage device;
The service data includes:Availability data, carry status data.
10. device according to claim 9, it is characterised in that if the service data is availability data, obtain pre-
If the availability data average value in the period;
If the availability data average value is more than or equal to the monitoring and early warning value, send a warning message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710583385.2A CN107391337A (en) | 2017-07-18 | 2017-07-18 | A kind of data monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710583385.2A CN107391337A (en) | 2017-07-18 | 2017-07-18 | A kind of data monitoring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107391337A true CN107391337A (en) | 2017-11-24 |
Family
ID=60339965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710583385.2A Pending CN107391337A (en) | 2017-07-18 | 2017-07-18 | A kind of data monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391337A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108959033A (en) * | 2018-07-05 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of cpu monitor pre-warning management system and method |
CN108989154A (en) * | 2018-08-30 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of PIM platform monitoring method, system and electronic equipment and storage medium |
CN110806963A (en) * | 2019-11-13 | 2020-02-18 | 浪潮云信息技术有限公司 | Example information monitoring and visual display method based on wave cloud database |
CN111930590A (en) * | 2020-07-13 | 2020-11-13 | 上海森亿医疗科技有限公司 | Real-time monitoring system for computer software and hardware resources |
CN112799919A (en) * | 2021-04-13 | 2021-05-14 | 上海钐昆网络科技有限公司 | Data monitoring method, device, equipment and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104820628A (en) * | 2015-04-01 | 2015-08-05 | 浪潮电子信息产业股份有限公司 | Method for monitoring system load and system resource use condition based on BASH |
CN104954184A (en) * | 2015-06-15 | 2015-09-30 | 四川长虹电器股份有限公司 | Monitoring and alarming method and system for cloud background server cluster |
CN105589789A (en) * | 2015-12-25 | 2016-05-18 | 浪潮电子信息产业股份有限公司 | Method for dynamically adjusting memory monitoring threshold value |
CN106095638A (en) * | 2016-05-30 | 2016-11-09 | 浪潮电子信息产业股份有限公司 | The method of a kind of server resource alarm, Apparatus and system |
CN106326067A (en) * | 2016-08-05 | 2017-01-11 | 浪潮电子信息产业股份有限公司 | Method and device for monitoring CPU (central processing unit) performance under pressure test |
-
2017
- 2017-07-18 CN CN201710583385.2A patent/CN107391337A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104820628A (en) * | 2015-04-01 | 2015-08-05 | 浪潮电子信息产业股份有限公司 | Method for monitoring system load and system resource use condition based on BASH |
CN104954184A (en) * | 2015-06-15 | 2015-09-30 | 四川长虹电器股份有限公司 | Monitoring and alarming method and system for cloud background server cluster |
CN105589789A (en) * | 2015-12-25 | 2016-05-18 | 浪潮电子信息产业股份有限公司 | Method for dynamically adjusting memory monitoring threshold value |
CN106095638A (en) * | 2016-05-30 | 2016-11-09 | 浪潮电子信息产业股份有限公司 | The method of a kind of server resource alarm, Apparatus and system |
CN106326067A (en) * | 2016-08-05 | 2017-01-11 | 浪潮电子信息产业股份有限公司 | Method and device for monitoring CPU (central processing unit) performance under pressure test |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108959033A (en) * | 2018-07-05 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of cpu monitor pre-warning management system and method |
CN108989154A (en) * | 2018-08-30 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of PIM platform monitoring method, system and electronic equipment and storage medium |
CN110806963A (en) * | 2019-11-13 | 2020-02-18 | 浪潮云信息技术有限公司 | Example information monitoring and visual display method based on wave cloud database |
CN111930590A (en) * | 2020-07-13 | 2020-11-13 | 上海森亿医疗科技有限公司 | Real-time monitoring system for computer software and hardware resources |
CN112799919A (en) * | 2021-04-13 | 2021-05-14 | 上海钐昆网络科技有限公司 | Data monitoring method, device, equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107391337A (en) | A kind of data monitoring method and device | |
US10467064B2 (en) | System and method for managing concurrent events | |
US9940177B2 (en) | Traffic control method and system | |
CN109213600B (en) | GPU resource scheduling method and device based on AI cloud | |
CN106210129B (en) | A kind of current-limiting method and system based on Web server configuration | |
CN110620812A (en) | Interactive information pushing method and device, computer equipment and storage medium | |
CN109246026B (en) | Flow control method, device, equipment and storage medium | |
CN106685894B (en) | Risk identification method, device and system | |
WO2019200762A1 (en) | Insurance platform data processing method, electronic device and computer-readable storage medium | |
WO2019047565A1 (en) | Task processing method, device, computer device, and storage medium | |
CN104461731B (en) | Resources of virtual machine recovery method and device in a kind of dynamic resource extension | |
CN111813573A (en) | Communication method of management platform and robot software and related equipment thereof | |
CN108429783A (en) | Electronic device, configuration file method for pushing and storage medium | |
CN107203413A (en) | A kind of resource data dispatches system and method | |
CN106598740A (en) | System and method for limiting CPU (Central Processing Unit) occupancy rate of multi-thread program | |
WO2019227623A1 (en) | Method and apparatus for processing data of call platforms, device, and storage medium | |
CN102523107B (en) | The method and device of balanced network management system service end and client computing pressure | |
CN108268605B (en) | Shared space resource management method and system | |
CN110072199B (en) | Method and system for monitoring short message sending abnormity | |
CN106612263A (en) | Method and device used for processing application access request | |
CN111901318A (en) | Method, system and equipment for detecting command injection attack | |
CN107346308B (en) | Method and device for calling data in cluster system | |
CN109194759B (en) | Network access method and system for degrading at front end | |
CN110048905A (en) | The recognition methods of internet of things equipment communication pattern and device | |
CN109902103A (en) | Service data management method, device, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171124 |